Quantcast
Channel: SCN : Discussion List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2881

PB.Net, Datawindow and Readonly

$
0
0

Hi everyone!

 

Im pretty new to powerbuilder and its  my first time to build an app using powerbuilder.net

 

my situation here is, I have created a data entry application that consists of 2 datawindow to show the product, and product version respectively. The values/contents of the version_datawindow are dependent on the index of product_datawindow. i have set both of the datawindows to dw_prod.object.datawindow.@readonly=true/dw_ver.object.datawindow.@readonly=true. I have a ribbon menu control for my action handlers.

 

Whenever i press the Add button, two datawindows will set is @readonly property to false.

 

my question is this.

 

  1. when i press the ADD button, the datawindows are still on @readonly=true
    • i have put the protect in the script so whenever the add is clicked, the newrow is only editable
    • i have put tab order in my datawindows
  2. is it a bug that datawindows cannot change @readonly property?
  3. what would be the reasons why i cannot type on my datawindow?

 

notes:

i have tried this methods

dw_prod.object.datawindow.readonly='yes'/'no';

dw_prod.modify("Datawindow.readonly='Yes'/'No'")

 

please help.

 

thanks guys and more power!


Viewing all articles
Browse latest Browse all 2881

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>