1. Marcelo Peñailillo
  2. PowerBuilder
  3. Tuesday, 15 October 2024 16:47 PM UTC

Hi.

In any DatawindowChild of my application the row with the corresponding value in the data of the DatawindowChild is selected. In previous versions of Appeon PowerBuilder it correctly selected the corresponding row.

Code: 

// this code execute post retrieveend on a datawindow

// an_VALUE have a valid value and an_POS is > 0, example 6, but datawindowchild always select only first row

Datawindowchild WND_CHILD_SGA

string an_VALUE

long an_POS

 

if this.GetChild( "liq_lks_cod_sub_grupo_activo", WND_CHILD_SGA) = SUCCESS then
   WND_CHILD_SGA.settransobject( sqlca )
   WND_CHILD_SGA.retrieve( "LKS_COD_SUB_GRUPO_ACTIVO" )
   an_VALUE = trim(this.GetItemString( 1, "liq_lks_cod_sub_grupo_activo"))
   an_POS = WND_CHILD_SGA.find( "lks_mmic_code='"+an_VALUE+"'", 1, WND_CHILD_SGA.rowcount())
   if an_POS > 0 then
      WND_CHILD_SGA.SetRow( an_POS )
      WND_CHILD_SGA.Selectrow( 0, false )
      WND_CHILD_SGA.post Selectrow( an_POS, true )
      WND_CHILD_SGA.post ScrollToRow( an_POS )
   end if
end if

 

Marcelo Peñailillo Accepted Answer Pending Moderation
  1. Tuesday, 15 October 2024 20:43 PM UTC
  2. PowerBuilder
  3. # 1

You can delete this entire thread. It is a programming error in my application.
a thousand apologies

Comment
  1. Chris Pollach @Appeon
  2. Tuesday, 15 October 2024 21:01 PM UTC
Hi Marcelo;

Thank you for the update and the great news that you found the coding issue! :-)

Regards .. Chris
  1. Helpful
  1. David Peace (Powersoft)
  2. Wednesday, 16 October 2024 08:36 AM UTC
Hi

Can you mark it as resolved please?



Thanks

David
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 15 October 2024 19:30 PM UTC
  2. PowerBuilder
  3. # 2

Hi Marcelo;

Regards .. Chris

Comment
There are no comments made yet.
Marcelo Peñailillo Accepted Answer Pending Moderation
  1. Tuesday, 15 October 2024 19:59 PM UTC
  2. PowerBuilder
  3. # 3

Hi Cris,

answers to queries.

Q1: What PB version & build are you using?  Appeon PowerBuilder 2022 R3 build 3391
Q2: Exactly what are you trying to achieve here GUI wise?

In a Datawindow I have a column of type datawindowchild, which is not autocomplete, the datawindowchild is linked to another datawindow that reads the possible values ​​for the base column, and even though the value of the base column is for example in row 6, it is never possible to select row 6 of the datawindowchild when one expands it


Q3: have you tried the new AutoComplete feature for this?

Yes, I have incorporated it in every possible place within the app, but this occurs for both those that use this feature and those that do not use it.

 

Thank's and regards.

Marcelo Peñailillo

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.