Multiple value control
Thanks to Ranjit Batra who chalenged me to create a control similar to what is exist in Lotus Notes.
This control emulates multiple choice control that is not available in InfoPath. Enjoy!
Thanks to Ranjit Batra who chalenged me to create a control similar to what is exist in Lotus Notes.
This control emulates multiple choice control that is not available in InfoPath. Enjoy!
I’m back again to pester you. I have been fooling around with this and I can’t figure out how to are parsing the string with the comma “,”. Looking at the double eval I changed every comma and I got nothing returned. I have a way to add a newline and would like to replace the comma with this. Would you provide these details, thank you.
Larry - November 7, 2011 at 3:45 pm |
Hey again, I figured out the newline/semi-colon, but it is a bit wanky. it appears to be adding the semi colon, newline then the string. I am going to contine to look for a solution. any help is appreciated.
Larry - November 7, 2011 at 6:03 pm |
Just replace regular separator with variable containing new line symbols.
alecpojidaev - November 7, 2011 at 9:27 pm |
Thanks, that was the problem i was having. I did not know which one was the regular seperator. I eventually figured out that there were 2 places that had to be replaced, then with some other help i was able to figure it out. Without taking any of your thunder, all the glory goes to your original solution.
thanks
here is an updated xml file attached as a resource. the crlfb (before) has the semi-colon before the newline
<?xml version="1.0" encoding="UTF-8"?> <characters cr=" " lf=" " crlf=" " crlfb="; " />here is your update formula (Edit Xpath). I needed to add where f1 is not blank to complete it.
substring-after(xdMath:Eval(xdMath:Eval(my:f1[. != ""], 'concat(xdXDocument:GetDOM("characters")/characters/@crlfb, .)'), ".."), xdXDocument:GetDOM("characters")/characters/@crlfb)last step is to set the textfield to multiple lines
thank you again
Larry - November 8, 2011 at 12:57 pm |
Everything looks correct in your formula.
alecpojidaev - November 8, 2011 at 3:31 pm |