Go-item in post-text-item oracle forms 6i
It is not possible to use go_item in post-text-item trigger in forms 6i
How to overcome this?
I've never tried to force the user to do that.
But Kevin's second solution would do it:
Set a packaged variable and put the code in a form-level WHEN-NEW-ITEM-INSTANCECreate a package specification in the form -- I always name such a package P0.
In the package, create a variable: Next_Itm varchar2(60);In your post-text-item trigger, set the package value: P0.Next_Itm := 'BLOCK_B2.ITEM_6';In the form-level when-new-item-instance trigger:
If P0.Next_Itm is not null then
Go_Item(P0.Next_Itm);
P0.Next_Itm := null;
End if;
Similar Messages
-
Diffrence between when-validate-item and post-text-item trigger
What is the Diffrence between when-validate-item and post-text-item trigger, when they are written for the same item and the basic diffrence between when-validate-item and post-text-item trigger.
Two big differences:
1. post-text-item is only available to, and only triggered when leaving a text item, whereas when-validate-item is triggered by the forms validation process, and is available for any item type.
2. p-t-i is a navigation trigger and you cannot invoke it programmatically, whereas the 'validate' built-in can be used to execute validation which fires the w-v-i trigger(s). -
Display Hint Text in Oracle Forms 6i at Text Item
Dear all seniors
I want to show Hint text at Text Item in Oracle Forms 6i.
when my cursor Focus goes at that item. I mean when I go with Tab key or Enter button then it show display text.
even though my mouse is not on that item.
please how it would be possible
thanks.
G.YPlease create a display_item(for eg. Disp_Mess) just below the text field (For eg:-MyField) where you want to show hint. And then assighn Hint text to "DISP_MESS" in NEW-FORM-INSTANCE or at Initial value. Then create a PRE-TEXT-ITEM and POST-TEXT-ITEM trigger for MyField.
-- PRE-TEXT-ITEM trigger write following code.
SET_ITEM_PROPERTY('DISP_MESS',VISIBLE,PROPERTY_TRUE);
--POST-TEXT-ITEM write following code.
SET_ITEM_PROPERTY('DISP_MESS',VISIBLE,PROPERTY_FALSE);
It will work for you.
Regards
Ahamed Rafeeque Cherkala -
Validation in POST-TEXT item trigger
Hi
Does POST-TEXT -ITEM trigger fire in ENTER-QUERY mode?
If not suggest me solution for following scenario:
I have supplier field in master block. When Form is in -ENER-QUERY mode, i want to validate the user input in the supplier field before user navigate out of the field using TAB KEY (KEY-NEXT-ITEM) or MOUSE (POST-TEXT-ITEM).
Thanks
Cheers
RamThe Forms help says that it doesn't, and nor does when-validate-item.
It looks like you'll have to use the when-new-item-instance trigger. You can store the value of the current field and whenever the trigger fires, run some code to validate that field. If it passes the validation then store the value of the new field, otherwise put the user back in the original field.
You'll also need to call the code from the key-exeqry trigger, so that you can validate the field which the user is in when they execute the query. -
FRM-40737: illegal restricted procedure COMMIT in POST-TEXT-ITEM trigger
Hi All,
I tried to execute an insert statement in a POST-TEXT-ITEM trigger and use commit to save data in the db but this error appeared:
FRM-40737: illegal restricted procedure COMMIT in POST-TEXT-ITEM trigger
How to solve it? OR how to save every text item value entered in the database?I don't fully understand, why you need to insert records on post-text-item, but the possible solution is:
Write a DB procedure which does insert and commits it.
Call this procedure in post-text-item.
Problems will occur if your procedure is modifying the table columns, which are used in form. Form will notice that values in DB have changed and you will have "Record has been changed by another user. Please requery to see changes" error. But if records, affected by DB procedures, are not used in form, the wverything will be OK. -
I have a master block and a detail block, which is a multi
record block; for one item in the detail block I created a post-
text-item trigger to check if this value exists;
the problem now is that this trigger not only fires if I leave
the item, it also fires at the beginning when the canvas is
dieplayed and I execute a query
can anybody tell me why this happens and how to avoid it?
thx in advance, michaela
nullMichaela (guest) wrote:
: I have a master block and a detail block, which is a multi
: record block; for one item in the detail block I created a
post-
: text-item trigger to check if this value exists;
: the problem now is that this trigger not only fires if I leave
: the item, it also fires at the beginning when the canvas is
: dieplayed and I execute a query
: can anybody tell me why this happens and how to avoid it?
: thx in advance, michaela
What happens in your form is perfectly normal.
You should use the When-Validate-Item trigger, and, eventually,
set the text-item required.
null -
Execute query when post text item
Anybody can help ?
I create 2 block, first a data block and another is a control block with field customer_search field,
after inputing customer id in search field on control block,
I want to execute query.
my code :
set_block_property('customer',default_where,'custid=:control.customer_search');
execute_query;
error : frm-407 : illegal restricted procedure execute_query in post-text-item trigger.
How to solve this problem ?
notes: If I create one push button and put execute_query in there, every thing is fine.
but the my user does not like that.
Thank.hi,
first of all change ur statement as
set_block_property('customer',default_where,'custid='||:control.customer_search);
means u must use pipe sign while using bind variable
secondly
u should use key next item trigger
go_block(user desired item or block);
--and then use this satemant
clear_block(no_validate);
execute_query(no_validate);
i hope it wil slove ur peoblem if it will NOT then please acknowledge otherwise we will go for a other solution
thanks
imran
manager IT
www.masoodtextile.com -
How to generate database text items at run time in oracle forms 6i?
i have a text item with NUMBER OF ITEMS DISPLAYED=3. My requirement is, i need to generate text items at run time under each TEXT ITEM(3 text items will be there since number of items displayed is 3) and the values will be stored in the database based on the primary key combination. pls help me to solve this pblm
Hi,
You cannot generate items dynamically at runtime. The only thing you can do is show and hide item on time. Thay seems that they are generated at run time. Second thing you can do is that you can put items on stack canvas and set visible property of stack canvas to no and at run time set it to visible according to ur condition. Otherwise there is no way. If you find any other way, plz do inform here also. -
How to hide the display of my text in oracle forms
Oracle Forms 6i
Hai All
My question is how to disable my Text.
I have created a forms for weight management here when the user opens the forms I dont want to show my text and textitem before filling some fields.
I have have set the text item by Set_item_property display False and how can set the text display false
Thanks & Regards
srikkanth.MYou cannot do any operation on forms label
other way is to use non-database Display items to show you text.... or if you are looking to hide the prompts of text fields then you can set it to null or hide the text item completely -
How to use Item Type User Area in Oracle Forms 6i
Hi, People.
Please, give the link - How can I use User Area programmatically. Thx.
Message was edited by:
user625002http://www.oracle.com/technology/documentation/6i_forms.html
-
Validations/checks on Navigations in Oracle Forms 4.5
Hi,
I am writing some validation on[b] Key-Next-Item trigger of item in Form displaying records in tabular fashion.
Now if any error occurs ( either oracle or user defined) I want to stop further processing and focus should be on that item only.
This is working fine ( Key-next-item) when i press tab-key But when I navigate using mouse to next item, though triggers fires ( I tried When-Validate-Item also) but focus is going to next item which I press/navigated using mouse. How should I check this validation? which kind of trigger i should use?
Regards,
Milind JadhavMilind wrote:
I had tried with WHEN-VALIDATE-ITEM also but even after raising RAISE
Form_Trigger_Failure, I am not able to stop the cursor from moving it to next itemTry again. Do NOT put the code in key-next-item OR post-text-item. When-validate-item trigger is the only correct place to put field validation code.
A typical when-validate-item trigger looks like this:
-- When-validate-item trigger on :BLOCK1.COLUMN2
If :BLOCK1.COLUMN2 not in ('A','B','C') then
Message(' Error: Value must be A, B or C');
Raise Form_Trigger_Failure;
End if;If what you try does not work, post the code. -
Navigating to the text item with color
hi all,
i have 10 text_items in my form, i want that when i am in first text_item the color should change default to any color i want (take suppose yellow)
then when i am going to second text_item then color should change to yellow like that it has to happen for all the text_items.
how can i do this... where i should write the code and what code...
please reply...Create one VISUAL ATTRIBUTE with background color = yellow and use the code as below on block level triggers.
1. Create one trigger on block-level called PRE-TEXT-ITEM and use the code as below...
SET_ITEM_PROPERTY(:SYSTEM.CURRENT_ITEM,VISUAL_ATTRIBUTE,'VISUAL_ATTRIBUTE_NAME');2. Create another trigger on block-level called POST-TEXT-ITEM and use the code as below...
SET_ITEM_PROPERTY(:SYSTEM.CURRENT_ITEM,VISUAL_ATTRIBUTE,'DEFAULT');-Ammad -
How do you write UNDO for a text item?? examples? or a REDO??
How do you write UNDO for a text item?? examples? or a REDO??
I created a pop-up menu with CUT, COPY, PASTE, UNDO, CLEAR for my text items.
Using MAGIC menu type works great but there is no MAGIC for UNDO or REDO.....
How do you write UNDO for a text item?? examples? or a REDO??
I have Oracle Forms 6i...
Lets say I highlight all the text in the text item, and start typing over it... then I realize OH NO it is the wrong text field...
Now I want to UNDO the typing and get back to the previous text.
I'd use the initial value that was populate right? How do I access that if that is correct?
Thanks, BillYou can use;
<ITEM> := Get_Item_Property(<ITEM>,DATABASE_VALUE);
Or you will have to write a pre-text-item trigger;
PRE-TEXT-ITEM:
:CTRL.CURRENT_VAL := :<BLOCK>.<ITEM>
MENU (PL/SQL):
:<BLOCK>.<ITEM> := :CTRL.CURRENT_VAL;
You may also want to set the item property back to ITEM_IS_VALID so that item validation does not fire again. -
Issue with Tabular text item block
Hi,
This is the psuedo form structure. First block contains search text item and ok button.
Second block is a multi tabular form block with text items. only last text item in column is editable by user to enter values.
| |
| Search text OK |
|_____________________________|
| multi item-tabular block |
| text item |
| text item |
| text item |
| text item |
| text item |
User will enter search text and hit enter and it will trigger LOV and it will display list, of which user will select one and again hit enter. then the second multi tabular block is populated with values and cursor goes to text item and user can enter values in that text item.
Problem is cursor is blinking in the middle of text item and if I try to enter some then value is displayed from the middle of text item. I tried adding a condition check if there r any nulls and removed nulls then cursor is at the right (which is correct) but after I enter some value and hit ENTER then again cursor is staying in same text item at the middle but the cursor record has moved to next record.
Looks something like this- cursor at the middle of text item.
233| $.00
I have Validate-trigger, key-next-item, key-prev-item.
Thanks in advance
SaiThanks a lot to all who spared their time looking into my question and replying.
This is an Oracle BUG! You can check it in Metalink.
Whenever there is any Timer enabled(with 1ms ONLY) in the form and If user is trying to move cursor in the Multi record block using Keyboard then it will not work.
So I changed the Timer from 1ms to 2 ms (which is does not make much difference to application) then it worked fine.
Thanks
Sai -
Assigning LOV return Value to multiple text items
Hi all
I have a custom form on which i have 10 text items
text item 1,text item 2 ....text item10
I have a table xx_querywith fields
text_item,query
i have inserted into the xx_query table
insert into xx_query(text_item,query)
values(text_item1,'select sysdate from dual');
insert into xx_query(text_item,query)
values(text_item2,'select sysdate-1 from dual');
I have created a record group dynamically and i am getting the query from the query column of the xx_query table into the record group(say test_rg)
I have created a LOV test_lov and thr set_lov_property i have populated the test_rg query into the test_LOV
is it possible for me to set the return item of the LOV dynamically so that i can get the LOV on the item which i want to ?
thanks
_Hi All
thanks for your responses
I have Created a control item and assigned the return value of the LOV to the control item
and i have assigned the LOV to the text item that i want
Currently when i navigate to the text item the LOV is visible
but when i select a value from the LOV the value is not getting populated into the text item
I have assigned the value of the control item to the text item
but i am not sure in which trigger to write the code so as when i select the value from the LOV the value should be shown on the form populating in the text item
Thanks
Maybe you are looking for
-
in iphoto slide show when itunes music is selscted it doesn't show any music files available within the drop down menu, how do i get the itune music pfiles into that program (iphoto)
-
Different CCR result when compared to OM17 result
Hello All , What currently we have seen is when we manually delete stock in SAP APO using RLC DELETE and run CCR report it shows that the Stock is INCONSISTENT but when we run the OM17 for STOCKS it shows that STOCK is CONSISTEN
-
How to change displayed font size in calc?
I've got a user that has the following problem... The fonts inside of certain spreadsheets are too small for her to read easily. I'm looking for a way to set a default magnification value for her in StarOffice. As it stands now, the screen resolution
-
Email on the IPhone gets deleted when the email is checked on the PC
Hey all, My boss gave me the task of figuring out issues on his IPhone 4G so here I am. He says when he checks an email on his personal computer, that same email gets deleted on his IPhone. We use Windows Mail and I'm sure it's POP. I've googled this
-
Hi, I am in the process of migrating a WAS 620 based CRM 4.0 system running on DB2 v8 to MSSSQL. It has a JAVA stack also in it (ABAP+JAVA instance). Does a CRM migration differ from normal R/3 or WAS systems' migrations? If its different, what