cancel
Showing results for 
Search instead for 
Did you mean: 

PowerBuilder Application Execution Error (R0036)

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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


Former Member
0 Kudos

You can only use SetItem if t_bfor_currency is a column in your datawindow!

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.


Former Member
0 Kudos

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.