Reputation: 39
Net 12.5 and creating a small data entry program. The datawindow compose of 1 dropdown datawindow and the remaining 4 columns is set to edit
the problem here is, the dropdown datawindow is uneditable. i have set override edit to true and set datawindow.readonly='No'/dw_1.object.datawindow.@readonly=false.
but all else fail. i cant still edit the contents of my datawindow.
note
when Add button was pressed datawindow will set its readonly = false datawindow columns has protects if its newrow() the column that can be editable is a dropdown datawindow
please help
love lots
Upvotes: 3
Views: 7701
Reputation: 21
IsRowNew() has no problem in PB-12.5
Either you are changing status of the row in your script or you are overwriting your expression in your script somewhere. Your column expression is correct
dw_prod.Modify("pt_pname.Protect='1~tIf(IsRowNew(),0,1)'")
Upvotes: 0
Reputation: 478
You need to check following:
1. Open dddw object and set tab order.
2. set tab order of that column where dddw set.
3. Set protect = 0 of that column in both objects.(datawindow & dddw object)
please comment your status.
Upvotes: 0
Reputation: 1
In the column go to protect properties and enter:
If(isrownew(), 1, 0)
That's it.
Upvotes: 0
Reputation: 11
isRowNew() doesn't seem to work fine. I have made some test and i can't make it work, after google this, i can see that others have the same issue since 2004, and nobody cares. Maybe now that SAP buy this product, they will correct it, or not.
The only solution i found is using Isnull(). You have tu assume, that when you add a row its values are null, and old rows have values (using pk ok, but using others they can be null), so you must protect those which are not null
This isn't a perfect solution but is the only one that works.
Upvotes: 1
Reputation: 4174
These are just a few things I think of that could case problems but I am very unclear about what is going on.
More information would be helpful...
This statement makes no sense at all please clarify/rewrite it if you want help.
i have set override edit to true and set datawindow.readonly='No'/dw_1.object.datawindow.@readonly=false.
Upvotes: 1
Reputation: 2706
On the Edit tab of the DDDW properties, select the Allow Editing checkbox. Override Edit is used when a column is set to prompt for criteria.
Upvotes: 0