Use of base table concept in form developer
can i get any white paper on use of base table concept in form developer.
have a look at the quick tours in the online help they will show you how to do it.
Similar Messages
-
Query on Non-base-table column in form
Hi,
Does anyone have an example of code to allow users to query on non-base-table column from forms? For example, a personnel form displays a persons' name and department name. The form is based on PERSON table, which contains the department id, not the name. The form uses post-query to display the department name. When in query mode, the user wants to enter department name, and display the people in the department (still using this form, which is based on PERSON table.
Thanks!Try this:
For data block person set these properties as follows:
1.Set Query Data Source Name = "person , departments"
2.Set DML data target name = "person"
3.Set Where Clause to join i.e. condition "person.dno = departments.dno"
For filed department name set these properties as follows:
1.Data base item = "Yes"
2.Column Name = "departments.dname"
3.Query Only = "Yes"
4.Insert Allowed = "No"
5.Update Allowed= "No"
6.Keyboard Navigable = "No"
If you face ambiguous column name check for the same filed name exist on both tables and set column name for this filed to person.filed_name
Regards
null -
How to use loop inside table in smart form
Hi All
i have to use page break at the end of each pernr. i got table in smart form and print cells on event on sort begin. it is working ok . i have an other itab in as well .which i want to the same page with respect to the pernr no.
but the problem is as i loop the 2nd itab. it prints all the record what it has.
e.g i have two pernr 54 and 55.
the records of itab1 prints on page1 and page 2 properly. now i loop at itab2 it also have relevent records of above said pernrs. but i m unable to control those pernrs and loop print all the records on both pages.
if u get some thing out of it kindly help me
Regards
ammadhi,
Place the second loop ie. itab2 inside the first loop of itab1. And in the conditions tab of looping itab2 give the condition for checking the pernr.
try to implement this logic.
loop itab
at new pernr
new-page
endat.
loop at itab2 where pernr eq itab-pernr.
endloop.
endloop.
revert back for further queries.
regards
Rajitha. -
Index not using the base table
Hi,
In which scenario, a query will only use the index and not the base table. Please give me some example.
Thanks,
Santhosh
Edited by: Santhosh on Oct 23, 2012 2:45 AMChancal,
not always,
SQL> desc temp;
Name Null? Type
EMPNO NUMBER(4)
ENAME VARCHAR2(10)
JOB VARCHAR2(9)
MGR NUMBER(4)
HIREDATE DATE
SAL NUMBER(7,2)
COMM NUMBER(7,2)
DEPTNO NUMBER(2)
SQL> select empno from temp;
EMPNO
7369
7499
7521
7566
7654
7698
7782
7788
7839
7844
7876
7900
7902
7934
1057
15 rows selected.
SQL> select * from table(dbms_xplan.display_cursor);
PLAN_TABLE_OUTPUT
SQL_ID 3qt0w20pqj162, child number 0
select empno from temp
Plan hash value: 3800668828
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | | | 2 (100)| |
| 1 | TABLE ACCESS FULL| TEMP | 15 | 60 | 2 (0)| 00:00:01 |
13 rows selected.
SQL> alter table temp modify(empno not null);
Table altered.
SQL> select empno from temp;
EMPNO
1057
7369
7499
7521
7566
7654
7698
7782
7788
7839
7844
7876
7900
7902
7934
15 rows selected.
SQL> select * from table(dbms_xplan.display_cursor);
PLAN_TABLE_OUTPUT
SQL_ID 3qt0w20pqj162, child number 0
select empno from temp
Plan hash value: 472861760
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | | | 1 (100)| |
| 1 | INDEX FULL SCAN | IDX_TEMP | 15 | 60 | 1 (0)| 00:00:01 |
13 rows selected. -
How can i use the nested table in form 6i
how can i use the nested table in the form 6i
( i.e i want to insert record into the nestred table field ).
bye siddharth singhNested tables are not supported in Forms 6i, only simple object tables.
-
Using DAC for implementation of two change capture views on same base table
Hello
We have a need to create 2 views (V_INS_CLAIM & V1_INS_CLAIM) on a single table (S_INS_CLAIM) using DAC & Image tables.
The V_INS_CLAIM will be used to load ODS on a hourly basis and
The V1_INS_CLAIM will be used to load DataMart on a daily basis.
For this purpose, we propose using the following approach:
1) Create 2 separate containers - one for ODS and one for Datamart.
2) Use a separate image table suffix (for the same table) on each container e.g.
- Use image suffix 51 on S_INS_CLAIM for the ODS container (will result in image tables having suffix 51)
- Use image suffix 61 on S_INS_CLAIM for the Datamart container (will result in image tables having suffix 61)
3) In the ODS container, the change capture process would create a view V_INS_CLAIM using
the base table S_INS_CLAIM and the I/R/D tables using image suffix 51
For this folder the 'Drop and Create Change Capture Views Always' flag will be set to True
All views for this container will be created with the prefix "V_"
4) For the Datamart container, we propose to set the flag 'Drop and Create Change Capture Views Always' to False.
This would ensure that DAC never drops/creates the view (assuming that the view was already created by the ODS container)
For creating the change capture views, we propose to create the views using sql procedures.
All views for this container will be created with the prefix "V1_"
The above procedure would ensure that we have distinct views created for each target (ODS & Datamart), which are refreshed at different intervals.
Alternatively, instead of creating 2 views with different names in the SIEBEL schema,
we could create 2 schemas - one for ODS and the other for Datamart and create the change capture
views separately in each schema (using separate I/R/D image tables - as mentioned above).
Please let me know which of the above 2 approaches would work and supported by DAC and which would be the better option ?
Thanks1.) Wrong forum. Go here: Business Intelligence Applications
2.) Soft delete or hard delete? Sound to me like you want to get rid of teh records. I.e. deleting history.
3.) Normal upsert mapping swon't do, you'll need delete mappings (depending on #2) -
Using OID's scema base tables fofr querying
Is it possible to use the underlying tables of OID's schema in you pL/sql code.One way of doing that is through dbms_ldap package.but in my case i dont want to connect to OID but i want to use the base tables in which the OID stores the data. we tried doing such an excersice but cud not get success. the only option we were left with was like creating our own tables having similar structure as that of OID's and then creating views on them.these views were used instead of dbms_ldap package.
Edited by: user11244575 on Oct 26, 2012 12:34 PM
Edited by: user11244575 on Oct 26, 2012 12:34 PM -
How to display records from base table as well as some other table?
Hello expert,
I have a requirement to develope a form described below:
One control block and database block.
DB block is based on table T1 (USER, Table_name, Column_name, ACCESS);
In control block, there are three fields,
User, Table user will enter , and DB block will query based on control block fields(user, table_name).
In table it is not necessary that all the columns of any table will be given.
suppose there is a Table X consist of 10 column.
Initially user give access for all the 10 columns through this form.
if we query for user , table, all the record will come from table T1.
now consider the case, when access given to table X number of columns were 10. after that 2 new columns added later.
now there is no info of added column in table T1. i want if user query DB block, these newly added column must display in DB Block.
Please help me out.
Thanks
Dhirender>i want if user query DB block, these newly added column must display in DB Block.
You need to modify your form and add the two columns as base table items. Forms does not add two base table items by itself. -
How to order by a column not on the base table?
Best explained by example:
I have 1 block, base table is SALE. I would like to sort this block by PROD_DESCRIPTION which is not on SALE. I only have PROD_CODE (the primary key of PRODUCT which contains PROD_DESCRIPTION)
I am not running Enterprise Edition so I cannot create a view and use Instead-of triggers.
I would rather not have to re-write all my triggers because I want the default base table behaviour that forms provides.
Any ideas?
Cheers,
Tim.Hey tim,
I also had a similar problem.
You need to create a function in the database with an associated
pragma to specify the level of purity of the function
WNDS (write no database state)
WNPS (write no package state)
PRAGMA RESTRICT_REFERENCES(fn_get_dname, WNDS, WNPS);
Function fn_get_dname (p_empno in number) return varchar2 is
v_dept_name varchar2(40);
begin
select dname into v_dept_name
from dept, emp
where dept.deptno = emp.deptno
and emp.emp_no = p_emp_no;
return v_dept_name;
end;
order by in a block based on the emp table (assuming you want a list of employees by department name)
order by fn_get_dname(empno), empno
Hope that will help you to solve your problem.
Thanks
Pranati -
Cache purging in RPD using Event polling table
Hi All,
We have a star schema implemented with few dimension tables and one fact. I am trying to implement Cache management using Event Polling table concept.
During validation,
1. Created and ran an adhoc user report
2. Inserted a record in event polling table with one of dimension table(not fact) of star schema used in adhoc reporting.
3. Cache in the RPD doesn't get purge.
Also i have tried validating by inserting a Fact table in Event polling table for which cache gets purged in the RPD within certain interval of time.
Please help , why dimension tables inserted in Event Polling table and the corresponding RPD query is not getting purged.
Thanks,
LonaDI can't help you with why this happens, but we experience the same behavior in our environment. I've always chalked it up to either bad design in the cache polling feature or a bug.
To work around this, in the past we've used one of these two solutions -- (1) Schedule a daily cron job to clear the entire cache sometime after your nightly ETL refresh usually completes (2) Have your nightly ETL refresh trigger a clear of the entire cache as the last thing it does. This way, your cache is cleared for most queries on a fact by fact basis, and the dimension-only queries (and anything else left over) get cleared at the end.
If you figure out a way to do this via the event polling, I'd love to hear it.
Tony -
I am wondering if in Hyperion Planning has the capability to use custom alias table on data forms, right now we use the default alias on our forms. I want to use our "short name" alias on data forms so that our department name are not so long. Is this possible?
I think you are correct. I couldn't find a way to change the alias table on specific forms. I also checked an LCM export and look at the form in xml file and did not notice an option there either.
I also tried openning a form in SmartView and no luck there either. Planning Ad Hoc works though, but I am not sure if it would work for your requirement.
Cheers,
Mehmet -
Create database table using Forms Developer 6/6i without using SQL*Plus
hello there,
I need help in creating tables in Oracle using Forms Developer 6/6i without using SQL*Plus interface.
your help is appreciated
email: [email protected]please use Forms_ddl package to create a table dynamically
from the Developer6/6i.
you can check the success or failure by using the
form_success builtin.
if u want to avoid using the Forms_ddl package
use stored procedure or create a sql querry record group.
regards
sriram. -
Tabular form with non base table field
I want to develop a tabular form with
1. A non-base table edit field to accept a value
2. Insert/update another table based on the input value
3. Also, computed field on each row based on other fields on the records (like post-query trigger in oracle forms at block level - for each row)
Thanks,
RachnaThanks for your reply.
Varad, I like the link you sent me. It has a lot of good information.
I created a process (under page processing) called "Update/Insert Process" that dosn't seem to be working.
Question, I created a manual tabular form with SQL Query and created a process (under page processing) called "Update/Insert Process", then I check for each record in the tabular form. If the old value <> new value then I update/insert in the new table.
Any step by step will be highly apprciated - to create process/validation etc.
Thanks,
Rachna -
Transfer elements between 2 base table forms.
Environment
OS: WinXP
Oracle 10g (9.0.4.0.0) Developer suite
Scenario:
2 base table forms
Form1 is based on table1 and has 10 elements
Form1 has a button which when triggered, causes 5 of the 10 elements to be inserted in table2
Form2 is based on table2 and has 10 elements 5 of which are obtained from Form1
When I do a query-execute in Form2 to pull all the records, only records that were entered through Form2 show up. The transferred elements (record) from Form1 are not pulled up.
When I do a query->enter and search for records in Form2 that were transferred from Form1, I receive a FMR-40301 Query caused no records to be retrieved. Re-enter.
However the records transferred from Form1 are pulled up if I run a sql in the Database.
Please advice.
Here is the code that is triggered when button is pressed in Form1 to transfer elements to form2.
DECLARE
raiDate RAI_PROPOSAL.STAMP1%TYPE;
raiTime RAI_PROPOSAL.STAMP2%TYPE;
sPropNo RAI_PROPOSAL.PROP_NO%TYPE;
selRec RAI_PROPOSAL%ROWTYPE;
CURSOR getProp(propNo IN RAI_PROPOSAL.PROP_NO%TYPE) IS
SELECT *
FROM RAI_PROPOSAL
WHERE RAI_PROPOSAL.PROP_NO = propNo;
BEGIN
sPropNo := :RAI_PROPOSAL.PROP_NO;
/* Open cursor and fetch selected row */
IF( NOT (getProp%ISOPEN) )THEN
OPEN getProp(sPropNo);
END IF;
FETCH getProp INTO selRec;
CLOSE getProp;
/* Get date and time of transfer */
raiDate := sysdate();
raiTime := TO_CHAR(sysdate(), 'hh24:mi:ss');
/* list all elements being transferred - all have values so NOT NULL fields are taken care of*/
MESSAGE(selRec.cdfa_no || ', ' || selRec.con_sub || ', ' || selRec.cs_amt || ', ' || selRec.cs_source || ', ' || selRec.dept_prdir || ', ' || selRec.dept_proj2 || ', ' || selRec.dept_proj3 || ', ' ||
selRec.human_subj || ', ' || selRec.initials || ', ' || selRec.prime_agre || ', ' || selRec.prodir_fn || ', ' || selRec.prodir_ln || ', ' || selRec.prodir2fn || ', ' || selRec.prodir2ln || ', ' || selRec.prodir3fn || ', ' || selRec.prodir3ln || ', ' || selRec.proj_type || ', ' || selRec.prop_date || ', ' || selRec.prop_no || ', ' ||
selRec.prop_title || ', ' || selRec.propr_info || ', ' || selRec.school || ', ' || selRec.sol_no || ', ' || selRec.spon_typ || ', ' || selRec.sponsor || ', ' || raiDate || ', ' || raiTime || ', ' || selRec.vert_anm);
/* Insert selected proposal into award table */
INSERT INTO
RAI_AWARD(CDFA_NO, CON_SUB, CS_AMT, CS_SOURCE,
DEPT_PRDIR, DEPT_PROJ2, DEPT_PROJ3,
HUMAN_SUBJ, INITIALS, PRIME_AGRE, PRODIR_FN, PRODIR_LN,
PRODIR2FN, PRODIR2LN, PRODIR3FN, PRODIR3LN, PROJ_TYPE,
PROP_DATE, PROP_NO, PROP_TITLE, PROPR_INFO, SCHOOL,
SOL_NO, SPON_TYP, SPONSOR, STAMP1, STAMP2, VERT_ANM)
VALUES(selRec.cdfa_no, selRec.con_sub, selRec.cs_amt, selRec.cs_source,
selRec.dept_prdir, selRec.dept_proj2, selRec.dept_proj3,
selRec.human_subj, selRec.initials, selRec.prime_agre, selRec.prodir_fn,
selRec.prodir_ln, selRec.prodir2fn, selRec.prodir2ln, selRec.prodir3fn, selRec.prodir3ln, selRec.proj_type, selRec.prop_date, selRec.prop_no, selRec.prop_title, selRec.propr_info, selRec.school, selRec.sol_no, selRec.spon_typ, selRec.sponsor, raiDate, raiTime, selRec.vert_anm);
MESSAGE ('INSERTED');
/* Commit the data inserted */
FORMS_DDL('COMMIT');
END;Hi,
Do you have radio buttons, a check box or a list item on your form?
I have seen this before. If the value queried from the database does not match the allowable values, the record is "silently rejected" and is not queried into the form. You say your records are in the database if you query table2 via SQL, but Forms is rejecting the records.
Look up the Forms Help for the topics "Creating a Record Group", or "Mapping of Other Values", or Search for the word "silently". It will say something like:
"Leave the Mapping of Other Values property blank to indicate that other values are not allowed for this item. Any queried record that contains a value that does not match one of the values associated with an element in the List is silently rejected. Any attempt to assign an other value is disallowed."
HTH. -
Inserting into multiple tables on one form using UIX
We are developing an application using struts and UIX. We would like to be able to insert into three tables on one form(view). How can we accomplish this?
This is more of an ADF question, you'll need to set up view object, than just drag it from the data control palette like normal.
If it's not already set up as a view in the db (split into multiple tables), you'll need to create a view object that includes all the fields you want, based on multiple entity objects.
Maybe you are looking for
-
Flattening text fields in Adobe Reader for Android
Hi there, I created a form that works to my liking- doing all I need it to do be doing. Here is my problem: I fill the form with my customer (on my tablet) entering the prices and quatities, then they sign it. At this point, I would to have an option
-
How to set different numbers of visible items af:menu
Hi guys, I have a request in setting different number of visible items for adf menu components(af:menu). I see that this option is available from the css skin file using " -tr-visible-items" attribute on af|menu selector: af|menu -tr-visible-items: 3
-
Help! facebook saying "this message thread is not available"
dear all i have had facebook installed for 3 months now on my curve, but the past 3 days when i open any message, it says 'retrieving message thread', then "this message thread is not available" every time. any ideas as its very frustrating!!! thank
-
VU019: Missing data : GL account
Hello all While raising a sales order , we are getting a incomplete message "VU019: Missing data : GL account". I have checked the account assignment looks fine . Can you guide which all T codes i needs to check ? Will it be related to Product cost b
-
Focus on the editor Tab which is already opened (vspackage)
I am binding list of items to the toolwindow from database,when i click the item, corresponding item name editor tab opens but when i click the same item i want to Focus(Active) the same editor tab.It should not open the new tab.I am using followin