Home » Developer & Programmer » Forms » Problem with tab page canvas (Forms 10g, Windows XP)
Problem with tab page canvas [message #378709] Wed, 31 December 2008 10:57 Go to next message
paulor
Messages: 15
Registered: December 2008
Junior Member
Hello,
I have canvas (CV_TP_ANS) with 3 tab pages. Default tab page is tab A. I'm trying to programatically change tab_page to C. Because on the tab C there is only display item, I can't set focus by go_item(). I used: SET_CANVAS_PROPERTY('CV_TP_ANS',topmost_tab_page,'TAB_C');
but this didn't take effect. Is it possible to achieve this by another way?
Re: Problem with tab page canvas [message #378752 is a reply to message #378709] Thu, 01 January 2009 04:17 Go to previous messageGo to next message
Littlefoot
Messages: 20891
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
SET_CANVAS_PROPERTY works fine; as you use Forms 10g, here's a sample form created on Scott's DEPT table; DEPTNO and DNAME are on the first tab page, while LOC (a display item) is on another tab page. KEY-NEXT-ITEM on DNAME item which uses SET_CANVAS_PROPERTY successfully opens the second tab page.
Re: Problem with tab page canvas [message #378768 is a reply to message #378752] Thu, 01 January 2009 08:28 Go to previous message
paulor
Messages: 15
Registered: December 2008
Junior Member
I repeated solution with SET_CANVAS_PROPERTY and actually it worked but I explored that it can't be the first statement in my block (I had there also assignation to display item). When I first assigned value to display and then invoked SET_CANVAS PROPERTY everything is OK. Thanks for help.
Previous Topic: make bill in form builder
Next Topic: I Don't want to enter date multiple time in form
Goto Forum:
  


Current Time: Sun Dec 04 04:15:23 CST 2016

Total time taken to generate the page: 0.07410 seconds