Home » Developer & Programmer » Forms » How to sustain a parameter between two instances in formss
How to sustain a parameter between two instances in formss [message #298889] Fri, 08 February 2008 02:58 Go to next message
isha1812
Messages: 16
Registered: January 2008
Junior Member
Hi!!

My requirement is:

when a user logs in and opens a task ,and another user opens the same task he should get a piopup that the task is already in use.

so i need a way to sustain a variable between two seesions

Re: How to sustain a parameter between two instances in formss [message #298910 is a reply to message #298889] Fri, 08 February 2008 04:29 Go to previous messageGo to next message
misragopal
Messages: 125
Registered: June 2005
Location: New Delhi, india
Senior Member

Insufficient information.
Sorry to say that but can you please bit more clear on your problem? That Variable is global? do you want local? and what actual problem you are facing?
Re: How to sustain a parameter between two instances in formss [message #299238 is a reply to message #298889] Mon, 11 February 2008 00:17 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Define 'task'.

David
Re: How to sustain a parameter between two instances in formss [message #299993 is a reply to message #298889] Wed, 13 February 2008 23:38 Go to previous messageGo to next message
akramrabaya
Messages: 41
Registered: November 2007
Member

define a global variable once you start your application

:global.curr_user := "aaa";
:global.form1_user := null;


and then when you start the form make a trigger on the form level

[ when new form instance ]

if :global.form1_user is null then
:global.form1_user := :global.curr_user ;
else
message('this form already in use by another user');
end if;


akram
Re: How to sustain a parameter between two instances in formss [message #300016 is a reply to message #299993] Thu, 14 February 2008 00:49 Go to previous messageGo to next message
mintomohan
Messages: 104
Registered: November 2006
Location: India
Senior Member
hi akramrabaya,

are you sure this method will work ?

i think we cannot share data between two instances of a forms application using global variables.

Minto
Re: How to sustain a parameter between two instances in formss [message #300026 is a reply to message #300016] Thu, 14 February 2008 01:01 Go to previous messageGo to next message
akramrabaya
Messages: 41
Registered: November 2007
Member

if i correctly understand your requirments that will work and already tested .....!!!!


i don't know what you mean by " share data between two instances of a forms application "

it is just a parameter can move between forms until you go out completely from the application session



akram
Re: How to sustain a parameter between two instances in formss [message #300033 is a reply to message #300026] Thu, 14 February 2008 01:12 Go to previous messageGo to next message
mintomohan
Messages: 104
Registered: November 2006
Location: India
Senior Member
hi akramrabaya,

Quote:
... share data between two instances of a forms application ...


i was referring to two sessions.

isha1812 was looking for a way to sustain a variable between two sessions
Re: How to sustain a parameter between two instances in formss [message #300036 is a reply to message #298889] Thu, 14 February 2008 01:13 Go to previous message
mintomohan
Messages: 104
Registered: November 2006
Location: India
Senior Member
hi isha1812,

i think this need to be handled at database level.

Minto
Previous Topic: Repeat items
Next Topic: Saving to an Excel file using forms
Goto Forum:
  


Current Time: Fri Sep 27 08:28:32 CDT 2024