Solved

Synchronize(mirror) with different tab pages in Oracle Forms 6i

Posted on 2004-10-09
3
453 Views
Last Modified: 2008-01-09
Hi Guys,
    I need your help on this? This is the scenario.


Contract Number                    Vendor Name           Currency

tabs:  Summary  Parties Rules Pricing

         Contract Number  and so on  (this is under summary tab)

The one on the header level Contract Number was created as Display item and synchronized with
the column Contract number  .
  (Display item on the header level is also in the same data block as Contract number under the summary tab)

Vendor name is also the Display item created by me but the synchronized item was "Vendor Name" under
 "Parties" tab page.


Now it works fine for the "Contract Number" (since the tab page "summary" is the default one) but i can't see anything
displayed for " Vendor Name" unless i click on the "parties" tab page.


Could u provide me a solution for this problem? Got to deliver it by Monday afternoon.
0
Comment
Question by:babunagendra
3 Comments
 

Expert Comment

by:Mr_Ahmad
ID: 12269502
Hi,

can you tell me what code you are using at the moment
0
 

Author Comment

by:babunagendra
ID: 12270982
This is the code i used for getting the value into "Vendor Name" on the header level.


Declare
      variable1 varchar2(300);
      variable2 varchar2(300);
begin
variable1:=:OKCAUDET_HEADER.COGNOMEN;
if :OKCAUDET_HEADER.COGNOMEN <> null then
select pov.vendor_name into variable2
from okc.okc_k_headers_tl kht, okc.okc_k_party_roles_b prb, po.po_vendors pov
where kht.cognomen = variable1
and kht.id = prb.chr_id
and prb.rle_code = 'VENDOR'
and prb.OBJECT1_ID1 = pov.vendor_id;
:OKCAUDET_PARTY_ROLES.NAME1 := variable2;
end;

I am getting the error "unable to perform query" and not going the desired effect on the form.


I don't need to write the code for " Contract Number" since the value it is taking is from the "summary" tab item
which is the default focus when the form comes up. So for this ,all i did was in the property palette,under synchronize i put the item of the summary tab item(Contract number)


My thinking is if when this form comes up,somehow shift the focus to the "Parties" tab page and have the focus back to the "Summary" tab ,may be this problem can be resolved.

Thanks


0
 
LVL 22

Accepted Solution

by:
Helena Marková earned 500 total points
ID: 12274366
I would advice you not to synchronize "Vendor Name" with "Vendor Name" under "Parties" tab page. You can use POST-QUERY trigger of block "summary" to populate "Vendor Name" item.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Database tuning – How to start and what to tune. This question is frequently asked by many people, both online and offline. There is no hard and fast rule-of-thumb for performance tuning, however, before beginning the tuning process one should a…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now