473,395 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Powerbuilder: Change Updatable Columns at Runtime

Hi,

I don't know where to place this question, can't seem to find a topic dedicated for powerbuilder. Anyway, I have an application, I'm working on a particular window, inside this window, I have a datawindow which is updatable. The updatable columns are defined. This datawindow is retrieved during the open event (parameters were passed via openwithparm). Before I save, i check whether the columns are updated (I compare the primary value with the current value), if the column has not changed, I want it to be excluded in the generated update stement when I call update(). I just can't find a way to do this.

The problem is, outside the application, I have a job that updates the value of these columns, lets say it updates col1, and if it updates the column while I'm inside the window, meaning I have retrieved the record already inside my application, when I save the window, it includes col1 in the update statement and use the initial value I have retrieved, meaning I am overwriting the value updated by the job.

The question is, is there a way to exclude columns from list of updatable fields of a datawindow during runtime?

Any help is much appreciated.

Update: I am only updating one record on this window.
Jul 12 '13 #1

✓ answered by chibbie23

This is such a newbie question. Saw the code for this

dw_control.Object.col1.update = "no"

OR

dw_control.Modify("col1.Update = No")

1 2897
This is such a newbie question. Saw the code for this

dw_control.Object.col1.update = "no"

OR

dw_control.Modify("col1.Update = No")
Jul 12 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Grant Stanley | last post by:
I'm developing an application in VS.Net 2003 using C#, which uses Crystal Reports. When creating each report, crystal asks where the database to use is, so I specify our SQL server using the ADO...
1
by: Jim | last post by:
After clicking on a row in a dataGrid, how do I change which tab is showing? I want to switch from tab1 to tab3. thanks
2
by: Gwl | last post by:
I'm writing an application in which the user can change the default ouput language while the program is running. I have no problem to do it when there is only a form opened, but if I have a...
2
by: Fredrik Rodin | last post by:
Hi! I need to be able to change, add or remove items in the QueryString. Let say I have the following scenario: Page_1.aspx display a dropdown list. This list is post-back enabled. It can...
5
by: John M | last post by:
Hello, In Visual Studio .NET 2003, How can I change the columns' width (at design or runtime) of datagrid ? Thanks :)
2
by: Eric Fortin | last post by:
I have a DataGridView that I bind to a dataset at runtime (I do not set up the data grid view for binding to that specific dataset at design time) and I want to save the manually resized column...
1
by: binder | last post by:
I have a stored procedure that inserts values into five columns of a table. I need another stored procedure that will allow the user to pass one or more of those parameters and update only the...
1
soulstace
by: soulstace | last post by:
Hi all, I have a project with two forms. Call them form1 and form2. On form1, I have a notifyIcon which appears in the system tray when the application starts. On form2, I have a textbox,...
0
by: pankajol82 | last post by:
Hi all I am using following code to change regional setting at run time its not giving any error but at the same time the format of date is not changing. Dim DateFormat As New...
3
by: Frank Swarbrick | last post by:
How can I fix this so that it doesn't do essentially the same scan twice, but it gives the same results (a single row where IDENTITY_MODIFIER is either 'identityoverride' or '' and...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.