How to create Static Record group in Oracle Forms??
Dear All,
I have the following values V1,V2 to be placed in my list item field during DML operations.
I have an example to create the record group based on the table; whereas i have never tried for static value creation.
Could you please guide me how can i acheive this.?
Thanks ....
Regards,
Sunil.G
Thanks dhivya for your reply.
Actually what happens is; when i use the same methodology as you mentioned, it is asking me to set the Initial value.
Whereas in my applications; user has to manually select any of the values i.e eithe V1 or V2 for the first time.
Moreover i have found the query:-
I have created a static record group RG_VERSIONS i.e creating a new record group with the static values mentioning the "Column names " as "Version_label" which i have given the column values as "V1" and "V2" and then another column name as "Version_value" with the column values as "V1" and "V2".
Then i used the below query in the WHEN-NEW-FORM-INSTANCE trigger:-
PROCEDURE p_when_new_form_instance
IS
l_rg_id recordgroup;
l_item_id item;
BEGIN
--Populating value for Version Type based on static record group
l_rg_id := FIND_GROUP ('RG_VERSION');
IF NOT ID_NULL (l_rg_id)
THEN
l_item_id := FIND_ITEM ('BLOCKNAME.COLUMN_NAME');
POPULATE_LIST (l_item_id, l_rg_id);
END IF;
END p_when_new_form_instance;
Then it was working fine.
Thanks for your time.
Regards,
Sunil.G
Edited by: Sunil G on Jun 27, 2010 6:00 AM
Similar Messages
-
How To Creating A Object Libraries In Oracle Forms 6i
hi
All
I Not No How To Creating a Object Libraries In Oracle Forms 6i
How To Add Your Pl/sql Block In a Lib
But What Is Use it is i Know , So I Want To Creating a Object Libraries.
So Any One Have A Idea Plz Help Me.Hi,
there is a good paper:
http://www.quovera.com/whitepapers/downloads/102_doc.zip
http://www.quovera.com/whitepapers/downloads/102_ppt.zip
Best,
Friedhold -
How to display static HTML pages in Oracle Forms 6i
I want to display static HTML page in oracle Forms ? Can any body help please ? Its very urgent. Many thanks in advance.
Suresh,
there exist a Java Bean in teh Forms 6i demos that shows a static HTMl example. Note that the HTML that could be shown is somewhat basic, but it will give you an impression how it can work. The demos are at otn.oracle.com/products/forms --> samples --> 6i demos
Frank -
How to write WHERE clause in dynamic record group in oracle forms
hi this is s.v.eswar,PLZ HELP ME
i am new to oracle forms
i want to write where clause in dynamic recordgroup
this is the code i have written
DECLARE
MGR_ITEM ITEM:=FIND_ITEM('MGR');
RG_ID_MGR RECORDGROUP:=NULL;
MGR_DUMMY NUMBER;
BEGIN
RG_ID_MGR:=FIND_GROUP('MGRNUMBER');
IF ID_NULL(RG_ID_MGR) THEN
RG_ID_MGR:=CREATE_GROUP_FROM_QUERY('MGRNUMBER','SELECT DISTINCT TO_CHAR(EMPNO),TO_CHAR(EMPNO) FROM EMP WHERE JOB='MANAGER''); --THIS IS THE LINE I AM GETTING ERROR
END IF;
IF NOT ID_NULL(RG_ID_MGR) THEN
MGR_DUMMY:=POPULATE_GROUP('MGRNUMBER');
IF MGR_DUMMY=0 THEN
POPULATE_LIST(MGR_ITEM,'MGRNUMBER');
END IF;
END IF;
END;
COMPILE TIME ERROR
1)I have written where clause like this WHERE JOB='MANAGER'
then oracle compiler has given error like
ENCOUNTERED THE SYMBOL 'MANAGER' WHEN EXPECTING ONE OF THE FOLLOWING .,().........etc
(FOR THE ABOVE ERROR I JUST REMOVED SINGLE CODES AND WRITE LIKE THIS ----->WHERE JOB=MANAHER)------>THEN COMPILED SUCESSFULLY)
AND I RUN THE FORM
RUN TIME ERROR
FRM-41072: CAN NOT CREATE GROUP 'MGRNUMBER'Hi there
pls have a look here
Dependent drop down lists in forms 6i
hope this helps...
regards,
Amatu Allah -
How to enable Multi-record select in Oracle Forms
Hi
we recently upgraded to R12 -- 12.1.3.
we have a requirement in which I should let the users select multiple records in a tabular Form (custom form).
Currently we have a custom form that displays Open sales orders with credit holds. After selecting the record, the user can release the hold on the order by clicking on a button. The requirement is for enabling selection of multiple records and release.
We have a similary functionality in 'Quick Sales Orders' form. In this form, multiple lines can be selected by pressing 'CTL' and clicking on the records.
I read about using APP_MULTI for this. But I couldnt figure out how to enable the multiple selection.
If someone could throw some light on this, it would be greatly helpfulSee http://stackoverflow.com/questions/3291758/how-do-i-use-the-app-multi-package-to-support-multi-selection-in-my-oracle-form for steps/sample code.
Sandeep Gandhi -
How to create dynamic 'rack drawings' with Oracle forms
Hallo, I work for a telecom company.
We have used Oracle Forms and Reports from the beginning and we are now on version 10.2 but upgrading til 11.2.
I got a request to make 'dynamic rack drawings' to display what equipment are located in what racks.
The suggestion is to calculate coordinates(position, height) and send it to our GIS-system to do the dynamic drawing bit.
The 'drawing' is just simple boxes with various height with a name in it to mark different types of equipment.
So my question is... How should we draw these boxes dynamically to display our racks including the equipment installed there?
Something like this With a header and a footer.
1 XXXXXX-12 1
2 2
3 yyyyyy-32 3
4 4
5 zzzz-11 5
6 6
40 40I wouldn't do the drawing part in Forms. Luckily there are Java Beans available in Webforms which you could use to visualize your data in a more complex way.
For more informations on Java Beans and how they are used in Forms google gives you a good impression
https://www.google.at/search?q=oracle+forms+java+bean
or if you are stuck don't hesitate to ask
cheers -
How to disable 'Clear Record' option in Oracle Forms deployed in Orcl Apps
Dear Members,
I have developed a custom form which is deployed in Oracle Applications.
In this form I want to disable the 'Clear Record' option to prevent users from clearing the record.
Can any one please tell me how can I do it?
Thanks in advance.
Best Regards,
Arun Reddy D.Hi,
In your Forms---> trigger--> KEY-CLRREC-----> NULL;
You cant clear any record. -
How to create a record based on the name of a file in the file-system?
Hi,
With a lot of pictures I want to have a database to gather some information about these pictures.
First question is how to generate a record based on a file in the file system?
e.g. the pictures are "c:\fotos\2009\01\disc_001.jpg" to "c:\foto\2009\01\dis_98.jpg" .
now i want to create records with as one of the attributes the name of the picture (not the picture itself). how to create these records (based on the information of the file-ssytem). i.e. the number of records should be the same as the number of pictures.
any suggestions?
any reaction will be appreciated.
LeoLink to Create directory
http://www.adp-gmbh.ch/ora/sql/create_directory.html
You can create a list of files in the directory and read the list files from that directory.
[UTL_FILE Documentation |http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/u_file.htm#996728]
[Solution using Java|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584]
SS -
Dynamically creating a Record Group based on Previously entered Record Grou
Forms [32 Bit] Version 10.1.2.3.0 (Production)
Hi,
I know how to dynamically create a record group based on a query and putting the code in When new form instance.
My query is. I have a form which has multiple Record Groups and the user wants to dynamically create subsequent groups based on previous groups.
For example
I have a record group with selects a Location,
when the user selects the Location from a list of values
the 2nd record group called 'Cost Centres' will have to filter out only those with the locations selected above.
How can I populate the 2nd record group at run-time when I do not know what site the user will select?
If I simply populate in when new form instance as in location and just select everything, the list of values populates.
CC field is a LIST ITEM and the list style is a POP LIST, it is not required.
I have put the code in the Location field in the when-list-changed trigger.
I am getting this error:
frm-41337: cannot populate the list from the record group
here is the code:
DECLARE
v_recsql Varchar2(1000); -- The SQL for creating the Record Group.
v_recgrp RecordGroup; -- Record Group
v_status Number; -- Return Value of Populate_Group function.
c_where VARCHAR2(1000);
BEGIN
IF :location = '1' THEN
c_where := ' substr(cost_centre,1,2) in (''01'',''02'')';
ELSIF :location = '2' THEN
c_where := ' substr(cost_centre,1,2) in (''02'',''03'')';
ELSIF :location = '3' THEN
c_where := ' substr(cost_centre,1,2) in (''01'',''11'',''07'')';
ELSE
c_where := ' 1=1'; --EVERYTHING
END IF;
v_recsql := 'SELECT cost_centre, description FROM cost_centres where '||c_where;
-- Create the Record Group
v_recgrp := CREATE_GROUP_FROM_QUERY('v_recgrp', v_recsql);
IF NOT ID_NULL(v_recgrp)
THEN -- No Error, record group has been successfully created.
-- Populate Record Group
v_status := POPULATE_GROUP('v_recgrp');
IF v_status = 0
THEN -- No Error. Record Group has been Populated.
POPULATE_LIST('block.CC', 'v_recgrp');
END IF; -- IF v_status = 0
-- Delete the Record Group as it is no longer needed.
DELETE_GROUP('v_recgrp');
END IF; -- IF NOT ID_NULL(v_recgrp)
END;thanks for your assistance.Hi,
Once record status gets change for block you can not populate/repopulate the list item. Keep those list items as non-database item with different names and create different items as database orignal items. Than assign the values in WHEN-LIST-CHANGE trigger to the actual database items.
-Ammad -
How we create new data base in oracle 10g express edition
hello every body.. i student of B tech n new user of oracle so please help me how we creat new data base in oracle 10g express edition
Hello, Oracle XE can not create more than one instance, the other editions yes, but like other editions XE allows you to create database schemas, schemas logically grouped objects like tables, views, indexes created by a user. By creating an Oracle user is associated with a schema of the same name.
Using SYS or system accounts for creating user accounts.
Syntax to create a user:
create user Your_user
IDENTIFIED BY password
default tablespace users;
grant connect, resources to your_user;
Edited by: rober584812 on Jun 25, 2010 9:03 PM -
Error message:FRM-12001: Cannot Create the record group(check your query)
Requirement: Need to get employee name and number in the LOV in search criteria.
So I created LOV "full_name" and Record group Query under Employee Name property palette with
select papf.title||' '||papf.last_name||', '||papf.first_name||' '||papf.middle_names emp_full_name
,papf.employee_number
from apps.per_all_people_f papf, apps.per_person_types ppt
where sysdate between papf.effective_start_date and papf.effective_end_date AND papf.person_type_id=ppt.person_type_id AND ppt.system_person_type IN ('EMP', 'OTHER', 'CWK','EMP_APL')
AND PPT.default_flag='Y' and papf.BUSINESS_GROUP_ID=1
order by papf.full_name
I was unable to save and getting error message "FRM-12001: Cannot Create the record group(check your query)".
I cant use PER_ALL_PEOPLE_F.FULL_NAME since full name here is last_name||title||middle_names||firstname.
But my requiremnet is papf.title||' '||papf.last_name||', '||papf.first_name||' '||papf.middle_names emp_full_name .
Can any one of you help me.First, Magoo wrote:
<pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy">create or replace function emp_full_name ( p_title in varchar2,
p_last_name in varchar2,
p_first_name in varchar2,
p_mid_names in varchar2 ) return varchar2 is
begin
for l_rec in ( select decode ( p_title, null, null, p_title || ' ' ) ||
p_last_name || ', ' || p_first_name ||
decode ( p_mid_names, null, null, ' ' || p_mid_names ) full_name
from dual ) loop
return ( l_rec.full_name );
end loop;
end;</font></pre>
Magoo, you don't ever need to use Select from Dual. And the loop is completely unnecessary, since Dual always returns only one record. This would be much simpler:
<pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy">create or replace function emp_full_name
( p_title in varchar2,
p_last_name in varchar2,
p_first_name in varchar2,
p_mid_names in varchar2 ) return varchar2 is
begin
Return ( Ltrim( Rtrim ( p_title
||' ' ||p_last_name
||', '||p_first_name
||' ' ||p_middle_names )));
end;</font></pre>
And second:
user606106, you did not mention how you got your record group working. However, you DO have an issue with spaces. If you change this:
<pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy">select papf.title||' '||papf.last_name||', '||papf.first_name||' '||papf.middle_names emp_full_name
,papf.employee_number </font></pre>
to this:
<pre><font face = "Lucida Console, Courier New, Courier, Fixed" size = "1" color = "navy">select Ltrim(Rtrim(papf.title||' '||papf.last_name||', '
||papf.first_name||' '||papf.middle_names)) AS emp_full_name,
papf.employee_number</font></pre>
it should work. The Ltrim(Rtrim()) removes leading and trailing spaces from the resulting full name. -
Static record group and lov problem
hi all,
1)I created a form module
2)created a basic datablock based on empno and ename from emp table.
3) created a static record group ,where i specified the column name as col1,provided the values as 1 ,2,3,4,5 etc
4) created an LOV and assigned the above record group to the LOV
5) then assigned the lov to the emp.empno item in the datablock emp....
when i run the form .....i get the list of values message on the console (bottom end of the window) ....
but I am not able to see the LOV when i press the cntrl L or see it from the edit menu command ?
what must be the problem ?
ta
sDear,
May be you don't set LOV's "Column Mapping Properties". After setting the properties correctly you will be able to display LOV.
Thanks. -
Form Builder Static Record Group
Hi Folks,
I am a part of a development team where we do parallel development where a team in India is working on certain forms and we work on other forms.
We faced a peculiar problem, both the teams use Oracle Forms 6i, but we lose values in the static record group attached to Static LOV.
Have any one of you faced this problem before, please let me know.
With Regards,
SrikanthHi all
Should I install patches for correcting this problem ?
Thanks and Regards,
Srikanth -
Which two statements define a Static Record Group?
Hi all
I read this question and I do not know the answer
the question is
Which two statements define a Static Record Group? (Choose two)
A. The Record Group can be created only at run time.
B. The Record Group is not associated with a query.
C. The Record Group can be created and modified only at design time.
D. The Record Group can be created and modified at design time or at run time.
E. You can modify the structure of this Record Group by adding columns and rows at run time.
F. You can modify the structure of this Record Group by associating it with a query at run time.Types of record group, either Static or Query:
Static Specifies that the record group is constructed of explicitly defined column names and column values.
The values of a static record group are specified at design time and cannot be changed at runtime.
Query Specifies that the record group is associated with a SELECT statement, and thus can be populated dynamically at runtime.
When you select this option, enter the SELECT statement in the multi-line field provided, then choose Apply.
So answers B and C
From Forms Help -
How to create a custom plugin in Oracle Access Manager to create a cookie
How to create a custom plugin in Oracle Access Manager to create a cookie or Header Variable..
VipinIts has more steps which you need to consider in addition to Note:101048.1 which is mentioned by Prashant_Pathak. Both notes have enough information. If not, let's know what else you need to set
Maybe you are looking for
-
OK so I have an .FLV playing in a div container. After and only after the viewer watches the complete .FLV I want a feedback form to come up. Now, should I use flash for this or html? What actionscript would I use for this ? Event.complete if thats e
-
How to escalate your Verizon complaint.
I can help you. I can send you a PM with the information for the executive line and the email for their CEO if you can't get satisfaction here, just let me know. I too have gotten no where with my problem. One of the reps actually laughed at my wife
-
Most Creative Suite CS6 Apps crash upon launch with Mountain Lion
Is there a solution to the problem CS6 apps crashing at launch or shortly after when running Mountain Lion? I have tried many reinstalls of CS6 and Mountain Lion. I verified permissions and repaired. No matter what I do the same apps fail and crash.
-
Creating external infotypes or external relationships
Hi, Is it possible to use RH_INSERT_INFTY to maintain external infotypes and relationships? If yes, then anything need to be taken care of. Thanks n regards, Aravind
-
Cant get through the ipad set up
I have a new ipad and cant get through the set up process because the ipad wont connect to my network.