Hi There…
I want to use the prompts in an interactive way.
I want the user to select a country first and then select the state in it…
Well how can i do it??
The prompts should come in a same window
Prompt1 : Select a Country.
Prompt2 : Select a City.
Name the Prompts as 1. Country, 2. City, 3. Area. BO should display in the order what u r expecting. If you dont give the numbers in front of each prompt it displays .“Area”. first as char “a” is the first char in asc order. follows City and Country.
Well I want to the user to select a country first… well let say he selects “Netherlands” , then he should only see the states of netherlands in the other prompts
Like Select a Country… (Country List)
and then after he selects a country … other drop down for “state” should fill up showing the states of Netherlands.!!
Consider you are having two objects country and state .Edit the property of stateobject in universe .In properties edit ,then you can see the query panel.Include country object in the condition with inlist and prompt.
check do not run the object sql .save and close.In reporter use the State object in the condition then you can see two prompts(country and state).Select country first then state prompt will show the state belonging to the country…
Well I understand that we can have cascading prompts but guys you are not getting what i meant to say (sorry again … may be my explaination is wrong :? )
But let me explain you again…
Consider just ONE WINDOW…
WHERE I CAN SELECT A COUNTRY AND A STATE AT THE SAME TIME…
LIKE
SELECT COUNTRY [LIST OF VALUES]
SELECT STATES [LIST OF VALUES (INITIALLY EMPTY)]
WHEN I SELECT A COUNTRY FROM ABOVE WINDOW
SELECT COUNTRY [LIST OF VALUES] = NETHERLANDS
SELECT STATES [LIST OF VALUES]= ÁMSTERDAM’,‘ROTTERDAM’, ETC…
AND I DONT NEED PROMPTS IN CASCADE
i WANT ONLY ONE PROMPT THAT WOULD ASK ME FOR SELECT A COUNTRY AND A STATE AND SHOULD WORK LIKE CASCADING PROMPT…
WHEN THE USER SELECTS A COUNTRY…THE STATE LIST OF VALUES MUST CHANGE ACCORDING TO THE COUNTRY SELECTED…
I HOPE YOU GET IT THIS TIME??? … :?
Either use SDK (to customize the front end of Webi/Webi prompts) or look at Crystal Reporter, which does cascading prompts the way you want (I believe).
if you want to link both the prompts then you might have to use crystal reports. this is the only way.
or one more way to do it. but in this case you have to pass the static value to country through SDK. means if when you run the report, you have to pass the country value pre-defined or say default , only then it will work.
you must be having beach universe. it comes by default( island marketing.)
open my report and go to edit macros. then click on tools and references.
you will see Microsoft Forms 2.0 Object library added and Microsoft Active X Data objects 2.5 or 2.6 or 2.7 library added. Just add this to your report and this will work.
If you have any doubts feel free to contact. Attaching the final version of report. I have commented out the Outlook code. If you need you can use it send the mail and report as attachment.
I would like to know that how can i alter a list box depending on the value of other listbox
Example if i select a year ‘X’ then i want to select months for Year ‘X’
Attaching report for your references. MacroReport2.rep (57.0 KB)
Hi Can any one tell me how can i have dynamically changing values
Like if i change the value of one listbox , the other list box must change automatically
Eg
Listbox1 = lstYear
Listbox2 = lstMonth
Now throuhg a common prompt I select year 1995
so lstYear = 1995
Then after i select the year the month list box should refresh and show only the months in 1995!
How can i do it using VBA macros??
See the attachment above for the example
In short
How can I create a prompt’s List of Values dynamically based upon a value entered in a same prompt by using VBA? For instance, if a user enters ‘Northeast United States’ as a Region in a listbox of Region, then a State listbox in the same prompt should have a List of Values with States in the Northeast United States.
Well I know I can use a DSN and then populate the values in the other listbox
but the problem is i dont want to use the DSN,
I want some solution in which i can manipulate the existing objects and populate the other list box…