Using JDAPI to manipulate record group
Hi.
I am doing a migration from oracle forms 4.5 to 10g. For now I was able to manage/fix everyting using JDAPI interface. Now I am stuck with the following problem. In forms 4.5 it was perfectly legal to use a value of record group column larger than data length of that column. From forms 6+ there is a runtime error generated when this situation is met. What I wanted to do is to change/truncate record group value to the length of that column using JDAPI. No matter how I search I cant find proper metod to do the job. That is to change the value of record group column. Did anybody had a similar situation and was able to solve it.
Best regards.
Hi.
I am doing a migration from oracle forms 4.5 to 10g. For now I was able to manage/fix everyting using JDAPI interface. Now I am stuck with the following problem. In forms 4.5 it was perfectly legal to use a value of record group column larger than data length of that column. From forms 6+ there is a runtime error generated when this situation is met. What I wanted to do is to change/truncate record group value to the length of that column using JDAPI. No matter how I search I cant find proper metod to do the job. That is to change the value of record group column. Did anybody had a similar situation and was able to solve it.
Best regards.
Similar Messages
-
Can't use function in creating record group
Gurus,
This question is for developers. Is this true one can't use
function in creating record group. I am using form5.
thanks,
ZWI figured out the issue... they changed the way Group Calls are limited.
Here's a full explaination - and a suggestion for a behavior fix: http://community.skype.com/t5/Windows-desktop-client/Please-Fix-Group-Video-Voice-Calling-Limit-Beha...
Long story short, you can't do a video calling at all if the group has more than 10 people in it total (including you).
Also, you can't do voice calling in groups with more than 25 people.
Text chats are limited to 300 people (or so I've been told by Skype employees). I've been in a chat with over 100 participants though so I know it goes that high at least. -
ORA-00904 when use column alias in Record Group Query
Is it possible to use column aliases in Record Group Queries?
I have a query that runs fine in SQL*Developer, but gives me runtime errors when I use it as a Record Group Query.
When I use it as a Record Group Query, the Form compiles, but at runtime I receive the following errors:
FRM-40502: ORACLE error: unable to read list of values
when I use Help - Display Error, I see:
ORA-00904:"CHILDNAME":invalid identifier
The query is something like this
select decode(complex stuff here) as "childname" ....
I've tried it with and without the double quotes surrounding the alias name, and have also tried it without using the "as" keyword.
I would appreciate any suggestions or insights. I'm using Forms 9.0.4.
Thanks.It looks like this is caused by bug 725059:
"FILTER BEFORE DISPLAY" DOESN'T WORK IF LOV HAS COLUMN ALIASES (TRIAGE1098)
My LOV does have the Filter Before Display turned on. Here's the text of the bug:
IF an LOV is created with column aliases in the select statement, (eg: select ename emp_name from emp) and the LOV property "Filter Before Display" is "Yes", THEN when you attempt to filter the LOV at runtime, (eg: type '%' then press the 'Find' button) the internal WHERE clause that forms sends to the database is: WHERE column_alias LIKE '%%' This is incorrect syntax. A client-side sqlnet trace shows this. The correct syntax should be: WHERE column LIKE '%%' . The incorrect syntax results in no rows returned. However no error is displayed by forms to the user. -
Using Global variable in Record Group
Hi,
I have a requirement where in I need to pull a column name from a table and then use that value in the select statement of a record group. I have tried using global variables but it is not working. Here is the record group I would like to use.
RG_DOMAIN is based on LOV_DOMAIN
SELECT :GLOBAL.DOMAIN_COLUMN_NAME, DESCRIPTION FROM
DM_T_DOMAIN_VALUES
WHERE DOMAIN_NAME := BLOCK.ATTRIBUTE;
In the Key-Listval I have a select statement in which does this :
SELECT DOMAIN_COLUMN
INTO :GLOBAL.DOMAIN_COLUMN_NAME
FROM DM_T_DOMAIN_RULES WHERE DOMAIN_NAME = :BLOCK.ATTRIBUTE;
SHOW_LOV('LOV_DOMAIN');
The problem is I am not getting the value I am just getting the Domain_column name. For example for Domain_name 'CALC_TYP' the Domain_column is COLUMN_10 and I just see COLUMN_10 my LOV when I want to see the value of COLUMN_10 from the DM_T_DOMAIN_VALUES table.
I tried using Name_in and Copy but not working. Can anyone suggest a solution?
ThanksFrancois ,
I tried this but I am getting error saying record group does not exist. Can you tell me what should I go in Populate_group... and show_lov..maybe I am doing something wrong?
Declare
LC$Req Varchar2(512) ;
Begin
LC$Req := 'SELECT ' || :GLOBAL.DOMAIN_COLUMN_NAME || ' FROM ....' ;
Create_Group_From_Query( rg_group, LC$Req ) ;
Populate_group(RG_DOMAIN); ?? --- is this correct?
Show_Lov(LOV_DOMAIN) ; -- and is this correct?
End; -
Hi
I have an enquiry form in which there are 2 text items and a push button.User have to input a value in text box 1 and press the button.The sql in the button press trigger will fetch a value from database and displays in text item 2.
But this the performance is bad in that way.
Is there any alternative to this scenario.Can i populate the data in a record group and query against that record group in the button-press?
Your help will be very much appreciated.
thanks and regards
AjjayHi
I have an enquiry form in which there are 2 text
items and a push button.User have to input a value in
text box 1 and press the button.The sql in the button
press trigger will fetch a value from database and
displays in text item 2.
But this the performance is bad in that way.
And why you think it is bad performance???
If your SQL statement's execution is slow, it will be slow everywhere, regardless where you are executing it, in a record group, PL/SQL, etc....
You should find out why the statement is slow.
There will be no significant difference if you use it in a record group.
Tony -
Can we change the Record Group Type through Custom.pll
Hello All,
I have a small requirement on Changing the Record Group Dynamically.
Can i set the Record group type to 'Query' from 'Static'. i.e Can i change the Record group type dynamically through custom.pll. I know that we can dynamically change the Record group query.
Please help me its a bit urgent.
Thanks inadvance,
Amarnadh Jsyou can control your record group runtime without create any recordgroup at design time..
1.static group
declare
rg_name VARCHAR2 (40) := 'Global_Rgp_Menu'; --global record group name for menu use
rg_id recordgroup; --global record group id
gc_id groupcolumn; --global record group coulmn id
errcode NUMBER; --error code
grp_row PLS_INTEGER := 0; --global record group row count
begin
rg_id := FIND_GROUP (rg_name);
IF NOT ID_NULL (rg_id)
THEN
DELETE_GROUP_ROW (rg_id, all_rows);
ELSE
rg_id := CREATE_GROUP (rg_name, global_scope);
gc_id := ADD_GROUP_COLUMN (rg_id, 'menu_item', char_column, 100);
gc_id := ADD_GROUP_COLUMN (rg_id, 'p_type', char_column, 100);
gc_id := ADD_GROUP_COLUMN (rg_id, 'p_no', char_column, 100);
END IF;
grp_row := 0;
for 1 in 1..10 loop
grp_row := grp_row + 1;
ADD_GROUP_ROW (rg_id, grp_row);
SET_GROUP_CHAR_CELL (rg_name || '.menu_item', grp_row, 'menu' || to_char(i) );
/*type*/
SET_GROUP_CHAR_CELL (rg_name || '.p_type', grp_row, 'type' || to_char(i) );
/*program_no */
SET_GROUP_CHAR_CELL (rg_name || '.p_no', grp_row, 'programno' || to_char(i) );
end loop;
end;
2. query group
declare
FACT_SQL VARCHAR2(500) :=NULL;
rg_name1 VARCHAR2(40) := 'Global_Rgp_fact';
rg_id1 RecordGroup;
Error_Flag number:=0;
group_error exception;
begin
rg_id1 := Find_Group( rg_name1 ); IF NOT Id_Null(rg_id1) THEN Delete_Group( rg_id1 ); END IF;
FACT_SQL := ' SELECT * FROM MYFACTORY ' ;
rg_id1 := Create_Group_From_Query( rg_name1,FACT_SQL ,global_scope);
Error_Flag := POPULATE_GROUP(rg_id1);
IF Error_Flag <>0 THEN
error_msg:='Error while populating factory group';
raise group_error;
END IF;
exception
when group_error then
message(error_msg);
raise;
end;Edited by: nolemlin on 2010/3/23 上午 7:50 -
Hi,
In forms, I am storing some values in a plsql table(like an array). Everytime a value is chosen in the filter, I do a sequential search of the table to retrieve my values. As this is a single table the search is taking a long time.I would like to replace this with multiple run time record groups. My question is whether the storing and retrieval from record groups are in any way faster or slower than retrieval from a table? I dont know the exact row number. So I have to do a sequential read of the record group also. So it will be something like :
for i in 1..10 loop
v := get_group_char_Cell('col name',i);
end loop;
Is this faster than
for i in 1..10 loop
v := tab(i).col;
end loop;
Ps: The record group could be smaller than the table as it will be multiple. Table will be always be one.
Thanks in Advance.Hi ,
I have a filter which has certain values. When the value is chosen, I need to look thru either the table or record group sequentially to get the matched record and apply it. We want to make this process as fast as possible. Hence the question of using plsql table vs record groups vs GLOBAL table. I was given to understand that if the global table is indexed it could be as fast or faster than the plsql table. The advantage in using GLOBAL table might be that I can directly select the value instead of retrieving the entire PLSQL table and compare the values.
EG -
for i in 1..tab.count loop
tab(i).col = val;
end loop
select col into v from GLOBAL_TAB where col1 = val;
So which you think would be faster? Also consider the record groups.
Thanks in Advance. -
How to pass record Group from Forms with DATA_PARAMETER to Reports Server
How to pass record Group from Forms with DATA_PARAMETER to Reports Server using RUN_REPORT_OBJECT?
When we use products on run time we are using data_parameter for passing record Groups to reports via run_product but now we have to use application server and reports server for same reports.
We met with <FRM-41214 Unable to run reports> for passing DATA_PARAMETER to reports server when used RUN_REPORTS_OBJECT.
How can we pass record Group from Forms with DATA_PARAMETER to Reports Server using RUN_REPORT_OBJECT?
Thanks,
ArifHi Mandeep,
Could you please tell me how can i pass data parameter from forms to report through run_product. -
How to Pass Record Group to Reports Server ?
How to pass record Group from Forms with DATA_PARAMETER to Reports Server using RUN_REPORT_OBJECT?
When we use products on run time we are using data_parameter for passing record Groups to reports via run_product but now we have to use application server and reports server for same reports.
We met with <FRM-41214 Unable to run reports> for passing DATA_PARAMETER to reports server when used RUN_REPORTS_OBJECT.
How can we pass record Group from Forms with DATA_PARAMETER to Reports Server using RUN_REPORT_OBJECT?
Thanks,how come the online help in forms 10g says you can?
or am I missing something.
there is a section on it.
>
Passing Record Groups to Reports or Graphics
You can pass a record group to Reports or Graphics as a DATA parameter. This DATA parameter is a special type of parameter that gives a signal to the integration code to substitute the contents of the record group whose name you give for the results of the query named by the query name you indicate. -
Hi,
I'm trying to create a form via JDAPI. I want to create a record group based on a SQL query.
// create record group (SQL query based)
RecordGroup rgSql = new RecordGroup(fmb, "RG_SQL");
rgSql.setRecordGroupType(JdapiTypes.REGR_QUERY_CTID);
// create the columns
RecordGroupColumn rgc1 = new RecordGroupColumn(rgSql, "PROJ_ID");
RecordGroupColumn rgc2 = new RecordGroupColumn(rgSql, "NAME");
// assign query
rgSql.setRecordGroupQuery("SELECT PROJ_ID, NAME FROM PROJECTS");
The record group is created at correct type, but the query is not assigned, either if I include the RecordGroupColumn-lines or not.
What am I doing wrong? Can anybody help.
AndreasYou're right, it's not very easy to find a reason for that ;-)
I'm trying out new features of Forms9i, so I am testing JDAPI as well.
The only reason I can imagine is that there is a big forms application of many hundreds of forms modules, and each of them has to be processed the same way.
For example, to each table of an application two new fields MOD_USER and MOD_DATETIME have been added to log data modifications. If these fields should be shown in the forms modules, you have to add new items in each form.
Andreas -
Restricting duplicates using record group
Dear sir,
I am having multiple records in a canvas. I want to restrict the duplicate datas in the multiple record using record group. Plz guide me.
Thanks.Hello,
Why do you want to use a Record Group ?
<p>Did you see this solution ?</p>
Francois -
About record group useing .
when record group is datasource of list,lov,tree,
which is the columns's datatype ?
what's means the first column and the second column ..........Hi,
it depends on how you use it. In a poplist it could mean the difference between the displayed data and the passed data value. In a LOV you may want to have even more data shown. Run the LOV wizard which will give you an idea of how group columns are used.
Frank -
Using 'like' in record group query
Hi ,
(Forms 6i)
I'm creating a record group dynamically.
So in when new item trigger for a list item,
i want to list all names from a table like 'a%';
query : select name, to_char(id) id from test_name where name like 'a%';
but i'm not able give single quote(') in the query.
Is there a way to do that?
Edited by: Tuts009 on May 9, 2010 1:38 AMHi Arif,
i'm not giving a% directly in the query, this i'm getiing from what we type in the list , so :list4
i'm storing it in another string say str and then the query will be
str := :list4||'%';
rg_id := Create_Group_From_Query( rg_name,
'SELECT name,to_char(id) id from test_name where name like '||str); Now any help? -
Dynamic record group not working when apostrophes are used
Hi Everyone,
I have developed a Form for the most part everything is working as expected. However, there is a search functionality that is giving me problems. The issue is that when the user enters search criteria for last_name that has an apostrophe (O'brian) the search lov doesn't get populated because the dynamic record group is not getting created when the string has an apostrophe (ie O'brian). I have a dynamic record group that takes the user's search criteria and populates an LOV on the screen with the records that matched their criteria.
Here is the code that is behind my search button where the dynamic RG gets created. It works fine for all searches that don't contain an apostrophe. Btw, the Oracle Forms version is 10g.
DECLARE
p_where_debtor varchar2(2000);
p_where_liab varchar2(2000);
rg_id RecordGroup;
v_query varchar2(2000) := null;
rg_name varchar2(2000):= 'RG_LIAB_LST';
errcode NUMBER;
BEGIN
IF :SEARCH.cd_nb is null and
:SEARCH.cd_seq is null and
:SEARCH.f_name is null and
:SEARCH.l_name is null and
:SEARCH.mi_name is null
then
display_message ('Search criteria must be entered');
raise form_trigger_failure;
END IF;
v_query := 'SELECT last_name, first_name, middle_name, c_no, c_seq
FROM TABLE_VW2 WHERE 1=1';
/*Search criteria entered by user*/
IF :SEARCH.l_name_srch IS NOT NULL THEN
v_query := v_query||' AND UPPER(last_name) LIKE '''||UPPER(:SEARCH.l_name)||'%''';
END IF;
IF :SEARCH.f_name_srch IS NOT NULL THEN
v_query := v_query||' AND UPPER(first_name) LIKE '''||UPPER(:SEARCH.f_name)||'%''';
END IF;
IF :SEARCH.mi_srch IS NOT NULL THEN
v_query := v_query||' AND UPPER(middle_name) LIKE '''||UPPER(:SEARCH.mi_name)||'%''';
END IF;
IF :SEARCH.cdcs_nbr_srch IS NOT NULL THEN
v_query := v_query||' AND UPPER(c_no) LIKE '''||UPPER(:SEARCH.cd_nb)||'%''';
END IF;
IF :SEARCH.cdcs_seq_srch IS NOT NULL THEN
v_query := v_query||' AND UPPER(c_seq) LIKE '''||UPPER(:SEARCH.cd_seq)||'%''';
END IF;
/*Make sure record group doesn't exisit*/
rg_id := Find_Group(rg_name);
/*If it doesn't exist then create record group*/
IF id_null(rg_id) THEN
rg_id:= create_group_from_query(rg_name,v_query);
END IF;
IF NOT id_null (rg_id) THEN
delete_group (rg_id);
rg_id:= create_group_from_query(rg_name, v_query);
END IF;
errcode := Populate_Group(rg_id);
Any help would be greatly appreciated.
Thanks,
AdrianFor every item where an apostroph can occur, do a
REPLACE(:BLOCK.ITEM, '''', ''''''); -
Hi,
In eBusiness Suite RCD 12.1, Inventory
3.1.2.2. Extensibility Enhancements
Users often require the ability to programmatically alter the details of an allocation record in Oracle Inventory. This may include manipulating the transaction based on logic derived from a third party materials management application or a custom user interface used to drive picking. To better support these requirements, Oracle Inventory now offers a public API to manipulate records allocations prior to committing a pick confirm transaction.
I have not found anything about this new public API.
Have anyone seen anything about it?
Any detail would be appreciated.
thanks
stephaneHi,
The Order Management and TeleSales users are setup as per below.
2.1 Create employee
2.2 Create User and assign responsibilities
2.3 Import employee as resource
2.4 Assign group and group roles to resources
2.5 Assign user-level profile options
Options I could think of:
- You may use the 'Dataloader' application along with the 'FNDLOAD' utility to automate your process.
- Use API to create Users,assign responsibility and etc ( The API is FND_USER_PKG ), you may use these package using scripting to automate.
See thread:
Re: How can i create bulk users with system Administrator responsibility in EBS
EBS Users Info from Backend.
Re: Create New User In Oracle ERP R12.
Please also refer early forum discussions:
Forum Search: EBS Backend User Creation
Hope this helps!
Thanks &
Best Regards,
Maybe you are looking for
-
Hi, I want to get the total count of open invoices and paid invoices and total amount for a give list of vendors between a date range. Could anyone tell me what tables I should use to get the data? Thanks
-
In-house developed applications
Hi Friends, We have developed an in-house (home grown) application called LOANS SYSTEM using Dev6i with 9i DB, it is a complex and a big module just like the average module it EBS. Now I want to use the architecture of EBS R12 interms of security, th
-
Question about behavior of "Open With" from Finder Menu
When I highlight a pdf and go to "Open With" I get the following (default is Preview--only see one of those): Acrobat Reader 5.0 Acrobat Reader 5.0 Adobe Reader 9.1.3 Adobe Reader 9.1.3 Adobe Reader 9.0.0 Adobe Reader 8.1.2 QuickTime QuickTime Safari
-
Why can't I use microsoft office anymore since I upgraded to Lion?
Since I upgraded to Lion I can't use any of the microsoft office applications. I need to access Excel for work. Any suggestions as to why or how to address this issue? Thanks
-
Why do CC trials have to nag every time you touch a file?
Everyone knows the trial will expire. Nobody's going to register early. In the meantime, I feel a brief flash of contempt for Adobe's heavy-handed attitude toward their user base every time I export a pdf.