1. RAFAEL RODRIGUEZ
  2. PowerBuilder
  3. Wednesday, 27 November 2024 07:06 AM UTC

i create a dw with this code 

string dw_style, ls_sql_syntax, ls_dw_syntax, ls_errors, ls_sql_syntax2, ls_dw_syntax2, v_sql_scr
long nretorno

ls_errors = ""

dw_style = 'style(Type=form) ' 

ls_sql_syntax = v_sql0
ls_dw_syntax = SyntaxFromSQL( sqlca, ls_sql_syntax, dw_style, ls_errors)

dw_form0.SetReDraw(False)
If LenA(ls_errors) = 0 Then
   nretorno = dw_form0.Create (ls_dw_syntax)
   If nretorno > 0 Then

   else
       messagebox("Error en la creación del DataWindow 1" , nretorno)
   end if
else
   messagebox("Error en la creación del DataWindow 1" , ls_errors)
end if

After that, i wanna change the validation of a column and i use this:

v_error = dw_form0.SetValidate( "nombre" , " trim(gettext())>'' " )

but it doesn't work and this column has no validation and v_error is 1

Can you help me , thanks

 

 

 

Who is viewing this page
René Ullrich Accepted Answer Pending Moderation
  1. Wednesday, 27 November 2024 07:23 AM UTC
  2. PowerBuilder
  3. # 1

Are you sure that the column name is "nombre"? Have you tried to use the column number instead?

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.