Hi,
In a Dialog2 (v11) I have a dropdown box, when the user selects a diffrent value from this box I want to change the Label from Texbox fields.
I should be able to read the value in the onChange Event like
but as soon as I put this in the Javascript - Attribute section I get the Error:
A5_onChange_Error1.JPG
so where/ how can I get the Value as in the e pointer there is no dataSubmitted which I can work with?
further more I wrote a render XBasic function I want to call in the onChange event. But even if the only think in the function is
I can't get it to fire.
How and from where (what Tab in the onChange Event) do I call this function. When I call it in the onDialogInitialize ServerSide Event I get my alert.
and then again the render function, I used the help from http://msgboard.alphasoftware.com/al...age+definition ,
although I have
and it is called in the onDialogInitialize function it gets overwritten by the Languageproperties for that field.
This isnot so bad, as I can put the correct default values in.
So all in all I have 2 questions
1. Where/How can I call my above render function in the OnChange Event
2. How can I get the new value of the dropbox within the render function OR how can I pass it to the render function.
Thank you for your Help!
Gr�inne
In a Dialog2 (v11) I have a dropdown box, when the user selects a diffrent value from this box I want to change the Label from Texbox fields.
I should be able to read the value in the onChange Event like
Code:
{dialog.Object}.getValue("month");
A5_onChange_Error1.JPG
so where/ how can I get the Value as in the e pointer there is no dataSubmitted which I can work with?
further more I wrote a render XBasic function I want to call in the onChange event. But even if the only think in the function is
Code:
function renderLabels as v (e as p) e.javascript = "alert('hello render');" End function
How and from where (what Tab in the onChange Event) do I call this function. When I call it in the onDialogInitialize ServerSide Event I get my alert.
and then again the render function, I used the help from http://msgboard.alphasoftware.com/al...age+definition ,
although I have
Code:
e.tmpl.languageDefinition = <<%txt% <a5:r>LabelName</a5:r>="newLabelName" %txt%
This isnot so bad, as I can put the correct default values in.
So all in all I have 2 questions
1. Where/How can I call my above render function in the OnChange Event
2. How can I get the new value of the dropbox within the render function OR how can I pass it to the render function.
Thank you for your Help!
Gr�inne
Comment