Execute_Query in MASTER-DETAIL form queries the DETAIL block...?
I'm using Oracle Form Builder with a Master-Detail relationship, I have a WHEN-NEW-FORM-INSTANCE trigger which runs 'EXECUTE_QUERY;' but it is returning records from the Detail block rather than the master block. Can anyone tell me how to return records from the master block?
I have no idea what the block name is. I've tried the data block name and the title above the block and both say they are undefined.
Thanks.
Welcome at OTN
Please Before posting on this forum please read
I have no idea what the block name is. I've tried the data block name and the title above the block and both say they are undefined.At Layout Editor expand the Data Block nodes. Here you will get the block name.
Check in When-New-Form instance trigger, is there any code like
Go_Block('details_block');IF yes , delete this line...
Hope it helps...
Hamid
If someone's response is helpful or correct, please mark it accordingly.
Similar Messages
-
Problems in Master-Detail forms when the detail contains LOVs
I am having problems with master detail forms when the detail contains and lov.
In my detail form I have a messageLovInput field that returns 2 values (code and description). When the lov window returns both values the messageLovInput disappear from the form.
This problem happens only when I iterate in the master view and I try to add a record in the detail form.
If I add a new record without navigation for the master view there is no problem.Jode,
which technology are you using, ADF JClient ? If yes, please provide a step by step description of how to setup a testcase to reproduce the problem.
Frank -
Master details form: in the details form the List of values is not working
The master details have an upper form and a lower form OK
So, the List of values of values in the upper is working fine,
the lower form or the details form the list of values not working on it and the code is right, and mean not working like when you press on it its not showing any thing
also is work on a regular form like a tabular form .
so please help !!!
Edited by: user8925579 on May 12, 2011 2:28 PM
Edited by: user8925579 on May 12, 2011 2:37 PM
Edited by: user8925579 on May 12, 2011 2:37 PMSOLVED
CMC -> Connections
- Right click connection name, Click u201CTools > Check Relationshipu201D
- In u201CQuery Resultsu201D, Right click Connections, Click u201CUser Securityu201D
- Assign Security for u201CEveryoneu201D
- UNTICK both Inherit from Parent Folder and Inherit from Parent Group
- Assign u201CView on Demandu201D
CMC -> Universes
- Right click u201CUniversesu201D folder, click u201CPropertiesu201D
- Under u201CUser Securityu201D, click Everyone and assign security
- UNTICK both Inherit from Parent Folder and Inherit from Parent Group
- Assign u201CView on Demandu201D -
Problems with Master-Detail Form not retrieving Detail Rows
Portal 3.0.7.6.2 on NT
I am having problems with a Master-Detail Form not retrieving Detail Rows. Sometimes it retrieves all, sometimes about 50%, the majority of the time it's not retrieving any. If it never retrieved any I would suspect that the 'join' condition was wrong but that isn't the case. I didn't have this problem with a prior MD Form I created. I have tried re-creating the MD Form but I get the same problem.
Is anyone having similar problems/is this a know bug??
Any help or thoughts are appreciated.I experienced performance problems. The simpiest MD form takes about 10 secs. to requery. I's not answer to your question, but there is more problems with this concept.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Michael Finch ([email protected]):
Portal 3.0.7.6.2 on NT
I am having problems with a Master-Detail Form not retrieving Detail Rows. Sometimes it retrieves all, sometimes about 50%, the majority of the time it's not retrieving any. If it never retrieved any I would suspect that the 'join' condition was wrong but that isn't the case. I didn't have this problem with a prior MD Form I created. I have tried re-creating the MD Form but I get the same problem.
Is anyone having similar problems/is this a know bug??
Any help or thoughts are appreciated.<HR></BLOCKQUOTE>
null -
How to configure details form in the Timekeeper Entry screen
Hi All,
I am using Payroll Timecard Layout. Currently I have a requirement to configure the details form in the timekeeper entry screen to accomodate the timekeepers to enter additional 2 fields of information along with the comments in the details form.
Can anyone please help me how could we display additional 2 fields in the details form in the timekeeper entry screen.
Navigation - Timekeeper Entry - Details (Button).
Thanks,
Ramprasad.Refer to Metalink Note 220583.1
-
Master-Detail Form - only the first detail record is saved in database
Hello,
I have created APEX master-detail form with detail tabular form on the same page.
I tried to enter data to the several detail rows (using Add Row button) and then press Apply Changes button.
Unfortunately, only the first detail row is being inserted into the database.
What could be the reason?
Thanks in advance,
ErikHi,
I had a similar problem.
Problem with addRow(); function in tabular forms - only first line saved
Maybe it will help to you.
Regards
J :D -
I can't seem to get a web app search form to work inside another web app detail page. Does anyone know if this is possible?
I can display a list of web app items; and the search form works on a standard page; but when I try to load it within another web app's detail page, I get an error: "page not found". This happens regarless of whether I put {module_searchresuts} on the same page as the form, or if I redirect results to another page.
Does anyone have any suggestions?Heya.. You currently can not do that within the detail view but it is possible to redirect the results to another page.
Simply replace this red portion:
action="/Default.aspx?SiteSearchID=50&PageID={module_oid}"
with:
ID=/results-page.html
...results-page.html being the page you want instead. -
Copy value from first detail form to second detail form
Hi all
i have form and the fileds are like that these are multiple
prod_id prod_name quantity price
101 drees 5 200
102 top 3 150
205 jean 2 520i want copy these data into second form when-new-form-instance
Thanks And Regards
VikasHi Manu
i have two form ist form is based on these table s
SQL> DESC SALE_ORDER
Name Null? Type
ID NOT NULL NUMBER
SALE_ORDER_NO VARCHAR2(50)
ORDER_DATE DATE
PARTY_NAME VARCHAR2(100)
DEL_DATE DATE
COMMENT1 VARCHAR2(200)
CUST_ID NUMBER
DISCOUNT NUMBER
SEASON_YEAR VARCHAR2(20)
TYPE VARCHAR2(50)
SHOW VARCHAR2(100)
VAT_PERSENTAGE NUMBER
VAT_PRICE NUMBER
PERFORMA_TYPE VARCHAR2(50)
AGENT_NAME VARCHAR2(50)
CURR VARCHAR2(15)
SHIP VARCHAR2(20)
VIP VARCHAR2(100)
CONTACT_NO VARCHAR2(15)
VAT_NO VARCHAR2(100)
PAYMENT_TERM VARCHAR2(500)
CONTACT_PERSON VARCHAR2(100)
DELIVERY_ADDRESS VARCHAR2(300)
SHOWROOM_ADDRESS VARCHAR2(300)
INVOICE_ADDRESS VARCHAR2(300)SQL> desc sale_order_detail;
Name Null? Type
ID NOT NULL NUMBER
PROD_ID VARCHAR2(20)
STYLE VARCHAR2(100)
COLOR VARCHAR2(20)
XS NUMBER
S NUMBER
M NUMBER
L NUMBER
XL NUMBER
PCS NUMBER
TOTAL_QTY NUMBER
and second FORM IS based on these table s
SQL> DESC DELIVERY_MASTER;
Name Null? Type
ID NUMBER
SALE_ORDER_NO VARCHAR2(50)
SEASON VARCHAR2(30)
CUSTOMER_NAME VARCHAR2(300)
DELIVERY_NOTE_DATE DATE
DISPATCH_DATE DATE
CUSTOMER_ADDRESS VARCHAR2(300)
DELIVERY_ADDRESS VARCHAR2(300)
ACCOUNTS_ADDRESS VARCHAR2(300)
CONTACT_INFORMATION VARCHAR2(300)
PAYMENT_TERMS VARCHAR2(300)
SHIPPING_TERMS VARCHAR2(300)
DEL_PERIOD VARCHAR2(100)
SHIPPER VARCHAR2(100)
WEIGHT VARCHAR2(100)
DIMENTIONS VARCHAR2(100)
NUM_OF_CARTONS VARCHAR2(100)
COMMNETS VARCHAR2(300)
CURRENCY VARCHAR2(15)
SQL> desc delivery_detail;
Name Null? Type
ID NOT NULL NUMBER
PROD_ID VARCHAR2(100)
PROD_NAME VARCHAR2(300)
PRODUCT_COLOR VARCHAR2(100)
XS NUMBER
S NUMBER
M NUMBER
L NUMBER
XL NUMBER
PCS NUMBER
TOTAL NUMBERBOTH THE FORM ARE master and detail block the data of master bl;ock ic copyied but the data of detail block did't copy.
Thanks ANd Regards
Vikas Singhal
Edited by: vikas singhal on Jul 16, 2009 3:08 PM -
Hello
I am curious if this can be done. I guess its a Person object I need to fetch, but how can I refer to it?
What would the XPath look like?
*HHThankyou for the response. Yes indeed those environment variables are documented, but how to use them is not.
Very Hard to use. I just wanted to show the Requester information on the User Create and Edit rcdc screens.
I could only get the UocListView control to work though, but it is sufficient, like so:
<my:Control my:Name="CurrentUser" my:TypeName="UocListView" my:ExpandArea="true" my:Caption="Requester">
<my:Properties>
<my:Property my:Name="ColumnsToDisplay" my:Value="DisplayName,Email,OrganizationalUnit" />
<my:Property my:Name="EmptyResultText" my:Value="" />
<my:Property my:Name="PageSize" my:Value="1"/>
<my:Property my:Name="ShowTitleBar" my:Value="true" />
<my:Property my:Name="ShowActionBar" my:Value="false" />
<my:Property my:Name="ShowPreview" my:Value="false" />
<my:Property my:Name="ShowSearchControl" my:Value="false" />
<my:Property my:Name="EnableSelection" my:Value="false" />
<my:Property my:Name="SingleSelection" my:Value="false" />
<my:Property my:Name="ItemClickBehavior" my:Value="Server" />
<my:Property my:Name="ListFilter" my:Value="/Person[ObjectID='%LoginID%']" />
</my:Properties>
</my:Control>
This gives me a nice 3 column display of the current Requester's Name, Email and Unit. -
To get value in detail part of master detail form
hi all
i am using forms 6i
there is a master detail form
in the master part
i am just mentioning one field as per the requiremnt
FIELD BELONGS TO DATA BLOCK XXNP_JL_001.FIELD
this FIELD field is populated by a flexfield NAP_GL_WELL
VALUES are
abc 123
def 456
fgh 875
in the master part of the form there is also a button called POPULATE which populates values for the fields in the detail form
in the detail part of the form
i am mentioning two fields
item_number belongs to data block XXNP_JL_EST_002 and opn_value belongs to data block XXNP_JL_RES_005
now the requiremnt is as follows
say the WELL field has a value 'abc'
then in the detail part
whenever and only when the item_number is '1010103002' the opn_value field should have value 123
similarly when the WELL field has a value 'def'
in the detail part
when the item_number is '1010103002' the opn_value field should display value '456'kindly guide on how this can be achieved
thanking in advance
i did a when validate trigger on opn_value field
BEGIN
IF :XXNP_JL_RES_005.OPN_UOM_CODE='PKU' and :XXNP_JL_EST_002.ITEM_NUMBER='1010103002' THEN
SELECT hierarchy_level
INTO :XXNP_JL_RES_005.OPN_VALUE
FROM fnd_flex_values
WHERE flex_value_set_id = 1009757
AND FLEX_VALUE=:XXNP_JL_001.FIELD ;
END IF;
END;Edited by: makdutakdu on Jul 4, 2012 12:40 PM
Edited by: makdutakdu on Jul 4, 2012 1:05 PM
Edited by: makdutakdu on Jul 4, 2012 1:09 PMHI
If i understood your question on overview, your requirement is
get master details in details column.
If this is correct,
YOu can write a simple plsql to get master value in details columne thru trigger
If my understanding is not correct, please tell me -
Creating Detail record in Master Detail form
I have created a Master Detail form with the Detail form being on a second page.
I have no problem editing an existing detail record. However, if I attempt to create a new Detail record (insert). I get an error. It appears that the value of the field that I am linking the Master and Detail records with, does not get passed to the second (detail) form when I press the 'Create' button and I have not been able to ascertain where I may need to modify the parameters of the page.
Any guidance would be appreciated.Hi Judy,
It's been 5-6 months since I've created a Master/Detail APEX application, but I don't remember having to create any special trigger or anything. I created a few maintenance appls over tables I created, and created an inquiry appl using Oracle vendor tables. All of them have worked nicely.
If the PK/FK's are set up correctly it just works. :-) Like magic. If I recall correctly, as you create the appl you define the the key fields to use. If the tables are defined correctly, and you 'tie' them together using the correct key fields in the application everything should work nicely.
Tony -
How to display more rows in Master-detail form
I am working on APEX3.2.
I have a master-detail form. The detail form always display 15 rows. However, my customer wants the detail display all the rows. I tries to configure the Number of Rows in the report. It doesn't work. How do I do it?
Thanks a lot!Hi:
To increase number of rows displayed you have to set Number of Rows and pay attention to both Number of Rows (Item) and Maximum Row Count.
After that if didn't work, sign out or close the browser then open it again. Sometimes it keeps the value in current session.
Saad, -
How can I insert in the table detail of a master/detail form??
Hello, I have created a master/detail form from the assistant, and with the code generated by APEX I do not manage to insert a row in the table detail, I press the button 'Add Row' and refill information, when I press the button ' to apply changes ' me the following mistake appears:
'Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "C85B64D53C8D63E9D3EE83B82728DFA3", item checksum = "244B1FED90DF5CC5B0DDB6728F4D02DD"., update "CRM_ADMIN"."ASIGNACIONES_AM_CONTACTOS" set "SECUENCIA" = :b1, "CODIGO" = :b2, "NOMBRE_CLIENTE" = :b3, "NOMBRE" = :b4, "COMENTARIOS" = :b5, "CODIGO_COMERCIAL" = :b6'
How I can solve and be able to insert in the table it detail?
ThanksHi Law,
Text in a shape or a text box will not feature in the table of contents.
To get a colour behind your titles, type them into your document (not a shape). Format as Heading or some other paragraph style the TOC will recognise.
Select the title text and Format Panel > Text > Font > Gearwheel > Advanced Options.
Choose Character Fill Color and choose a colour from the palette (left) or colour circle (right).
Example Titles (all on the same page for a smaller screen shot).
Chapter 3 (in a coloured Text Box or Shape) does not appear in the TOC:
Hint for cheats :
To give the titles a wider Character Fill Colour, add some Tab characters before and after.
Regards,
Ian. -
Hi cant see the primary key column in master detail form
I have a master detail form .In the first master form i am unable to see the primary key
Now the form is built completley and i also will like to see the primary key column visible in master report
If i had set the primary key as rowid then i could have seen the primary key ..
Now i can see the pencil icon (The eidt row pencil icon) instead of the actual primary key column . .which is a number data..
I will like that too be visible ..Can any one guide what should i do for this..
ThanksHi Mat,,
I am using apex 4.2 db version 11g and in the first master page i had set the value of combo which is primary key column as text
But still iam not able to see the number ..Note if i recreate the form ..with rowid as primary key i am able to see the column since the pencil icon(edit icon) is on row id..
Currently All i see is the edit icon ..I need both the edit icon and also the number ..
Thanks -
Primary key updation in the Master details form.
Hi All,
I am struggling with Master Detail form in apex 3.12.
I have two tables.
SaleMaster ( TRN_ID as PK ) Created from Sequence.
SaleDetail ( TRN_ID , TRN_TYPE as PK) TRN_ID FK from SaleMaster , TRN Type is user Input in SaleDetail.
What is best simple way to create the master details form for the above master details tables.
Thanks.I found a way. I dont like it - but it works.
I made a column link in the detail with the following:
javascript: doSubmit('NAVIGATE@#ROWNUM#);
This way I obtain information in the :REQUEST object about which row was clicked.
In a After submit process on the page I then parse this :REQUEST object like this:
DECLARE
v_row NUMBER;
v_pos NUMBER;
BEGIN
v_pos := instr(:REQUEST,'@',-1);
v_row := substr(:REQUEST, v_pos+1);
IF APEX_Application.g_f02(v_row) IS NOT NULL THEN
:P_PRIMARY_KEY_ID:= APEX_Application.g_f02(v_row);
ELSE
:P_PRIMARY_KEY_ID:= -1;
END IF;
END;
I know that my "Id" column is named f02 in the form, so this way I can find the id. I then assign this id to a kind of global variable - on the page I redirected to I can now find the Id.
Talk about ugly code :P
Maybe you are looking for
-
I own a 2ghz/2gb MBP running 10.4.7. After I installed the latest Airport Update 001, my computer has been acting up. The MBP now has major issues connecting to my graphite airport, though my eMac (10.3.9 w/latest security update) does not have any i
-
Export scenarios from XI and import them into PI
Dear experts We are planning to upgrade our exitsting XI 3.0 to PI7.0. Due to system requeriments, we need to install PI on new hardware and migrate all the existing scenario's from XI 3.0 PI7.'0 How to migrate the existing ABAP developements from XI
-
Every time i start my mac, it appears a Mac window ask me to put my administrator pass to less MacKeeper heler do changes. I spoke with Mackeeper support and they reinstall the program, reppair my disc permission and nothing work. Somebody help me wi
-
Hi experts, I have upload a html page to my webdynpro as a MIME object. How to display it in WebDynpro view? use which element? btw: I try to use Interaction Form, but It doesn't work. Thanks.
-
Best practice to store date in database
which best practices do you know to do this?