D
DolceVita
Hi,
I have some problem to realize this can you give me some advice about
how to make this possible?
I code in C#
I have a repeating section in this I have repeating choice section with
3 choices possible!
In the first choice section I have a dropdown and a textbox (Text)!
In the second only a textbox (Bisher)!
The third is not use for this problem!
What I want to do is when an item is selected in my dropdown (Text
choice) find the entry in the secondary data source copy this text in
Bisher choice (I know how to do this) and insert the element directly
under. Bisher can be added or not!
In text choice section I want a button for insert a new Text section
under the last Bisher if there is one, if not under the last text
section!
What I have done:
1. Select the item (depends on dropdown choice) in the secondary data
source make like a Bisher element. What I want to know is how to insert
my Bisher directly under the Text section where the dropdown choice is
made? I know how to make with an insertBefore:
Old.insertBefore(SelectBisher, CurrentText);
2. For my button I try to make an thisXDocument.View.ExecuteAction I
try to make before a
thisXDocument.View.SelectNodes for select my node (like S.Y.M as say me
in another post) but that always send me an error!!! What I try:
thisXDocument.View.SelectNodes(Old, Old.nextSibling, "Texte_3623");
What I need to put in the two last parameter of this method? Object
varEndNode and object varViewContext?
Do you think it's a good idea? Have an idea about how to realize
this? Any help is welcome.
Thanks
I have some problem to realize this can you give me some advice about
how to make this possible?
I code in C#
I have a repeating section in this I have repeating choice section with
3 choices possible!
In the first choice section I have a dropdown and a textbox (Text)!
In the second only a textbox (Bisher)!
The third is not use for this problem!
What I want to do is when an item is selected in my dropdown (Text
choice) find the entry in the secondary data source copy this text in
Bisher choice (I know how to do this) and insert the element directly
under. Bisher can be added or not!
In text choice section I want a button for insert a new Text section
under the last Bisher if there is one, if not under the last text
section!
What I have done:
1. Select the item (depends on dropdown choice) in the secondary data
source make like a Bisher element. What I want to know is how to insert
my Bisher directly under the Text section where the dropdown choice is
made? I know how to make with an insertBefore:
Old.insertBefore(SelectBisher, CurrentText);
2. For my button I try to make an thisXDocument.View.ExecuteAction I
try to make before a
thisXDocument.View.SelectNodes for select my node (like S.Y.M as say me
in another post) but that always send me an error!!! What I try:
thisXDocument.View.SelectNodes(Old, Old.nextSibling, "Texte_3623");
What I need to put in the two last parameter of this method? Object
varEndNode and object varViewContext?
Do you think it's a good idea? Have an idea about how to realize
this? Any help is welcome.
Thanks