Master Form Defaults
I am struggling with defaults on a Master/Detail form. Numerous columns on the Header table are foreign keys to other tables. I am attempting to populate these columns from items such as LOV and/or SQL.
When I click on the Create button to write the Header row I am receiving messages that the item value is NULL or that I have violated a table constraint on one of foreign keys yet the session state items values have the necessary data in them.
Is there subsequent code that I have to write to populate header form data in this fashion?
Jeff
Scott,
The application I am currently working on is a budget entry system. Budget have Phases, Phases have Versions (only one is active) and Budget/Versions have Budget Headers.
I am attempting to allow the entry of a Budget Header row and Budget Detail rows via the Master/Detail form. If I take the form as is, I can enter the Version number (VERSION_SEQ) and the form will use that value entered as the Foreign Key to the Budget Header table. When I attempt and am have no luck with is defaulting the current active Version number.
So instead of using the wizard default Spource Type for VERSION_SEQ as DB Column, I have substituted my SQL code as Source Type SQL Query. I can the same value on the form as if I had typed it yet APEX sees it as NULL.
It's my guess that I am fighting against the inner workings of the form and am looking for direction on how I can default that value and not depend on the user to know which version is currently active which in most cases they will not know or care about.
Jeff
Similar Messages
-
Changing Printer in the PO master form
Hi All,
we are SRM 5.5 ECS. we addded a new printer and would like to change default to the new printer. Please suggest where I could change the printer in SRM Master form/config. When users print PO, it should automatically default to new printer.
Please advise.
Regards
RaoHello Rao,
Change value for attribute 'PRI' in organizational plan.
Check, with view HRV1222A for this attribute, where your old printer value is populated in order to switch to the new one.
Regards.
Laurent. -
Oracle Portal master details default value set up.
Hi All,
Using Oracle Portal to create a master details form.
I have tried to set up the details table foreign key. I used the master table primary key as a default value for the details table foreign key.
Does anyone know what the correct syntax is when I fill in the Default Value field on the "Formatting and Validation Options for Detail Row" tab?
Also related to this: What should I choose from the drop down menu for the "Default Value Type"?
Best Regards.
Liviu Minda & Paul Williams
Cape Town City Council.Hi Liviu & Paul,
NOTE: The following is applicable to Portal version 3.0.8 and above .
Well, if you want that the Detail table Foreign key should get the value of The Mater Table Primary key, then you need not do anything like setting the Default value for the Foreign Key of the Detail section. It works like this :-
Operation INSERT:
When you are INSERTing a master record and the corresponding detail records, just fill up the master form and need not worry about the Foreign key(FK) in the Detail rows. Fill up the other columns for the detail rows and choose the appropriate action for each of the detail rows i.e. INSERT and click on the SAVE button. If the FK in the Detail have been left blank, then while inserting into the detail table, the Primary Key (PK) value of the master will be picked up and inserted . However, if you specify any value in the FK column of the Detail, then the specified value would override the PK value of the master.
Generally, what ppl do is make the FK in the detail of type Hidden.. so users cannot tamper with the FK values.
Hope this helps.
null -
How to: Create a master form that auto-fills data into other pdf forms?
I hope someone can please help me. I have about 15 PDF forms that all require similar data entry (name, address etc). Can I create a master form that we fill in once per client, and then auto-fill in the matching data on the 15 forms?
I am not looking for an online solution as the information is highly sensitive.
I have already created a form in Acrobat X Pro with the 'master data', and created the (15) forms with identically named fields. How I link the forms now to the master, I cannot figure out (after much searching).
I have read similar questions on the same topic but have not found any answers. I hope this time someone can please help.
Many thanks in advance.Thank you! I had just figured out how to export the data from the master as an FDF file and then import it to the other files. I'm afraid I don't understand scripting to automate the process across multiple files. To you mean with java script?
I've also thought about combining the forms, once we know which ones the particular client will need. I have to see how it works in practice for my colleagues who will be using them.
Thank you again. -
How to add a column in Item Master form with chooselist
Hi Experts
I add a column in Item Master Form in Stock Data Tab. In this column I want to add Choose list. For this I use AfterFormLoad event. It gives Error "Matrix Line Exist" . My code is given below
If pVal.FormType = "150" Then
form = B1Connections.theAppl.Forms.GetForm(150, pVal.FormTypeCount)
form.PaneLevel = 3
oItem = form.Items.Item("28")
oMatrix = oItem.Specific
Dim chooseObj As ChooseListClass
chooseObj = New ChooseListClass
chooseObj.AddChooseFromListBinCode(form.UniqueID)
oColumns = oMatrix.Columns
oColumn = oColumns.Add("BINCODE", BoFormItemTypes.it_EDIT)
oColumn.Width = 100
oColumn.DataBind.SetBound(True, "OITW", "U_BINCODE")
oColumn.TitleObject.Caption = "Def BinCode"
oColumn.Editable = True
oColumn.ChooseFromListUID = "CFL5"
oColumn.ChooseFromListAlias = "U_BinCode"
oColumn = oColumns.Item("U_BINCODE")
oColumn.Visible = False
End If
please give your suggestion
Regards
JitenderHi Noor
Thanks for reply
I tried your suggestion but problem still there. I am using after form load event. Here matrix has 9 lines (all warehouse). If remove the line then how can I reload warehouse data. Can you suggest in more detail.
my code is given below
form = B1Connections.theAppl.Forms.GetForm(150, pVal.FormTypeCount)
form.PaneLevel = 3
oItem = form.Items.Item("28")
oMatrix = oItem.Specific
MsgBox(oMatrix.RowCount)
oMatrix.DeleteRow(1)
Dim chooseObj As ChooseListClass
chooseObj = New ChooseListClass
chooseObj.AddChooseFromListBinCode(form.UniqueID)
oColumns = oMatrix.Columns
oColumn = oColumns.Add("BINCODE", BoFormItemTypes.it_EDIT)
oColumn.Width = 100
oColumn.DataBind.SetBound(True, "OITW", "U_BINCODE")
oColumn.TitleObject.Caption = "Def BinCode"
oColumn.Editable = True
oColumn.ChooseFromListUID = "CFL5"
oColumn.ChooseFromListAlias = "U_BinCode"
oColumn = oColumns.Item("U_BINCODE")
oColumn.Visible = False
oMatrix.AddRow(1)
Thanks
Waiting for reply
Regards
Jitender -
Event to use for Creation of a Check box on Warehouse master Form
Hi experts
I have created one check box on Warehouse Master form in AfterMENUClick Event. It works fine if I open the form on Menuclick . But If I open the Warehouse master form by Link button from any document, it does not show the check box. I also want to deactive the checkbox if once it checked. So, I do some coding in Data_Load event. It also works fine If I open the form by Menu click. But if I open the form by Link button it gives error " Invalid Item Id ".
So I want to know which event I should use to create the check box and which Event I Should use to Deactive the Check boxThanks Nagy for quick reply
I use the following code for creation of check box
<B1Listener(BoEventTypes.et_FORM_LOAD, False, New String() {"62"})> _
Public Overridable Sub OnAfterFormLoad(ByVal pVal As ItemEvent)
Dim ActionSuccess As Boolean = pVal.ActionSuccess
Dim form As Form = B1Connections.theAppl.Forms.Item(pVal.FormUID)
'ADD YOUR ACTION CODE HERE ...
Dim oForm As Form
Dim oMatrix As Matrix
Dim oItem As Item
Dim sysItem As Item
Dim BinCheck As CheckBox
Dim BinLabel As StaticText
Dim cmbBinCode As ComboBox
oForm = B1Connections.theAppl.Forms.ActiveForm
oForm.PaneLevel = 1
sysItem = oForm.Items.Item("2000002010") 'Excisable check box
oItem = oForm.Items.Add("BinChk", BoFormItemTypes.it_CHECK_BOX)
oItem.Left = sysItem.Left
oItem.Top = sysItem.Top + 20
BinCheck = oItem.Specific
BinCheck.Caption = "Bin Enabled"
BinCheck.DataBind.SetBound(True, "OWHS", "U_BinEnabled")
End Sub
It gives error on sysItem = oForm.Items.Item("2000002010") line Invalid Item Id
Plz check and tell the problem
Regards
Gorge -
Is it possible to create a Master Form?
Hello... i am using Acrobat Pro 8.6. I was wondering if it might be possible to create a master form. I am using a form to receive artwork approval from my customers. My question is if I can use my proof form to create a form and use that form every single time. Only issue is I have to chante my proof form with the customers information and add their ad on to the form. All the areas that need the form fields will not change so I wasn't sure if its possible to just save all the field forms so that I can use it every time I open a new proof? Is this possible? If not, does anyone have a good idea on how to accomplish this without having to create a new form for every single customer we have, its a lot?
Thanks,
JaymeThanks for responding... when you copy the form, and I open up a new document and paste the form fields right into my new document? Is that what you mean, this may work. My proof sheet is created in Illustrator and I bring that into Acrobat to create the form. The form fields will not change, but the Illustrator file will always change. I just don't want to have to create a form every time, it takes a little bit of time. LOL
-
Default Columns in Process form (Default Column Tab in form designer)
Hi,
'UD_RACF_RV_KEY' this is the default column present in process form default column tab. After Reconciliation for Racf when I try to reapply the matchin rule I got exception like :
Class/Method: tcRCE/insertProcessData encounter some problems: Column 'UD_RACF_RV_KEY' not found
Any idea why this exception?
ThanksForm Version Control Utility
http://download.oracle.com/docs/cd/E14899_01/doc.9102/e14762/appc.htm#sthref384
Search the formums and google for more help on the topic.
-Kevin -
Master form detail table delete and save all
I use jdeveloper 10.1.2 with jheadstart 10.1.2 I have a problem about delete and save in master detail.I create 1 master form ,1 detail table and 1 detail form in jheadstart.I want to delete details when I pressed delete button in master and I want to save all changes when I pressed save button.But delete and save are only work for master.So my detail data cant delete or save.What can I do for this problem?Thank alot.......
To delete the details when you delete the master, it is easiest to define the foreign key in the database with CASCADE option instead ogf RESTRICTED.
I cannot reproduce your issue with Save not working. Can you reproduce this using the HR schema?
Steven Davelaar,
JHeadstart team. -
Can anyone provide the javascript code for a master form
I like to know how I can set up a master form on acrobat standard? My issue is that I would like, as I fill the master form, to be able to have the rest of the forms fill in automatically. Please help me with this issue!
Thanks,
RaulTake a look at http://www.jotform.com. You can create as many forms as you like here for free and they don't contain advertising.
You could also try Google docs, so go to http://www.google.com and log into your account or create one and then go to settings and the docs section. It is free an you can create as many forms as you like and there isn't really any advertising to speak of.
Other than this, it is easy to create your own form using html.
If you are publishing to MobileMe, then you can do it, but you need to enter <Form action Mailto:, so all the info opens in the clients e-mail and is e-mailed directly to you.
If you are using an external server such as GoDaddy, then you can use form mail and enable this on your server, so the result is e-mailed to you. -
How to hide a folder in item master form?
Dear members,
I have to hide a folder named properties and remarks in item master form?
I have tried by setting the visible property as false through sdk coding.Its working fine but when i use navigation button these above mentioned tabs appear for a moment and then disappear.
I want these to not to be visible in any of the events like navigation and find.
please do help me in this regard.
Regards,
Venkatesh.RHi,
thats a pitty!
i tried this many times with every item except Folders.
looks like you can't move 1 Folder alone when they are grouped
iam sorry - i don't see a other solution than Petr's way now - catch the click / itempressed event and
set bubbleevent to false
lg David -
Jheadstart 10.1.2 master form-detail table error
Hi everyone;
I use Jheadstart 10.1.2 and I have 1 master 6 detail table.I want to show master form and 3 detail table in same page. I configure pages in jheadstart and generate master form- detail table when module run it gives this error in detail tables place;
java.lang.RuntimeException: Range binding ALTERNATIF_SATICILAR does not exist in STOK_MASTERUIModel
at oracle.jheadstart.view.strutsadf.TableBindingFactory.get(TableBindingFactory.java:137)
at org.apache.taglibs.standard.lang.jstl.ArraySuffix.evaluate(ArraySuffix.java:221)
at org.apache.taglibs.standard.lang.jstl.ComplexValue.evaluate(ComplexValue.java:146)
at org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:242)
at org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:201)
at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:138)
at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:166)
at org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(ExpressionEvaluatorManager.java:109)
at org.apache.taglibs.standard.tag.el.core.ForEachTag.evaluateExpressions(ForEachTag.java:191)
at org.apache.taglibs.standard.tag.el.core.ForEachTag.doStartTag(ForEachTag.java:102)
at web2d__131_nf._page._STOK__MASTER._jspService(STOK_MASTER.jsp:872)
[SRC:/WEB-INF/page/STOK_MASTER.jsp:251]
at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:57)
at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:567)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
at oracle.jheadstart.controller.strutsadf.JhsActionServlet.process(JhsActionServlet.java:127)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1012)
at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:582)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
at oracle.jheadstart.controller.strutsadf.JhsActionServlet.process(JhsActionServlet.java:127)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
at oracle.jheadstart.controller.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:172)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:645)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
Thanks for all helps..........Which build of JHeadstart are you using?
kind regards,
Sandra Muller
JHeadstart Team -
Pagination for Master Form, Detail Table
Hi,
I am using JDev11.1.2.1.0
I am creating a page having master detail relationship (master as a form and detail as a table). On click of First, Prev, Next, Last pagination button of master should change the data and refresh child table data.
So created a Master VO & Child VO joined with View Link and dragged into page as Master form, Detail table. But during pagination, NEXT works once, then it seems to stop there. LAST works and FIRST & PREVIOUS seem to both go to the first record.
Can anyone suggest me when I went wrong.Yes Frank, its st. forward use case. I tired with master table with detail table works fine but master form with details table behaviors differently.
Below snippet of code in JSPX page master form detail table as shown below :
<af:panelFormLayout id="pfl6">
<af:panelLabelAndMessage label="Name:" id="plam1">
<af:outputText value="#{bindings.EMP_NAME.inputValue}" id="ot2"/>
</af:panelLabelAndMessage>
<af:panelGroupLayout id="pgl15" layout="horizontal">
<af:commandButton text="First"
disabled="#{!bindings.First.enabled}"
partialSubmit="true" id="cb1"
actionListener="#{bindings.First.execute}"/>
<af:commandButton text="Previous"
disabled="#{!bindings.Previous.enabled}"
partialSubmit="true" id="cb2"
actionListener="#{bindings.Previous.execute}"/>
<af:commandButton text="Next"
disabled="#{!bindings.Next.enabled}"
partialSubmit="true" id="cb3"
actionListener="#{bindings.Next.execute}"/>
<af:commandButton text="Last"
disabled="#{!bindings.Last.enabled}"
partialSubmit="true" id="cb4"
actionListener="#{bindings.Last.execute}"/>
</af:panelGroupLayout>
</af:panelFormLayout>
<af:table rows="#{bindings.EmpSchemesViewObj1.rangeSize}"
fetchSize="#{bindings.EmpSchemesViewObj1.rangeSize}"
emptyText="#{bindings.EmpSchemesViewObj1.viewable ? 'No data to display.' : 'Access Denied.'}"
var="row" styleClass="AFStretchWidth" autoHeightRows="5"
columnStretching="column:c2"
value="#{bindings.EmpSchemesViewObj1.collectionModel}"
rowBandingInterval="0" contentDelivery="immediate"
selectedRowKeys="#{bindings.EmpSchemesViewObj1.collectionModel.selectedRow}"
selectionListener="#{bindings.EmpSchemesViewObj1.collectionModel.makeCurrent}"
rowSelection="single" id="t1"
partialTriggers="::cb1 ::cb2 ::cb3 ::cb4">
<af:column headerText="#{msg.LONG_NM}"
sortProperty="#{bindings.EmpSchemesViewObj1.hints.REGISTERED_NAME.name}"
sortable="false" id="c1">
<af:outputText value="#{row.REGISTERED_NAME}" id="ot9"/>
</af:column>
</af:table>
Edited by: 879073 on Jan 22, 2013 3:36 AM -
How can i master forms effectively.
i am learning forms. how can i learn it effectively. i know all the options and using text, lov, etc etc.
how can i learn more any advice. i am not working anywhere. so no real time exposure. how can i work on to improve myselfdid you have colleagues, who work with forms? Then dive into a project, that they work on and that's the best and quickest way to "master forms"
-
I have a series of forms which I access from one master form via buttons
The question is I want my master form to stay live when I open a form from the pressed button At the moment the main form closes when the next form is called, how can I open the called form in a new window?
Thanks for the reply not what I really want
I have seen a popup box which gives me a choice to set a value of
open in current window
open in new window
open in user defined window
but I don't seem to be able to find how to recreate it
Maybe you are looking for
-
Open Hub is not working after upgrade
Hi Guys, I did an SAP BI upgrade from 7.0 to 7.3. The open hub destination was working fine before the upgrade, I could see the data coming in the file. After the upgrade, there is no data coming to the file. System says "no data available". Did anyo
-
7.1.2 Upgrade Issue with 2012 Chevrolet Tahoe
I upgraded my iPhone 5 to iOS 7.1.2 and now it will not work with my 2012 Tahoe via USB connection. Vehicle has Bose system with navigation. Previously the display worked with Spotify and any music apps on the phone. Phone has been rebooted mutipl
-
I have not updated Quicktime on my system for some time now, because I know that FCP & Quicktime work hand in hand. I don't want to cause a problem with any of my FCP editing, by having non-compatible updates trying to work together. I bought an I-po
-
The photo on the left is Illustrator CC 2014 and the one on the right is Illustrator CC. As you can see the icons and text on the left are enlarged, resulting in less space for the document. I couldn't see anything in preferences about this. Does any
-
Lightning cable not working from both sides (not reversible)
Hi, 2 days ago I started to notice something... I was about to charge my iphone with the cable but I noticed that it wanst charging... I checked the usb ports from my computer and 2 wall adapters and sometimes it did charge and some did not, but then