Hi,
I am constructing a protocol with the powerpoint slides as the final output. I wanted to make the protocol user friendly by having the users insert their text into the text reader with each line as the separator. The output of this gives me one column titled Text with all the imformation line by line. I wanted to give these lines separate properties that I can have downstream components retrieve information from them. Does anyone know how to assign properties to each of these lines, or an easier way of doing this. I don't want everyone to have to open up the different subprotocols within the protocol to manually populate each text box. Any information would be greatly appreciated.
Thank you,
Michelle![Smiler]()
I am constructing a protocol with the powerpoint slides as the final output. I wanted to make the protocol user friendly by having the users insert their text into the text reader with each line as the separator. The output of this gives me one column titled Text with all the imformation line by line. I wanted to give these lines separate properties that I can have downstream components retrieve information from them. Does anyone know how to assign properties to each of these lines, or an easier way of doing this. I don't want everyone to have to open up the different subprotocols within the protocol to manually populate each text box. Any information would be greatly appreciated.
Thank you,
Michelle

You could use something like this:
#textLinesArray:=rsplit(text, '\n', 'g');
for #i in 1 .. numvalues(#textLinesArray) loop
property('txtString'.#i):=#textLinesArray[#i];
end loop;
To split your input text on linebreaks (\n) and then put it into properties named txtString1, txtString2, etc.
Hope this helps.
Leo
Thank you for your help. I guess I should have told you that not only am I new at this, but I only have the Lite Client. I am not sure where I should put this code. Could you give me a bit more information regarding the code you wrote.
Thank you,
Michelle
You can do this with a "Count and Index Data" component followed by a "Transpose Rows and Columns" component. This will create properties named 1, 2, 3, ... n, which isn't ideal but may be OK for your purposes.
But you might also consider gathering user input by creating parameters at the protocol level. Instead of the Text Reader grabbing (say) 10 lines of text, you might create 10 parameters that each has a descriptive name.
You can create protocol parameters by right-clicking on your protocol canvas, choosing "Edit...", and clicking the yellow "+" icon from dialog toolbar.
You can also create protocol parameters by "promoting" them from components or subprotocols. Because you mention not wanting your users to open different subprotocols, this may be what you need. See the "Promoting Parameters" page in the online help system for more details.
Best Regards,
Keith
Thank you so much for your help. The 'Count and Index Data' and 'Transpose Rows and Columns' worked wonderfully. I don't have administrative rights to do create protocol parameters. Thanks again.
Michelle