Mukul
Posts: 53
|
| Posted: 04/25/2008, 12:11 AM |
|
Hi,
I have dependentbox2 dependent on dependentbox1.
When i select a value in dependentbox1, list appears in dependentbox2 with Ajax
Now i want want other fields in the same form to be populated
textbox2, label2 on dependentbox2.value with Ajax
also when i select another value in dependentbox2 the textbox2, label2 should change.
data from dependentbox2, textbox2, label2 comes from same table2
Thanks and Regards,
Mukul
|
 |
 |
Mukul
Posts: 53
|
| Posted: 04/28/2008, 10:55 PM |
|
Solved:
The problem was with showing the link and getting href value for it.
Created a Autofill Ajax call on the dependentbox2, in the start event put dependentbox2.onchange;
and in the control the list of controls to fill the value in.
For label: innerHTML
For textbox etc: value
For Images: src
It was difficult to get value for href part for a 'link'
So instead i put a <span id=someid>{link1}</span>
and in the controls:
someid: with field details as innerHTML
In the service page got the field value as complete string ie <a href=\"field\">field</a>
So during addition the ajax call, span was changed with the complete value and during simple modify, the link1 was regular dynamic link with static and dynamic set to field.
Hope this helps
Regards,
Mukul
|
 |
 |
|