- Wed Apr 10, 2013 10:12 pm
#57518
Hi,
(PM v2.45)
I have a grid with 3 drop downs
Client - which has a dependent drop down - Client_Type and also an independent dropdown - Activity
The grids are populated from SQL calls - all populate on the front-end OK as expected.
The XML shows savelabel="1" on each of them.
When the grid is populated, in debug mode, ONLY Client_Type (the dependent drop down) has a value for Client_Type_label
[Activity_label] => [Client_label] => [Client_Type_label ] => Legal [Activity] =>11[Client] =>1243 [Client_Type ] =>2
I tried creating the _label fields in the grid definition manually - but this didn't help.
The XML:
<Client type="dropdown" required="0" readonly="0" mode="edit" btn_cancel="Cancel" dependentfields="tmproject" defaultvalue="" hint="" sqlconnection="workflow" options="Array" savelabel="1"><![CDATA[SELECT CLIENTID, CLIENTNAME FROM PMT_xxxxxxxxx WHERE EMPxxxxxx="@#empxxxxxx" AND ACCxxxxxx = "@#ACCxxxxx"]]><en>Client</en></Client>
Basically this means that when I try to show the text selected I am in fact only able to retrieve the value !
I need to create an output document which shows the text e.g. "LEGAL" and not the value e.g. 1234
I don't understand why I get a _label for the dependent dropdown but not for the to others ?
Is there a work around for this?
(PM v2.45)
I have a grid with 3 drop downs
Client - which has a dependent drop down - Client_Type and also an independent dropdown - Activity
The grids are populated from SQL calls - all populate on the front-end OK as expected.
The XML shows savelabel="1" on each of them.
When the grid is populated, in debug mode, ONLY Client_Type (the dependent drop down) has a value for Client_Type_label
[Activity_label] => [Client_label] => [Client_Type_label ] => Legal [Activity] =>11[Client] =>1243 [Client_Type ] =>2
I tried creating the _label fields in the grid definition manually - but this didn't help.
The XML:
<Client type="dropdown" required="0" readonly="0" mode="edit" btn_cancel="Cancel" dependentfields="tmproject" defaultvalue="" hint="" sqlconnection="workflow" options="Array" savelabel="1"><![CDATA[SELECT CLIENTID, CLIENTNAME FROM PMT_xxxxxxxxx WHERE EMPxxxxxx="@#empxxxxxx" AND ACCxxxxxx = "@#ACCxxxxx"]]><en>Client</en></Client>
Basically this means that when I try to show the text selected I am in fact only able to retrieve the value !
I need to create an output document which shows the text e.g. "LEGAL" and not the value e.g. 1234
I don't understand why I get a _label for the dependent dropdown but not for the to others ?
Is there a work around for this?