on 03-03-2010 2:37 PM
Hi,
I have the drop down list on the XML schema Adobe forms with the fields :
1
2
3
4
5
All the above values are appearing on the drop down list.
If I select the value 1, the list should show the remaining possible values 2, 3,4, 5.
If I select 3 on the drop down list, It should show remaining values 4 and 5 only. It should not show 2 and 3.
The reason is once they crossed the step, they should not go back to the previous step. This is offline scenario with upload form data into the table. How can I approach the above.
Thanks in advance.
Ram
here's a link to a great resource on scripting
Again, I'm not a big scripter so I won't be much help if you want to dynamically alter the values of your dropdown box after they've chosen an option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Chceck this one: (by me, how is that possible you didn´t find this yourself?) Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what do you mean how ti display the list? do you want me to describe how to do the dynamic binding?
first you need to allow yourself to do that, in the properties of LCD find allow dynamic bing, set true
go to the binding tab of the component, you want to dyna-bind
there should be the name, underlined, working as a hyperlink, click
now you can see the dynamic binding properties, what is the key of item, what is the name of the item, fill all these, ok, close
now you can see a little chain mark in the binding tab
save, activate, enjoy
Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Read through this: http://groups.google.com/group/livecycle/browse_thread/thread/1bfbde16b7b5b74d
where you can find how to add or remove items. I hope you know how to get a number of the selected item. If not, search a little, I have answered this questions many times before.
Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don´t understand. The user chooses a value, you get the value into the script, save it somewhere (??), and based on this value the items set in the drop down should change. But why? Maybe it would be better not to use the DD and solve it using some other component or create some "control" on your own from scratch. If you can tell me the detailed scenario how it should behave, I will help you (I hope).
Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Otto,
The scenario is : Let say we populated the value in Drop down list. values are 1,2,3,4,5 in drop down. We will use this form until the status in drop down reaches 5 (Completed status). when the user submit the form after entered some value in forms and he submitted. Now the staus let say 3 (Processed).
When user open the form Next time, he can able to see in that drop down list 4 and 5 (Remaining status only). For him crossed process should not appear on the drop down (1&2 like created status). There is no meaning in create the form agagin once he reach the status 3. Because in a drop down all values will be appear (1,2,3,4,5). This is kind of upload the form datas into table.So It wont bother wheather do we select the wrong value or not..That is the reason we want to display the remaining process on the drop down with respect to current status.
Any other alternate idea also welcom.
Thanks
Ram
That is easy, just search the forum for "dynamic binding" which can do all the work for you. You´ll provide a table with the items you want to insert into the drop down and the binding will do it for you. I have described how to do this many times here, so I hope you can find it easilly.
Regards Otto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Otto. Let me check it out. But in the drop down list my requirement is like that.
1
2
3
4
5
All the above values are appearing on the drop down list.
If I select the value 1, the list should show the remaining possible values 2, 3,4, 5.
If I select 3 on the drop down list, It should show remaining values 4 and 5 only. It should not show 1 and 2.
How can I achieve this..Something we can do it in script side to do or what?
Thanks for all your help
Ram
this sounds like you going to have to put a bit of coding behind the drop down to manipulate the available vaues.
since i'm an ABAPer, not a Formcalc/javascript guy, I would probably put 5 separate checkboxes 1 - 5 on the screen.
when the user choses the 3rd checkbox, I woud hide checkboxes 1 and 2 using something like this:
if ( chxbox3.rawValue eq "1" ) then
chkbox1.presence = "hidden"
chkbox2.presence = "hidden"
endif
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.