on 07-07-2018 11:40 PM
I am using PowerBuilder 11.5 and I am getting the following error message:
PowerBuilder Application Execution Error (R0036).
Here is the code:
tab_pps_mgt.tabpage_detl_inqu.dw_pps_mgt_m_3.object.t_bfor_currency[1].text = tab_pps_mgt.tabpage_detl_inqu.dw_pps_mgt_m_10.GetItemString(1,"bfor_prce_cur")
Here is the full message:
PowerBuilder Application Execution Error (R0036)
Application terminated.
Error: Name not found accessing external property
t_bfor_currency at line 64 in function wf_detl_inqu_tab_choice of object w_pps_mgt_m.
Hello Rene,
I appreciate your response. I tried the statement that you provided and I am getting exactly the same message as:
"PowerBuilder Application Execution Error (R0036)."
Here is what I did:
string lsbeforeprice
lsbeforeprice = tab_pps_mgt.tabpage_detl_inqu.dw_pps_mgt_m_10.GetItemString(1, "bfor_prce_cur")
lisetitem = ldwc_bfor_currency.SetItem (1, "t_bfor_currency", lsbeforeprice)
I get the following results:
lsbeforeprice = "KRW".
lisetitem = NULL.
Again thank you very much for trying to help me out Rene.
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Two possible solutions:
If you only want to have one (the first) row to have a different text I would use an expression.
tab_pps_mgt.tabpage_detl_inqu.dw_pps_mgt_m_3.object.t_bfor_currency.text = "~tif(getrow() = 1,'" + tab_pps_mgt.tabpage_detl_inqu.dw_pps_mgt_m_10.GetItemString(1,"bfor_prce_cur") + "', 'your default text for the other rows')"
If you want different texts for each row I would add an additional column in the datawindow that you use for dw_pps_mgt_m_3 and use this column to show the text. So you can simply set the value you want to show with SetItem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I want to assign the value from [tab_pps_mgt.tabpage_detl_inqu.dw_pps_mgt_m_10.GetItemString(1,"bfor_prce_cur")] which is "KRW"
into the [tab_pps_mgt.tabpage_detl_inqu.dw_pps_mgt_m_3.object.t_bfor_currency.text] as the default value. Then the Users can chose a different value from the DropDownDataWindow.
I only want to change the text of a text object for the first row (just one row).
If this is not possible. Can you please show me a different way to do this?
I appreciate your help and suport in advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What do you want to do? Do you want to change the text of a text object only for one row?
This is not possible in this way.
You can change the text for all rows:
tab_pps_mgt.tabpage_detl_inqu.dw_pps_mgt_m_3.object.t_bfor_currency.text = tab_pps_mgt.tabpage_detl_inqu.dw_pps_mgt_m_10.GetItemString(1,"bfor_prce_cur")
If you want to change it for one row you have to build an expression.
Or use a separate column to hold the text.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.