-
Hi,
You are using != in the code. Use <> instead of this. This what they explained in that link.
-
I'm not sure how that helps? That forum post you have linked is for checking if somethign is not something, in my case i am checking if it is something correct? something being "Nothing". please correct me if i am wrong, i am pretty new to visual basic, and coding in general.
Thanks for the quick response!
-
Hi,
Give me the xpath of the drop down list and the xpath of the value you want to show in your drop down list and also give the name of the secondary data source.
-
Hi,
Once go through the below link.
http://www.xtremevbtalk.com/showthread.php?t=146950
-
i couldn't figure out where to paste the code u have given ,in my design template( u said Place the above expression in the index of repeating group.) where it is??
Please explain it step by step if poossible and what is Empid and grp2 in the code?
will it give me the desired result as i mentioned?
-
Hi, thank you so much for the response, i re-wrote the code a little, like this...
If (root.SelectSingleNode("my:myFields/my:Time", NamespaceManager) != Nothing) ThenDim todaystime As String = root.SelectSingleNode("my:myFields/my:Time", NamespaceManager).InnerXml
End If
but it is giving me an error under the ...
-
Hi Harsh,
May I know why do you want to set the value using code?
It is easy that the way I expained in the forum without using code even though you are creating the rows through code.
-
Hi swathip,
Thanks for the reply.But can you make a bit easy by explaning the things.
Actually i am using VB script for my infopath form.
What i am looking for is the VB script code by which i can set the dropdown with ith element.
For eg. if there are 3 items in dropdown list then there should be 3 rows each containing dropdown .First dropdown ...
-
I have 2 forms, one form displaying the data with an "ADD EQUIPMENT" button and another form that is opened when the button is clicked for entering the new record. The new form must then add this record and return to the first form. On the second form I have a SAVE button that will add the record and return to the previous ...
-
Hi,
Get the ith value using the following expression.
count(../preceding-sibling::my:group2) + 1
get the xpath of the value which you want to display in the drop down (i.e., secondary data source xpath). Place the above expression in the index of repeating group.
For ex: ...