How do I use string array to store a 5 rows by 8 column table and translate to process variable in bizflow,
I have a PV defined in bizflow process as "provider" -StringArray(8,5)
and the databinding in webmaker for column 1 is mapped as such "/mvc:eForm/mvc :D ata/WorkitemContext/Process/ProcessVariables/provider/dim1/dim2" but does not work,
also how do i map the other columns!,
help please.
-Anand
I have a PV defined in bizflow process as "provider" -StringArray(8,5)
and the databinding in webmaker for column 1 is mapped as such "/mvc:eForm/mvc :D ata/WorkitemContext/Process/ProcessVariables/provider/dim1/dim2" but does not work,
also how do i map the other columns!,
help please.
-Anand
RE: PV string array to capture a finite sized table
The following thread should help with your issue.
http://www.hyfinity.com/node/164
Kind Regards
Abdul
RE: PV string array to capture a finite sized table
created a sample string array (3,3) in the process,
Created an editable table with 3 column( with the idea to restrict it by 3 rows)
repeat Editable table's display and action submission are set to
"/mvc:eForm/mvc :D ata/WorkitemContext/Process/ProcessVariables/star/dim1"
then column 1 text box's action binding is "dim2", not sure how to apply it?
Thank you
Anand
RE: PV string array to capture a finite sized table
Try setting the following bindings:
Page Display Binding for the repeat:
/mvc:eForm/mvc :D ata/WorkitemContext/Process/ProcessVariables/star/dim1
Page Display Bindings for your three dim2 elements:
$EditableTableLoopEntry/dim2[1]
$EditableTableLoopEntry/dim2[2]
$EditableTableLoopEntry/dim2[3]
Please click and expand the XPath Guidelines in the bindings page for an explanation of $EditableTableLoopEntry
Action Submission Binding for the repeat:
/mvc:eForm/mvc :D ata/WorkitemContext/Process/ProcessVariables/star/dim1
Action Submission Bindings for your three dim2 elements:
./dim2[1]
./dim2[2]
./dim2[3]
Please let me know if this solves your problem.
Kind Regards
Abdul
RE: PV string array to capture a finite sized table
[hr][/hr]
Abdul, Display binding works fine, the action submission binding does not work.
, the editable table value is not transformed to dim2!
Regards
Anand
RE: PV string array to capture a finite sized table
Have you traced on the Test Dashboard to see if the values are being submitted from the page? It's possible they are unbound, but they should be submitted. Also, are you testing using BizFlow or the Workitem Context Administration (WIC) service? You can test locally by Deploying the application and using the WIC as mentioned in Gerard's original response.
Kind Regards
Abdul
RE: PV string array to capture a finite sized table
xml out for reference
<eForm xmlns="http://www.hyfinity.com/mvc"><mvc:Control xmlns:mvc="http://www.hyfinity.com/mvc" xmlns:xform="http://www.w3.org/2001/08/xforms" xmlns:xg="http://www.hyfinity.com/xgate"><is_script_enabled>true</is_script_enabled><Page>NewForm.xsl</Page><Controller>mvc-edit_delete-NewFormDataReceiver-Controller</Controller><action>saveNewForm</action><mvc:unbound><EditableTable1table_field2>st12</EditableTable1table_field2><EditableTable2edit>st23</EditableTable2edit><EditableTable1table_field1>string11change</EditableTable1table_field1><EditableTableBlankEntrytable_field2/><EditableTableBlankEntrytable_field1/><EditableTableBlankEntryedit/><EditableTable1edit>st13</EditableTable1edit><EditableTable3table_field2>st32</EditableTable3table_field2><EditableTable3table_field1>st31</EditableTable3table_field1><EditableTable2table_field2>st22</EditableTable2table_field2><EditableTable2table_field1>st21</EditableTable2table_field1><EditableTable3edit>st33</EditableTable3edit></mvc:unbound><mvc:CurrentDate>2011-10-27T13:40:54-04:00</mvc:CurrentDate></mvc:Control><Data><formData><edit_6/><edit_29/><EditableTable><table_field1/><table_field2/><edit/></EditableTable></formData><TSH_IREPROVIDER xmlns=""/><WorkitemContext xmlns="" xmlns:mvc="http://www.hyfinity.com/mvc" xmlns:xs="http://www.w3.org/2001/XMLSchema"><SessionInfoXML><SESSIONINFO DEPTID="9000000000" IP="SERVER" KEY="2472_1247564545" PORT="7201" SERVERID="0000001001" USERID="0000000101" USERTYPE="U" xmlns:xg="http://www.hyfinity.com/xgate" xmlns="" /></SessionInfoXML><Process>
<ID>1001</ID><Name>Process Name</Name><Description/><State>R</State><ProcessDefinitionID>126</ProcessDefinitionID><ProcessDefinitionName>Process Definition Name</ProcessDefinitionName><Deadline>0</Deadline><Initiator>0000000101</Initiator><InitiatorName>Initiator Name</InitiatorName><CreationDateTime>2009/08/18 15:21:23</CreationDateTime><CompleteDateTime/><CustomAttributes>
<CustomAttribute>
<Name>String</Name><CustomAttributeValueType>String</CustomAttributeValueType><Value>String</Value><Description>String</Description></CustomAttribute><CustomAttribute>
<Name>String</Name><CustomAttributeValueType>String</CustomAttributeValueType><Value>String</Value><Description>String</Description></CustomAttribute><CustomAttribute>
<Name>String</Name><CustomAttributeValueType>String</CustomAttributeValueType><Value>String</Value><Description>String</Description></CustomAttribute></CustomAttributes><ProcessVariables><NumericPV>1234</NumericPV><StringPV>string value</StringPV><star><dim1><dim2>string11</dim2><dim2>st12</dim2><dim2>st13</dim2></dim1><dim1><dim2>st21</dim2><dim2>st22</dim2><dim2>st23</dim2></dim1><dim1><dim2>st31</dim2><dim2>st32</dim2><dim2>st33</dim2></dim1></star></ProcessVariables></Process><Activity>
<Sequence>9</Sequence><Name>Activity Name</Name><Description>Activity Description</Description><State>R</State><CreationDateTime>2009/08/18 15:21:23</CreationDateTime><CompleteDateTime/><Responses>
<Response>
<Name>String</Name><IsDefault>String</IsDefault><Rule>String</Rule></Response><Response>
<Name>String</Name><IsDefault>String</IsDefault><Rule>String</Rule></Response><Response>
<Name>String</Name><IsDefault>String</IsDefault><Rule>String</Rule></Response></Responses><CustomAttributes>
<CustomAttribute>
<Name>String</Name><CustomAttributeValueType>String</CustomAttributeValueType><Value>String</Value><Description>String</Description></CustomAttribute><CustomAttribute>
<Name>String</Name><CustomAttributeValueType>String</CustomAttributeValueType><Value>String</Value><Description>String</Description></CustomAttribute><CustomAttribute>
<Name>String</Name><CustomAttributeValueType>String</CustomAttributeValueType><Value>String</Value><Description>String</Description></CustomAttribute></CustomAttributes></Activity><Workitem>
<Sequence>101</Sequence><Participant>0000000101</Participant><ParticipantName>Participant Name</ParticipantName><ParticipantType>U</ParticipantType><State>I</State><CreationDateTime>2009/08/18 15:21:23</CreationDateTime><StartDateTime>2009/08/20 15:43:15</StartDateTime><CompleteDateTime/><CheckedOutUser>0000000101</CheckedOutUser><CheckedOutUserName>Checked Out User Name</CheckedOutUserName><Deadline>0</Deadline></Workitem><User>
<LoginID>a.b@handysoft.com</LoginID><MemberID>0000000101</MemberID><Name>a b</Name><ShortName>ab</ShortName><DepartmentName>Root</DepartmentName><EmployeeCode/><Email>a.b@handysoft.com</Email><JobTitle1/><JobTitle2/><JobTitle3/><CustomAttribute1/><CustomAttribute2/><CustomAttribute3/><CustomAttribute4/><CustomAttribute5/></User><Application>
<Name>Application Name</Name><ApplicationState>N</ApplicationState><CheckOutState/><CheckedOutUser/><Updatable>U</Updatable><ViewType>M</ViewType></Application><TestMode>IsolatedForm</TestMode></WorkitemContext></Data></eForm>
RE: PV string array to capture a finite sized table
This sounds like a bindings issue. Do you have a suitable binding fragment within your Action Submission Bindings document such as:
... <ProcessVariables> <star> <dim1> <dim2/> <dim2/> <dim2/> </dim1> <dim1> <dim2/> <dim2/> <dim2/> </dim1> <dim1> <dim2/> <dim2/> <dim2/> </dim1> </star> </ProcessVariables> ...
If you click on each of the bindings for your editable table columns (dim2 bindings) then you should be able to see matches on the submission bindings document on the right hand side panel.
Kind Regards
Abdul