1. Oscar Naranjo
  2. PowerServer 2020 or older (Obsolete)
  3. Thursday, 11 April 2019 22:53 PM UTC

Hi Everyone,

By performing a test, I realized that the function FindRequired for DataWindows has different behavior in Powerbuilder classic than Appeon WEB when it comes to RadioButtons. First, RadioButtons do not allow the required property to turn OFF/ON, even with the MODIFY command. Secondly, when the FindRequired function is executed in PowerBuilder Classic it returns the RadioButtons as required if any option has not been selected, instead of in the Appeon web, it does not return it. Finally, I was wondering if there is a design reason where it is considered that the RadioButton should not be required?

Best Regards,

Oscar Naranjo 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 12 April 2019 19:36 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

Hi Oscar;

  You are 100% correct! The DW Painter's EditMask based columns (check box or Radio Button) do not have a "required" property setting. To make measures worse, setting the "required" property under PowerScript control - for example: DC.Modify (".EditMask.Required=Yes") - makes it work but also destroy's the current "mask" setting (which I did not expect). Then of course, you have the PS issue side of all of this as well.

  My suggestion would be to create a Support Ticket for this EditMask "required" feature issues. At least that way, we can get this problem logged and over to Engineering.

  As a workaround, you could:

1) Have your own PowerScript check just these required EditMask columnsby performing a GetItemXxxxx() or GetText() just before the Update() command.

2) Create a mirror DWO with no edit masks. Then set all the necessary columns to "required". Instantiate the new DWO in a DataStore. Before the Update(), copy the current DWO's primary buffer to the DS DWO's primary buffer and then perform a FindRequired() on the DS's DWO.

  I think that option #1 or #2 will also work for the PowerServer Apps as well.

Regards ... Chris

 

 

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.