Form on a SQL Query in 4.1 BUG ?
Hi, when I use the wizard with the example Query (select e.ename,..., d.dname from emp e, dept where e.deptno=d.deptno) there are NO Processes in the Page anymore.
What should happen here normaly ???
Thanks
Marco
Hi Kuru,
the select and the form is working fine. But when you try to "apply changes" on the page, nothing is happen.
There are no Load Processes for the Items and no save processes (update/insert/delete)
So what´s this wizzard for ?
Thanks
Marco
Similar Messages
-
Form on a SQL Query - doesn't work with SELECT * - bug or feature ?
When I do this,
Create Page -> Page with Component -> Form -> Form on a SQL Query -> SELECT * FROM EMP
I do not get any items displayed and it creates a simple HTML region / page. Do we have to necessarily specify the column names ?
Iam looking at a way to see if any addition of columns in the table does not involve IT intervention in recreating the form.
When we try to create with Form on a SQL Query, then shouldn't it be similar to the Report where the same thing works, if I give SELECT function_returning_columns() from DUAL even then the same thing happens where it creates an ITEM called functions_returning_columns() it creates HTML region
I asked a related question with no answer :-( in
Dynamic Creation of Items in Runtime through Application UIHi Marc,
Thanks. I just tried something like this. Taking the EMP table example, (it doesn't matter which table), I created a region based on a Pl/Sql function returning SQL query
( I selected the vertical report template including nulls to display it like a form ) :
DECLARE
v_sql VARCHAR2(3000) ;
mn_idx NUMBER := 1 ;
BEGIN
v_sql := 'SELECT ' ;
FOR recs IN (SELECT * FROM ALL_TAB_COLUMNS WHERE TABLE_NAME = 'EMP' ORDER BY COLUMN_ID)
LOOP
v_sql := v_sql || 'HTMLDB_ITEM.TEXT(' || mn_idx || ',' ||
recs.column_name || ') ' || recs.column_name || ', ' ;
mn_idx := mn_idx + 1 ;
END LOOP ;
v_sql := SUBSTR(v_sql, 1, LENGTH(v_sql) -2) ;
v_sql := v_sql || ' FROM EMP WHERE EMPNO = 7369 ORDER BY 1 ' ;
RETURN v_sql ;
END ;
This allowed me to do my updates etc.., Then I created a button called 'Apply' and a process called 'update_changes' on button click and defined this:
DECLARE
v_sql varchar2(1000) ;
mn_ctr NUMBER := 1 ;
BEGIN
v_sql := 'BEGIN UPDATE EMP SET ' ;
FOR recs IN (select COLUMN_ID, COLUMN_NAME, DATA_TYPE
from all_tab_columns where table_name = 'EMP'
ORDER BY COLUMN_ID) loop
-- Make changes here if required- this is assuming 9 columns --
v_sql := v_sql || recs.column_name || ' = HTMLDB_APPLICATION.G_F0' || mn_ctr || '(1),' ;
mn_ctr := mn_ctr + 1;
end loop ;
v_sql := substr(v_sql, 1, length(v_sql) - 1) ;
v_sql := v_sql || ' WHERE EMPNO = 7369; END ;' ;
execute immediate (v_sql) ;
END ;
Since this is for example, I didn't include code for Checksum and hardcoded empno = condition and have provision for 9 columns. I made some changes and tried saving it and I was able to do it.
I altered the table to add a column / drop a column and when I relogin, Iam able to see the changes.
Can you tell me if there could be any drawbacks in this approach ?. -
Hi there,
I've created a "Form on a SQL Query" using the example database and query example:
select e.empno, e.ename, e.job, e.hiredate, e.sal, d.dname
from emp e, dept d
where e.deptno = d.deptno
which works fine. But suppose I want to modify the query? Where can I find it? Or is the only thing you can do is to delete the form region (and corresponding items and buttons) and start all over again?I am also having this problem. If the query can't be viewed or modified as a matter of design (why?), just let me know.
I can't find the answer in any of the APEX documentation I've looked at. And it took me forever to find this unanswered thread that's over a year old. -
Getting run time value on form field by sql query and function
Hi All,
we have below requirement -
create a form with fields as below -
KRA_Type Grade Weightage Start Date End date
Functinal E2 30 1-Jan-2010 1-jan-2011
Organizational E2 70 1-jan-2010 1-jan-2011
lov of kra_type has 2 values (Functinal, Organizational). requirement is to validate Weightage field such that for same grade :- Fuctional Weightage + Organizational Weightage = 100.
please suggest on how to approch this.
Thanks,
Sam Dthis is not related to FORMS at all......
1) create a database function which take grade parameter and return the total weightage.
2) use it on when-validate-item trigger to validate
create or replace function get_grade_weightage(p_grade varchar2)
return number
is
v_grade number;
begin
select sum(Weightage)
into v_weightage
from mytable
where grade = p_grade;
exception when no_data_found then
return 0;
end;
select get_grade_weightage(:grade) into v_weigtage from dual;
if :current_weigth < v_weightage then
-- do something
else
--do something
end if;Hope it helps
plz mark the answer as correct or helpful if it is -
Dear Friends,
I have a ledger table. My client wants to see ledger of selected customers. Hence I have to design a parameter entry screen in forms for the report wherein the user can select customers and execute and the selected data passes to report as parameter and based on it the report gets executed and displays the ledger for the selected customers. I am using form 6i and Oracle 9i.
Can anyone help me how to do this or is there any link that shows how to do this.
Please note : The user can selected as many customers as he/she wishes
ThanksYou could create a global temporary table, and write all the Customer IDs to that table, then call Reports. Then the report could select all customers where Customer_ID in the temporary table.
If Reports runs under a separate session, then you will need a permanent table rather than a temp global, and develop some type of numeric key maybe using a sequence plus date and time. Then the report process could create the report, then delete the appropriate rows from the table. It should also delete any rows that are older than say 24 hours -- this will keep the table cleaned up from uncompleted report processes. -
Creating tabular form using SQL query
Hi,
I need to create a tabular form using an SQL query so that multiple rows of a table are displayed on screen and are editable to the user.
I have created this sort of form before using the Tabular Form wizard however for this form I need to enter SQL to produce it.
The steps I take are:
1. Create Page
2. Page with Component
3. Form
4. Fow on a SQL query
5. For the query I have: 'select * from depot_master_customer'
However when I view the page, it just displays one blank field with the title '*' !!
I am doing something completely wrong here? It seems like it should be a simple thing to do.
Any help appreciated, this one is driving me mad.
Thanks
SimonSimon,
You will need to manually create the tabular form and DML process. This is covered in detail in the How To document shown below:
http://www.oracle.com/technology/products/database/htmldb/howtos/tabular_form.html
Have you tried this yet?
Good luck!
Emilio. -
Form on SQL query for updating.
Hello again,
Im trying to wirte a form to udapte the information in a table. I have a table with a PK which holds a persons name, and an activity assigned to them (and loads of other fields but they dont matter atm). I would like to have a form which has an SQL query running in one region and then the form underneath to be able to edit (reassign a person to a different activity) an item appearing in the query result. Ive got a form at the moment which is form on an sql query but its not updating when i fill out the form, is it something to do with the regions?
http://img.photobucket.com/albums/v611/Funky_Monk/untitled.jpg
So on the screenie, i have the bottom region for the query (no values in table hence the error (i think!))
The call ID is FK to another table
severity level and status will be usdated here
description is self-explanitory
analyst_id is the main field to be changed here, the call id will be assigned a new analyst via this form.
action_id is actions carried out on this problem.
Any help would be greatly appreciated.
DMhi,
Can you put this example on apex.oracle.com?
Regards,
Kartik Patel
http://patelkartik.blogspot.com/
http://apex.oracle.com/pls/apex/f?p=9904351712:1 -
Access to form allowing SQL query
Hi all,
I have extracted a list of users who could access forms that allow SQL query such as
Define Descriptive Flexfield Segments (FND_FNDFFMDC)
Define Value Set (FND_FNDFFMVS)
Define Validation Templates (ONT_OEXPCFVT)
I need to remove accounts who could access the above forms due to security issue from the best practices
However, when I asked my user (who has access to above forms) to login to Oracle ebs, he is unable to navigate to the form listed above. Is there another application setting that forbid my user to access the above forms?
Thank you in advance
Edited by: 953616 on Jan 20, 2013 1:04 AMPlease create your own responsibilities covering required menu and functions. you can exclude these menus/functions from responsibilities.
would suggest to review
http://docs.oracle.com/cd/A60725_05/html/comnls/us/fnd/fndscrsp.htm
http://docs.oracle.com/cd/A60725_05/html/comnls/us/fnd/funcse01.htm
thanks -
How to display the out put of the sql query in a text file using forms
I want to display the out put of the sql query in a text file using forms 6.0.Same could be done using spool command in sqlplus but i want it using forms....Fiaz
Have a look at the text_io package:
http://www.oracle.com/webapps/online-help/forms/10g/state?navSetId=_&navId=3&vtTopicFile=f1_help/oraini/c_text_io.html&vtTopicId=
cheers -
How to run recordset SQL query in FORM DATA event
How can I run recordset SQL query in FORM DATA event upon clicking on Add button in the document?
Hi Slamet,
When you receive a form data event you have a class containing inside it a ObjectKeys xml info regarding the object added/modified,...
With the objects keys you can then use the DI API method called GetByKeys to obtain the DI Object.
There is some information about it in the SDK Help file, mainly in the "FormDataEvent" class definition:
<i>The event provides the unique ID (BusinessObjectInfo.ObjectKey) of the modified business object. You can use the value of this property as an input parameter in the DI API DataBrowser.GetByKeys method to get a DI object.</i>
Pay attention you don't have this information in the Before=True event of the Add as it is not yet in the database.
Hope it helps
Trinidad. -
Setting the cell width in a Tabular Form (SQL Query (updateable report) )
version 3.2.1
I have a Tabular Form (SQL Query (updateable report) ) and I have a column that is a VARCHAR2(4000) that when displayed extends the cell to the full length (which of course makes sense).
How can I set the width of this cell to something like 30 or 50 and wrap the contents?
Thanks,
JoeScott,
Thank you for replying.
Your suggestion kinda worked. I say kinda because when the report is first displayed the cell is the full width and appears to ignore the width setting. There is a Select List on the report to restrict some of the data that is displayed. When a selection is made from this Select List, it appears that the cell width is then adjusted to what was set, but not for every selection from this Select List.
I made the width entry in Tabular Form Element - Element Width
Any idea why the width setting is ignored?
Thanks,
Joe -
Executing a column which has a sql query in a tabular form
Hi,
I have a tabular form which contains a column named as SQL which has sql statements in it. Without going to the SQL workshop in Apex i want to execute that query in the tabular form itself. For that i've created a page item which fetches the particular rows sql query and created a button 'EXECUTE'. When i click the execute button it should run the query and should display whether the query is correct or not and should show the error message.
Can any one provide solution for this or whether there are any other ways to achive this scenario.
With Regards
Balaji.P.KBalaji P.K wrote:
Can any one provide solution for this or whether there are any other ways to achive this scenario.Difficult as we have no idea what this "scenario" actually is. Go back several steps and explain in detail the problem this is supposed to solve.
I have a tabular form which contains a column named as SQLBad idea. <tt>SQL</tt> is a PL/SQL reserved word. Using any token from Oracle namespaces as a database identifier is confusing/problematic.
which has sql statements in it.Why? Where does this SQL come from? What is the source of the tabular form?
Without going to the SQL workshop in Apex i want to execute that query in the tabular form itself.Explain the "execute that query in the tabular form itself" concept. Where do the results go? -
Sql query to identify all the responsibilities attached to a form
(oracle - apps) Can anyone help me by giving a sql query to identify all the responsibilities attached to a form and corresponding menu should not be in the menu exclusion.
Thanks in advance
VenkiBump
-
Disable SQL query to celltext content in web form of Hyperion Planning
We are using Hyperion Planning ver 11.1.1.1. We found that there is a SQL query executed for each cell in the web form to query the SQL Server metadata database and check whether there are some celltext associated with this cell.
As we did not implement the celltext function to our end users, we would like to disable this checking. As some of our web forms have more than 10000 cells, generate 10000 SQL queries to the metadata database definitely is a performance issue.
We have asked Oracle team whether we can disable the SQL query but the answer is that no such option exist.
Anyone experienced this case and have workaround solution?
Thanks!Hyperion user wrote:
Alp Burak wrote:
Hi,
We had faced the same issue a few years ago. One of our geeks had done a change in either Enterdata.js or Enterdata.jsp which disabled form cell validation. I don't currently have the code with me but it wasn't a big change really, remarking a function could be doing the trick.
I don't think this is officially recommended by Oracle though.
AlpThanks for your advice. We will try to locate the enterdata.jsp and enterdata.js and found out where the SQL being executed.We found out the Enterdata.js under the deployment directory of Weblogic. However it is over 400KB size and many many lines of codes. We think that it is very difficult to locate where should be customized to remove the SQL checking on cell content.
\\Hqsws04\hyperion\deployments\WebLogic9\servers\HyperionPlanning\webapps\HyperionPlanning -
SQL query to know which users are working on which forms in APPS R12
Dear gurus
We need the SQL query to know which users are working on which forms in APPS R12, and how to get the user.name of those records.
thanks in advance
best regardsHi,
Please see this thread.
USERS CONNECTED
Re: USERS CONNECTED
Regards,
Hussein
Maybe you are looking for
-
A string into a fixed sized array.
Hello; I am tryig to implement a method that consumes a string that is made up of possible integers (for example String s = "1 2 3 4 5"; ) and returns it as an array such that the returned array will be {1,2,3,4,5} with size 5. This means it has to p
-
How do I get my ringtones back on my phone after since i got a new phone
How do i get my ringtones to my new phone
-
Avi to Swf size restrictions?
Hey All, Issue...I have a full length movie (600mb) I'm trying to convert from .avi to .swf to be able to stream from a new site. When I go through the conversion process all goes well until the end I get a message saying..."The FLV file is too large
-
Hi I have posted FAGL_FC_VAL. Now when i again run it, it says, document 1900000045 is already re-valued. When i checked its GL accounts to which revaluation amount should flow (GL Accounts given in OKB9), there i didn't found any entry. So please le
-
Can a Web Service be Consumed from within JSX
Hi all, In CS5, can a web service be consumed from within JSX, and if so - how? TIA, mlavie