Home » Developer & Programmer » Forms » Regarding canvas
Regarding canvas [message #193570] Mon, 18 September 2006 05:31 Go to next message
orafan2003
Messages: 122
Registered: February 2006
Senior Member
Hi,
I am using this code in On-message trigger,
if message_code=40350 then
message('There are no tasks!!');
-- SET_VIEW_PROPERTY('canvas53', visible, property_true);
show_view('CANVAS53');
Synchronize;
else
message(Message_code||': '||Message_text);
end if;
This code is giving me a pop-up with the message in it and a "OK" button. When I click on "OK", I want to direct to a canvas. But I am not able to do so. How can I achieve my task?
Re: Regarding canvas [message #193575 is a reply to message #193570] Mon, 18 September 2006 05:52 Go to previous messageGo to next message
orafan2003
Messages: 122
Registered: February 2006
Senior Member
Sir, I slightly changed my code.
This is the code in On-message
DECLARE
alert_button NUMBER;
BEGIN
if message_code=40350 then

alert_button := Show_Alert('ALERT60');
IF alert_button = ALERT_BUTTON1 THEN
go_item(':control.text_item56');
END IF;
end if;
end;

But at runtime, when I clicked on "OK" I am got this error message
FRM-40105- Unable to resolve reference to item :control.text_item56
I checked in the property palette of the text item. It is in the CONTROL block and is on the new canvas.
What can be done?
Re: Regarding canvas [message #193923 is a reply to message #193575] Tue, 19 September 2006 23:37 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
The built-in 'go_item' is a 'restricted procedure' and 'on-message' is only able to process 'SELECT statements, and unrestricted built-ins' (it says so in the Reference Manual).

Store the name of the item to which you wish to navigate in a 'global' variable then create a timer. In the timer, get the value in the 'global' and use it to do the navigation.

Search this forum for 'timer' for examples.

David
Previous Topic: object oriented database
Next Topic: how to use fingerprint reader in forms 6i
Goto Forum:
  


Current Time: Sat Dec 10 10:51:45 CST 2016

Total time taken to generate the page: 0.27685 seconds