Help needed in Master Detail Form - 2 level of details
Hi,
I have a form with 2 levels of Master Detail and a Find window
The Datablocks are
- Batch
- Headers
- Lines
- Manual datablock for Find Wndow
I have created relation between Bacthes and Headers with Batch Id
I have created relation between Headers and Lines using HeaderId.
The issue is that,
If I search with '%' in Batch block, by default it will show results in 'Headers' and 'Lines' block.but if i navigate to the next record in batch block , only Headers block shows results but Lines block does not show result.
If I search from Find window also, only Batch and Headers block shows results but Lines block will be empty.
In the 'Batch' block if I search with specific data , the screen shows results in 'Headers' and 'Lines' block.
Can you please help me solve it.
I have written a PRE-QUERY on Batches block to set where clause from Find window.
I have written a PRE-QUERY in Headers block to set where clause from Find window
Thanks,
Kamath.
Thanks,
Gowtam
Hi,
When you execute normal not by searching through ENTER_QUERY mode. Then data is coming in all blocks
- Yes. Once I go to the Form if I search using '%' in batch block or search for a particlaur record i Batch block, the results shows up in Headers and Lines block.
Ex: say there are 2 records in Batch block(A and B) and I search by %, by default i get 1 batth record (A) and corresponsding headers and lines
now when i use down arrow key in the batch block, second record(B) will be showed in batch block. relevant Headers block records will be shown but Lines block does not get queried.
Similarly if coem to the Form from search window then also, Batch and Header blcoks wil be shown but not Lines block
PREQUERY at Batch Level_*
V_WHERE := 'WHERE 1 = 1';
IF :XXYH_ICAN_CALC_WB_FIND.PERIOD IS NOT NULL THEN
V_WHERE := V_WHERE || ' AND PERIOD = '''||:XXYH_ICAN_CALC_WB_FIND.PERIOD||'''';
END IF;
IF :XXYH_ICAN_CALC_WB_FIND.BATCH_ID IS NOT NULL THEN
V_WHERE := V_WHERE || ' AND BATCH_ID = '''||:XXYH_ICAN_CALC_WB_FIND.BATCH_ID||'''';
END IF;
IF V_WHERE IS NOT NULL THEN
set_block_property('XXYH_ICAN_WB_BATCHES',DEFAULT_WHERE,V_WHERE );
END IF;
PRE-QUERY at Header Level_
IF :XXYH_ICAN_CALC_WB_FIND.BATCH_ID IS NOT NULL THEN
V_WHERE := V_WHERE || ' AND BATCH_ID = '''||:XXYH_ICAN_CALC_WB_FIND.BATCH_ID||'''';
END IF;
IF V_WHERE IS NOT NULL THEN
set_block_property('XXYH_ICAN_WB_TRX_HEADERS',DEFAULT_WHERE,V_WHERE );
END IF;
Thanks,
kamath.
Similar Messages
-
Master Detail Form - unable to add detail row
Dear,
I have a test application that runs for years on apex.oracle.com.
Since 3rd of june 2010 I am unable to add rows on a detail form.
Any ideas?
Help is welcome!
Kind regards
Lorenz4.0 Conversion Issue
Lorenz stated I can create the orderheader, but unable to create orderlines.Simply nothing happens, when I click the add row button.>
I share the same issue as Lorenz, on a Master/Detail form, I am able to create my Master row and but nothing happens when attempting to create detail rows. I was able to switch my application to theme 13 (Traditional Blue) from 2 (Blue and Tan) and was then able to create and add details rows.
My dilemma. When switching to theme 13 and others, none appear to support Two Level Tabs in the same manner as Theme 2. Essentially the applications look and feel is not going to go over well with my user base of 3+ years.
Is there another standard theme that will support Two Level Tabs like Theme 2 and allow the addition of detail rows on a Master/Detail form?
Is this a reported 4.0 conversion issue?
Jeff -
Need equivalent of Oracle Forms Row-Level LOV
I came very close, but I am stuck on the last item.
I am trying to build an update form. I have a select box at the top, and when I select a new value, I want it to change all of the values on the form (for update) to the record associted with the value I chose in the Select Box.
I did this with the Master Detail wizard, although I believe that a "Form with a Report ", would work too. With the Master Detail Wizard, I choose "Edit detail on separate page", which creates the page that I am after, then I just delete the others. I then go to the last page (i.e., edit detail), and change the non-displayed primary key to a "Select List with Redirect" and then associate the desired LOV.
It works pretty nicely one I select a value, and it performs the redirect. However; I can't seem to get the form to pre-populate upon startup.
I tried defaulting the Select List, it does not pull in the detail data, unless I select something with the selct box.Just three last questions.
1) If I want to call another similar form and have it start on the same item that I currently have selected in the select box, how would I pass that parameter, and how would I receive that parameter? I currently create a link on the first page, and use the following to call the second page:
LinkName
2) Is there an easier way to do what I am trying to do other than using a Master Detail Wizard, or Form with a Report. When I use the wizrd to create a single form, it seems to default to an Insert Form, and is missing the necessary function to do what I like.
3) In my first two forms, a record will always exist before I navigate to it. However; I have another class of form, that may not have a record yet. Do I need to create this form differently, or will the approach I've taken above still work if I need the form to do an insert rather than an update into the associated detail table? -
Master detail forms..increase the detail rows by clicking a button
hi all,
i have a problem, in my master detail form i have set the details rows as 8. can i give an option to the user such as a button, on clicking which he can increase the number of detail rows by say 2 or 3.
can any one help me out on this???
Thanks in Advance
RajeshHi Rajesh,
This is not posible in the current model of the portal forms , the no of detail rows can be set only at the design time.
rahul -
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 -
Master Details form (LOV based on Detail Column of Join Condition)
I have created a master detail form where user_id is joining master and details.
I have created one dynamic lov based on child user_id in detail block to diplay all user who works under current user.
Problem : When i want to select Insert detail action in detail block the dynamic lov should read the user_id which is going to be inserted when you press Save button. Means as its not getting populated till one click on save button my lov is not getting refereshed.
Please advice what should i do.
Thanks
BakuleshI solved myself by modifing some guru's script from this forum little bit. I am adding here for feedback or use to any.
htp.p('<script language="JavaScript1.3">
function getMstFieldValue(form,fieldName)
var objName = "";
var tmp = "";
var dAction = "";
var sel_idx = 0;
var cnt = 0;
var instance = 0;
var slicedName;
var fillData = new Array();
var blkname;
for(var i = 0; i < form.length; i++)
slicedName = form.elements.name.split(".");
tmp = slicedName[2];
instance = parseInt(slicedName[3],10);
blkname = slicedName[1];
//alert("Fld "+tmp+" blk "+blkname+ " instance "+instance);
if (!tmp)
continue;
objName = tmp;
if (objName == fieldName && blkname == "MASTER_BLOCK")
return form.elements[i].value;
function setDetFieldValue(form,fieldName,value)
var objName = "";
var tmp = "";
var dAction = "";
var sel_idx = 0;
var cnt = 0;
var instance = 0;
var slicedName;
var fillData = new Array();
var blkname;
for(var i = 0; i < form.length; i++)
slicedName = form.elements[i].name.split(".");
tmp = slicedName[2];
instance = parseInt(slicedName[3],10);
blkname = slicedName[1];
//alert("Fld "+tmp+" blk "+blkname+ " instance "+instance);
if (!tmp)
continue;
objName = tmp;
if (objName == fieldName && blkname == "DETAIL_BLOCK")
form.elements[i].value = value;
</script>');
thanks
Bakulesh -
Need help joining one master folder to multiple 1:n detail folders
I'm trying to query a master folder with two detail folders. Both master-detail joins are 1:N.
Discoverer keeps giving me results with duplicate records when i try to do this, which is a fan trap I think?
How can I get around this? I need all 3 tables to be joined.i need to do left outer joins from the master to both detail tables and combine the results.
The query I basically tried was:
select m.summaryText, m.dateFiled, d1.extraComments, d2.location
from reports m
left outer join comments d1 on m.id=d1.id
left outer join extraData d2 on m.id=d2.id
This still gave me duplicate records in the results. How can you join all three and merge them without duplicates?
Thanks for trying to help... -
Help needed: modeling master-detail relationship using Object types
I would like to use object types to model a master-detail relationship. For e.g.
create or replace type detail_t as object
(id number,
name varchar2(20)
create or replace type details_t as
table of detail_t
create or replace type master_t as object
(id number,
name varchar2(20),
details details_t
If I don't use database object-tables, how can I return multiple master rows of the type above from a PL/SQL procedure? Can I return a cursor of some sort?
I'm using Oracle 8.1.7.
Thanks,
NiranjaNiranjan,
After the object types are defined, your data would come from either object tables or object views. In your case, to get multiple master rows, simply query the object view.
Regards,
Geoff -
Help needed for dynamic update form
I could really use some advice - I've been asked to build a time tracking application (basically a timesheet) and I have a fair bit done but the part I am really struggling with is the best way to accommodate some of the specifications. I am NOT a programmer (I have some coldfusion experience but nothing really advanced) so I have not managed to sucessfully integrate the various methods I've found on the web so far. The database is created and so are all the queries, and I have also written a cfc to handle the drop-down menu logic needed but I don't really know how to integrate it with the form.
Our production server has ColdFusion MX7 so all the great functionality in the CF8 examples I can't use.
The issue is the user should ideally be able to add/edit/delete multiple rows at once- I like CFGRID, and the HTML version seems best. The main issue with the Flash version is the scrolling to get to the insert/delete buttons- I couldn't see how to get rid of that. A separate add and edit form could be ok depending on how easy it is to use.
One problem I have is that I can't work out how to have default values with the grid (the userID which is a session variable, and the date which is constantly changing- there is a cfcalendar for the user to change date).
The biggest hurdle is the related select drop-downs I need- it's not quite as simple as the city,state,postcode examples. For the first drop down the pick an option- and for only 2 of those options there is a second drop-down. Anything else and it stops there. For the second drop-down, there are 2 options, and depending on which one of these they pick the 3rd drop-down pulls a query from one or another table in the database (2 entirely different things). The three options have different database tables. The main timesheet table just stores the id number from those tables (so I also need to display the names on the drop-down from the options tables not the number).
I played with simple and complicated javascript and coldfusion solutions as well, but because it's a form to update records and also because of the above specs I just couldn't get anything to work right. I tried binding with the cfc and nothing would bind, plus I don't know how to make all happen without a page reload.
Does anyone have any advice for the best approach to this? As I mentioned I've got tables, queries and even a cfc but I'm not too clear on how to put it all together properly within the constraints of MX7.
PS I also can't post a lot of code because of where I work- I know that's not helpful but am looking for the best approach to this, then I can work on the details. Right now I am jumping from solution to solution and not getting anywhere.Well, a lot of code has come and gone because I couldn't make it work, where I'm currently at is:
<cfform name="updateform" id="updateform" action="#CurrentPage#?#CGI.QUERY_STRING#">
<cfgrid name="MainData" height="400" insertbutton="add" deletebutton="remove" query="getMainData" insert="yes" delete="yes" rowheight="20" selectmode="edit" format="html">
<cfgridcolumn name="id" display="no">
<cfgridcolumn name="userID" display="no">
<cfgridcolumn name="entrydate" display="no">
<cfgridcolumn name="activityID" >
<cfgridcolumn name="typeID">
<cfgridcolumn name="projectID" values="#ValueList(getProjects.id)#" valuesdisplay="#ValueList(getProjects.name)#">
<cfgridcolumn name="time" width="10">
<cfgridcolumn name="comment" width="150">
</cfgrid>
<cfinput type="hidden" name="entrydate" value="#Session.username#">
<cfinput type="hidden" name="entrydate" value="#editdate#">
<cfinput name="update" type="Submit" value="Update">
</cfform>
** for some reason getProjects.name doesn't work and causes an error. I haven't worked out how to get the default inputs for the date and user ID to work either. I also tried binding and a flash form somewhere along the way.
** the CFC is below, #ds# didn't work and I had to put in the actual DSN name, not sure why, but anyway this is the logic of the thing. Ideally I would like to use this logic with the cfgrid, but I'm not sure if that is possible? It seems like it would be the most user friendly approach.
The CFC so far is:
<cfcomponent>
<cffunction name="getActivities" access="remote" returnType="query">
<cfquery name="getActivities" datasource="#ds#">
SELECT * FROM timesheet_activities
</cfquery>
<cfreturn getActivities>
</cffunction>
<cffunction name="getTypes" access="remote" returnType="query">
<cfargument name="Activity" type="any" required="true">
<cfif ARGUMENTS.Activity EQ "">
<cfset getType = "">
<cfelse>
<cfquery name="getTypes" datasource="#ds#">
SELECT * FROM timesheet_type
</cfquery>
</cfif>
<cfreturn getTypes>
</cffunction>
<cffunction name="GetProjects" access="remote" returnType="query">
<cfargument name="Activity" type="any" required="true">
<cfargument name="Type" type="any" required="true">
<cfif ARGUMENTS.Activity EQ "" OR ARGUMENTS.Type EQ "">
<cfset LstProjects = "">
<cfelseif ARGUMENTS.Activity EQ "1" OR "3">
<cfquery name="getProjects" datasource="#ds#">
SELECT id,name FROM projectsa
WHERE completed = 'false'
</cfquery>
<cfelse>
<cfquery name="getEProjects" datasource="#dse#">
SELECT id,name FROM projectsb
WHERE statusID = '6'
</cfquery>
</cfif>
<cfreturn getProjects>
</cffunction>
</cfcomponent>
Any attempts to actually use the cfc didn't work. I tried to use it with a normal html update form and got the message- failed to bind, Activity didn't exist. I also tried to bind it to a flash grid. The argument for Activity needs to come from the drop-down Activity type selected. Maybe I'm missing something.
ETA:
just moved everything to the live MX7 server (because my dev server is Coldfusion8) and I get the following:
Attribute validation error for tag CFGRID. The tag does not allow the attribute(s) BINDONLOAD,BIND.
Does this mean I definitely can't use the CFC with the cfgrid on MX7? Or is there a way to do it?
Any advice would be greatly appreciated. -
Help needed in printing interactive form
Hi Friends
I just developed an application which access ECC
can any one guide me to print the output pdfform
i have opened result interactive form and placed a print button ...next which script i should use? formcalc or
java script..since my application is a java webdynpro .
can you give me the piece of code for that..formcalc
already got the script..but i dont know the exact java script for printing.
plz help me in this issue
vivek chandraHi Raja
Thanks for that stuff..very helpful
i have 3 inputfields on one of my interactive form
i was asked to fill those fileds with predefined data
so that once the app is run, input form fields should
dispaly the predefiend values.in wdinit method i could
do that using wdContext.currentelement.setName("xxx");
i have 3 fields..three are text fields.from the third field need to eneter the date,its a PO Bapi..i did context binding ..i could drag the input fields..
but when iam trying to set predefiend date for the
3rd field..its not accepting it..since it is of type
date.. do i need to create any data type for the 3rd field in javadictionary????plz guide me in this issue
regards
vivek chandra -
Help needed in distributing the form
Hello All ,
I have a LiveCycle form which has 6-8 Pages.The completed document needs to be protected after distributing so that it cannot be reproduced, but allow us to add, change, edit delete contents as required and especially to populate what is now marked as protected. How to do this in the best way. One thing I have very less idea about distributing a form. Can anybody please help regarding this ?
Thanks.
Bibhu.You can use JavaScript to protect all form fields.
Bundled with a password you can design a workflow wich allows you to remove the rotection when needed.
Here's an example:
http://thelivecycle.blogspot.com/2010/02/mail-xfa-forms-as-protected-uneditable.html -
Hi all
shayan here
First of all sory for my last post in which i posted a lot of code...actuallly i want to describe my problem in details because it is really unknown to me......
Now i will desdcrible it in simple.Hope fully all of you can understand and give me a idea to overcome this problem......
My problem is that i had generated a record in tabluler form through Select statement......means i have made a coursor of select statement and via loop i added it to tabuler form element like this
Registration Enrollment
12321 312312
231312 23123
1232 123123
Now i had added another display item in which ihave to calculate another thing like this
Registration Enrollment CGPA
12321 312312 2.14
231312 23123 1.23
1232 123123
I have done it but problem is that it is showing the cgpa in front of only one item...
not on all
i dont know why??????
also i want to insert this into another table like this....if this CGPA is final then insert it into final_CGPA table else it will update table with this CGPA.....
I had written the Insert and update statement on when button pressed button but it is not updateing or inserting.....
any help regarding this is highly appreciated
Thanks in advance
Shayan
[email protected]Hello,
Forms always creates the first record in each block, but if you want to add manually some more records, you have to use the Create_Record built-in for each new record you want to create in the block.
Francois -
Help needed with PCR Interactive Forms.
Hello,
We are trying to get a prototype system going to show HR some WebDynpro and Adobe Forms technology. I'm focusing on our PCR's right now. I have fixed one problem by configuring the ABAP WAS in the java visual admin http destinations. I now want to take our ISR's and map them to adobe forms in QISRSCENARIO. I am looking at the available forms and wish to configure.
- Transfer an Employee out of my Org - ISR_FORM_SPTR - The inactive SPTR form displays the following "The creation of this form has not yet been completed. Therefore, you cannot use the form at this time. The finished form will be available with the next release.SAP AG "
- Move an Employee to a Vacancy in My Org - ISR_FORM_???? - This may be some old custom development on our part because I'm seeing nothing close in ISR forms.
- Change an Employee in Current Position - ISR_FORM_SPPD - Displays form after a popup shows soem formcalc errors.
- Separate an Employee - ISR_FORM_SPSD - Displays form
- Change Working Time of an Employee - ISR_FORM_SPWT - Displays form after a popup shows soem formcalc errors.
This is just a prototype so I'm not lookign to mesh all out pcr customizations. I do have some questions though.
I can't seem to find anything telling me what adobe forms are delivered for a particular version of SAP. We are on ECC5.0.
Is a form marked inactive simply not delivered? If not how do I activate?
Basically we'll want to be using adobe forms wherever delivered for ECC50. Any pointers to documentation on what's delivered vs. what I'm seeing in QISRSCENARION would be greatly appreciated as well as any general docs on working with, modifying forms.
Thanks,
DougWhere to start with scripting:
http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf
In first doc, check the last chapter for the most illustrative examples.
You need to be able to get the value of the radio (var help = this.rawValue), use the condition (if (){} else {} )and set the value (this.rawValue = "").
Otto -
Help needed please -Master data loading- error with text loading.
Hi,
Iam S.Sushma. Iam getting error while loading master data from flat file- attributes and texts.
I have loaded attribute data successfully. But when iam monitoring the text data then iam getting following error.
""SET THE LANGUAGE FIELD IN THE SOURCE SYSTEM-LONG TEXT.""
""RECORD1: SRPID_1:DATA RECORD 1(EN S):DUPLICATE DATA RECORD.
"ERROR 4 IN UPDATE"
I took 2flat files for attributes and texts.
SRPID is key field.(sales representative id)
attributes:- SRPID, NAME1, AGE1, ADD1,PHONE1.
text:- SRPID,LANG,SHTXT,MDTXT,LGTXT.
Iam just a begginer so need your guidence. Thank you in advance.
Message was edited by: sushma sandepogu
Message was edited by: sushma sandepoguHi Eugene,
Thank you for your guidence. I have changed the order in flat file and got the results successfully. But when iam viewing the Master data text the S10 in coming in 2nd position in maintain master data-list screen i mean :-
SRPID LANG NAME AGE ADD PHONE SHTXT MDTXT LGTXT
S1 EN ABC 34 GDS 1234 AS ASD ASDDF
S10
S2
S3
S9.
Iam not understading why. Hope yu can help me. I have assigned full points to you for your previous solution.
Thank you in advance.
S.Sushma. -
Help Needed with Adobe Interactive Forms scripts
Hi Gurus,
I have an Interactive form in which I have 5 radio buttons. Upon selecting any one of the radio buttons, some values (Ex : If user selects the first radi button 20 should be displayed in the text box. If he selects the second 21 should be displayed in the textbox.). In my script, I need to capture the checked value of the radio buttons ( They are grouped) and how I should reference radio button on the form/subform
Regards,
SriniWhere to start with scripting:
http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf
In first doc, check the last chapter for the most illustrative examples.
You need to be able to get the value of the radio (var help = this.rawValue), use the condition (if (){} else {} )and set the value (this.rawValue = "").
Otto
Maybe you are looking for
-
Can I get 2 sets of headphones to work at the same time on my powerbook?
For example, one USB set and one regular mini jack? I have played around in audio settings but don't see a way to do it. thanks
-
FI: Postings" is not allowed (ORD 50036237)
To process business transaction 'FI: Postings', you first have to change the status of object 'ORD 50036237' to allow the transaction 'FI: Postings'. This gives you an overview of the system and user statuses that affect the transaction. A transactio
-
'Carry-out Mass changes in Equipment/Functional Locations
Dear Experts, Through one SCN thread, I came to know that there is a functionality namely 'Carry-out Mass changes' in the GOTO menu in the List editing ALV screens of Equipment/Functional Locations (IE05, IH08, IH06 etc) But, I am not able to find an
-
I can't reproduce correctly a reference file .mov in full screen in iTunes
Hi everybody. Today I have been trying to organize my film collection in iTunes. First, I read that the best way if I had the films in a hard drive was creating a reference file, called .mov. I tried different ways to create it, first with QuickTime
-
Webcenter spaces integration with ADFS
Hi, Has anybody integrated Webcenter spaces application with Active Directory Federation services (ADFS), Is there any documentation available for the same. Please let me know if there is any specific documentation. TIA