Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

triggering itemchanged event

736 views
Skip to first unread message

Manel Jové

unread,
Jul 16, 2001, 11:54:01 AM7/16/01
to
In a script we need trigger the itemchanged event after calling setitem
fucntion for a column, but we can't get dwobject for that column becuase we
receive the column's name in a string variable.

PLEASE, HELP!!!

Thanks in advance.
Manel


Dunk

unread,
Jul 16, 2001, 5:52:03 PM7/16/01
to
Umm... do you need to trigger itemchanged, or do you just need to run
your validation code?

..maybe you can get the dwo at some other time, and save it.

Dunk


On Mon, 16 Jul 2001 17:54:01 +0200,
in powersoft.public.powerbuilder.datawindow

---== Posted via the PFCGuide Web Newsreader ==---
http://www.pfcguide.com/_newsgroups/group_list.asp

Simon Caldwell [TeamSybase]

unread,
Jul 17, 2001, 4:37:44 AM7/17/01
to
The best method is to create a user event, and call this from both
itemchanged and your other script.
Otherwise, you can try
SetColumn("your column")
SetText("new value")
AcceptText()


--
Simon Caldwell
Get Real Systems Ltd
Holtby Manor, Stamford Bridge Road, York, YO19 5LL
Tel 01904 481999 Fax 01904 481666
Visit us at www.getrealsystems.com

Specialists in e-Procurement and supply chain technology


"Manel Jové" <mj...@xmi.es> wrote in message
news:gK6BENh...@forums.sybase.com...

Ragusini Paolo

unread,
Jul 17, 2001, 12:12:30 PM7/17/01
to
I overrided the problem declaring an instance variable of type dwobject.
Then in the itemfocuschanged event I assign the dwo parameter to the
instance variable: any time the user changes the column focus the
itemfocuschanged event updates the reference to the dwo: in this way you
allways have a reference to the current dwobject (column)

Hope this may help you
Bye

"Manel Jové" <mj...@xmi.es> ha scritto nel messaggio
news:gK6BENh...@forums.sybase.com...

Carol Burrows

unread,
Jul 19, 2001, 11:26:27 AM7/19/01
to
Try this code:

Replace itemchanged event with:

long ll_return

RETURN ue_itemchanged(row,dwo.name,data)

In ue_itemchanged event, place all the original code from itemchanged event.

In the event where you have the data and the name of the column where you
are going to do a setitem,

long ll_return
long ll_row
string ls_data
string ls_column

ll_return=ue_itemchanged(ll_row, ls_column, ls_data)
If ll_return=0 then
Setitem(....)
else
//error
end if


"Manel Jové" <mj...@xmi.es> wrote in message
news:gK6BENh...@forums.sybase.com...

0 new messages