Static Text Columns in Array Widgets

273 views
Skip to first unread message

michael...@zodiac.com

unread,
Sep 4, 2014, 1:45:50 PM9/4/14
to suppor...@runmyprocess.com
Hello -

I am not sure if this is a bug or an enhancement request.

It does not appear to be possible to set the values for a column in an Array if the column is defined as Static Text. But it is possible to set the text on individual cells. This makes the coding to populate an Array much more tedious.

As an example, consider an array, variable name "revDwgsArray" and id "id_revDwgsArray". The array has one static text column, variable name "partNumber" and id "id_partNumber".

This JS code will not work:
var tempArr = new Array();
tempArr[0] = 1234;
RMPApplication.set("revDwgsArray",{"partNumber":tempArr});

But this code will work:
id_revDwgsArray.id_partNumber[0].setText("1234");

Thank you for any feedback.

Michael

Pray Desai

unread,
Sep 4, 2014, 4:07:54 PM9/4/14
to suppor...@runmyprocess.com, Michael Wagner
Hi Michael,

Since your array widget column is text input, you need to assign a string value and not numeric value to your array element, so this code will work :
        
        var tempArr = new Array();
        tempArr[0] = "1234";
        RMPApplication.set("revDwgsArray",{"partNumber":tempArr});

-- 
Regards,
Pray Desai,
Fujitsu RunMyProcess.



Michael

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/c80015b3-2de9-4486-a5ed-c49934353d07%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.




Reply all
Reply to author
Forward
0 new messages