Can I use View Link in ADF Creation Forms Jdev 10.1.3

Hi...
I created a view link of two tables. Then I created a ADF form with Master Object to show some informations.. and I created a ADF Creation form with the detail Object
I'm trying to submit the informations added in the Detail forms.
but no records are created in Database..
Can I submit a creation form using detail object?
Thanks

I figured out "partially" the problem, I tried to overrid the create method, and for any reason the commit operation wasn´t working.
I was trying to set a value for a proprety, but it did not work as a wish.
My intention was.... when an user execute the form. one specific field brings a value.. however I cannot set default value. cause it´ll change sometimes.
it´s something like this
protected void create(AttributeList attributeList) {     
super.create(attributeList);
setMyProperty(new Number(0));
do you know how can I figure out this problem?

Similar Messages

  • How can i use JS files in ADF for language translation.

    Hi,
    I have JS for different languages and dn't want to convert them to property files(resource bundle files). How can i use JS files in ADF for language translation.
    Thanks

    Hi ILya Cyclone,
    Thanks alotfor the reply. Can you tell me where should i include this in the jspx page.
    Step 1)
    I have the js file as js/ifl_messages_US.js and i created a resource file as you mentioned: JS_FILE_PATH=js/ifl_messages_US.js
    Step 2)
    Then added the entry in faces-config.xml for the resource file as follow:
    <resource-bundle>
    <base-name>resource_en.properties</base-name>
    <var>resource</var>
    </resource-bundle>
    <locale-config>
    <supported-locale>en</supported-locale>
    </locale-config>
    Step 3) This is my jspx page. In which a table is dynamically created on page load. Can you help me where should i enter the "#{resource.JS_FILE_PATH}"
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:messages id="m1"/>
    <af:resource type="javascript" source="/js/pdfFile.js"/>
    <af:form id="f1">
    <input type="hidden" name="checkRadio" id="checkRadio" value=""/>
    <af:panelGroupLayout id="pgl1" halign="left" layout="vertical">
    <af:image source="/images/BRAND_IMAGE.gif" id="i1"/>
    </af:panelGroupLayout>
    <af:spacer width="10" height="10" id="s1"/>
    <af:table varStatus="rowStat" summary="table"
    value="#{backingBeanScope.DummyBean.collectionModel}"
    rows="#{backingBeanScope.DummyBean.collectionModel.rowCount}"
    rowSelection="none" contentDelivery="immediate" var="row"
    rendered="true" id="t1" styleClass="AFStretchWidth"
    binding="#{backingBeanScope.DummyBean.myTableBinding}"
    columnResizing="disabled">
    <af:column id="c2" headerText="Actions">
    <af:activeOutputText value="#{row.Actions}" id="aot2"/>
    <af:goLink text="#{row.Actions}" id="gl1"
    clientComponent="true" visible="false"/>
    <af:selectBooleanRadio text="" id="sbr1"
    valueChangeListener="#{backingBeanScope.DummyBean.checkselectbox}">
    <af:clientListener method="selectCheckBox" type="click"/>
    </af:selectBooleanRadio>
    </af:column>
    <af:forEach items="#{backingBeanScope.DummyBean.columnNames}" end="#{backingBeanScope.DummyBean.columnSize}"
    var="name" begin="1">
    <af:column sortable="false" sortProperty="#{name}"
    rowHeader="unstyled" headerText="#{name}"
    inlineStyle="width:100px;" id="c1">
    <af:activeOutputText value="#{row[name]}" id="aot1" escape="false">
    </af:activeOutputText>
    <!-- <af:outputFormatted value="#{row[name]}" id="of1"/>-->
    <!--<af:goLink text="goLink 1" id="gl1"
    destination="#{row.bindings.url.inputvalue}"/>-->
    </af:column>
    </af:forEach>
    </af:table>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Thanks in advance

  • Undo Changes in child table (using view link)

    Hello,
    My environment : Jdev 11.1.2.2.0
    I have a master-detail relationship which is linked using View Link. My requirement is to open a popup on double clicking the master row, and the user can add/delete/modify the child rows. Also I need to provide Ok/Cancel buttons. I need to Undo all the changes done for the child when the user clicks 'Cancel'. Can anyone please help to solve this?
    Regards
    Suresh

    First u need to a custom SelectionListener and make sure that RowSelection is set to single row. Add a method in the Managed Bean and make the row as current using the below java code
    public void Master_tableListener(SelectionEvent selectionEvent) {
    // This code is to make the selected row as current programatically
    ADFUtil.invokeEL("#{bindings.*YourViewObjectName*.collectionModel.makeCurrent}",
    new Class[] { SelectionEvent.class },
    new Object[] { selectionEvent });
    Row selectedRow =
    (Row)ADFUtil.evaluateEL("#{bindings.*YourViewObjectIterator*.currentRow}");
    // Tip : U will get the above EL's when u 1st drop the Master table on the page
    // Invoke the pop up programatically
    RichPopup.PopupHints ph = new RichPopup.PopupHints();
    p1.show(ph);
    After writing this code.. All u need to do is Drop the Detail Table on the Dialog of ur popup. This way u will get all the rows of the table. So, filter this table with the foreign key using some code..
    Or u can just drop the region containing the Detail Table with the Rollback and commit
    - Saif
    Edited by: Saif Khan on Sep 11, 2012 5:34 PM

  • Master/Details Relationship using View Links is not not population data

    Hi,
    I have problem in generating proper data in master/detail relationship using view links passing three parameters between two custom tables can guide me the steps and process how i will able to generate and acheive this requirement.
    very urgent
    Please suggest me

    Without further details, I'd suggest reviewing the following Section of the Fusion Developers Guide:
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/web_masterdetail.htm#ADFFD758
    I've done this many times without issue.

  • How to insert into two tables using a Single ADF creation form?

    Hi,
    I need to make a ADF Creation Form that will insert the data at same time in two tables... Like i have two tables Track (Track_id,Track_Name)
    and Module ( Module_id, Track_id, Module_name, Module_Short_name) and i have to insert the data in both the tables using Same Creation Form.
    can anybody help me out and gave me the solution,how to do that?
    Thanks

    if you want to insert different data into two different tables then you can drag the two data objects into creation form..
    If you want to duplicate the data inserted in the one table to another then you can follow two approach
    1. Drag and drop one table, When Save button is invoked then insert data into another table using callable statement.
    or
    2. Create on-insert trigger in Table1 where you can insert data into table2.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Can I use action link based on hierarchical column?

    Hi all,
    I used OBIEE 11.1.1.6.2.
    And I want to know can I use action link based on hierarchical column? I want to show link based on some conditionally..
    I try to add conditions, such as Department is equal to A, But after I added, it show me "Department is equal to", why?
    Can anybody give me some hints?
    Regards,
    Anne

    Hi Anne,
    It should work. How did you add the action link? .Click on the + icon on the hierarchical column in criteria tab, this will list all the columns in the hierarchy.Each column will have its own column properties. Click on the Hierarchy level properties of Department column ->Interaction tab and define your conditional action link.
    Regards,
    Dpka

  • Can I use tp- link m5350 with my retina ipad which will enable me to use internet anywhere

    Can I use TP-link m5350 with my Retina I Pad, which will then enable me to use internet
    on the move.   If not any suggestions please.

    Thanks did not want to pay out if not workable. Kind regards

  • How to  programmatically initialize field in ADF Creation Form

    I'm using JDEV 10.1.3.2, ADF BC. The task sounds simple:
    1. Create an ADF Creation Form by pulling in a VO (backed by EO) from Data Control.
    2. Initialize one of the required fields in a backing bean from processScope.
    3. User sets other fields via GUI.
    4. Save the new record in the database (Commit).
    The problem is how to do step 2? The processScope variable is being retrieved properly, but I have not been able to set the required field so that the user does not have to enter this field. I have an action on the Save button as follows:
        public String commandButton_action() {
            String psnetid = null;
            BindingContainer bc = getBindings();
            AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
            psnetid = afContext.getProcessScope().get("netid").toString();
    //Need to set Netid field in VO to psnetid here
            OperationBinding operationBinding =
                bc.getOperationBinding("Commit");
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
                return null;
            return null;
        }Can anyone shed some light on this?
    Thanks.

    This is outside of the backing bean, but you may try it:
    modify the getter on the entity impl class (if you are using ADF BC) to set a default value
    This example is to set a default status id on the field.
    public class <EntityName>Impl extends EntityImpl {
    public static final int STATUSINTLID = 1; //first column name on the entity
    public Number getStatusIntlId() {
    Object intlId = getAttributeInternal(STATUSINTLID);
    if (intlId == null){
    int intValue;
    intValue = <get value from somewhere code>;
    Number defaultValue = new Number(intValue);
    if (defaultValue != null){
    this.setStatusIntlId(defaultValue);
    return (Number)getAttributeInternal(WATERDRAWSTATUSINTLID);
    Cheers,
    Jim

  • ADF:  ADF creation form

    I need to create form that will show empty values because i want to enter new records in empty table. I have found out that i need to select ADF creation form from the context menu when i drag the collection for which i want the form to be created. The problem is that i don't have ADF creation form listed under forms submenu. I'm using JDeveloper 11g.
    Can someone help me?
    Edited by: user4711269 on Dec 11, 2009 2:33 AM

    Hello Frank and thanks for your answer.
    I have managed doing this with only one page with this tutorial http://blogs.oracle.com/shay/2007/07/25/
    thanks

  • Pass Parameter into ADF Creation Form

    I have an ADF Read Only Form on page 1, and and ADF Creation Form on page 2. I want three specific fields from page one to be passed into the appropriate fields on page 2. How would I go about accomplishing this?
    Thanks,
    Tim

    Hey Shay,
    I got one value to pass:
    I put a setAction Listener on the command button. My From was #{backing_confirmTest.outputText2.value}. And my To was #{processScope.Test}.
    When I tried to add another setAction listener to the same button it wouldn't let me. Can I not have another set of values like... #{backing_confirmTest.outputText3.value} and #{processScope.Test2}??
    Thanks,
    Tim

  • Can i use case in query in oracle form 6i

    sir can i use case in query in oracle form 6i
    such as
    select empno, case when deptno=10 then dptno end from emp;
    please gice me

    Hello,
    Does this code compile ?
    If not, I'm afraid that the PL/SQL engine of Forms6i does not recognize this syntax.
    Francois

  • Passing two values in two different views using view criteria in adf bc

    I have two tables. Message and MessageProperties. Message table is connected with itself as same as Employee table of HR. Means a Message can have various child message. MessageProperties contains the message properties. A message can have various properties. I want to show the message only if it has a particular value in MessageProperties,then its properties,its child message. If its child message have the same value in MessageProperties,then it shows that. Likewise it should give me a tree structure with its all properties.
    When I am hardcode the value then its shows fine.
    SELECT Message.MESSAGE_ID,
    Message.MSG_CONTENT_ID,
    FROM MESSAGE Message, MESSAGE_PROP MessageProp
    WHERE (MessageProp.Message_Id=Message.Message_Id) AND ((MessageProp.Key='From' OR MessageProp.Key='To') AND (MessageProp.value='B'))
    But when I use the Bind variable in view criteria then I am not able to achieve this.
    1. How to do that in adf bc and how to link message and messageprop with this condition?
    2. How to pass two parameters in serviceinterface FIndViewCriteria method i.e. messageId and value so that it will show only that message having that value?

    Thanks Timo,
    It helps me a little bit.
    It only shows me the parent message id and its properties. But it is not showing its child message id and its properties.
    Let me explain you step by step what I have done.
    1> I have created a view MessageView with two entities i.e Message and MessageProp and include the value attribute of MessageProp in it.
    2> I have created the default MessagePropView from MessageProp Entity.
    3> In MessageView I have modified the query which you have given.
    4> I have created the Bind variables.
    5> I have created a view criteria and in that view criteria I have included Message_Id=:Bind_MessageId and Value=:Bind_Value.
    6> I have created an association connecting Message.Message_Id and Message.Parent_Id(1 to * cardinality) because a message can be a parent of many messages.
    7> I have created a viewlink between Message and MessageProp using Message_Id.
    8> I have created a view link between Message and Message using the association which I have created in step 6.
    9> I have created the Application Module. In that,my Data Model looks like
    ---MessagePropView2
    ---MessageView1
    ---------MessagePropView1
    ---------MessageView2
    10> Then I have created the service interface. In service interface view instances,I include these two view and select the GetByKey operation from basic operations.
    11> From View Criteria find operations I have included the view criteria which I have created in message view in step 5.
    12> Then I run the AppModuleServiceImpl.java and select the view criteria operation which I have created in step 11.
    13> There I find two bind variables i.e. Bind_MessageId and Bind_Value. I give the values there.
    But it checks whether that message Id(Bind_MessageId) which I have given have that value(Bind_Value) or not. If it has then it shows only that message along with its properties but it is not showing me its childs and their properties.
    I want to show only those child message who have the MessageProp.value as (Bind_Value).
    I hope you understand with the scenario.
    I'll be very thankfull to you if you help me to do this.
    Rohit.

  • View link in ADF

    Hi,
    I have created a view link. It works fine when I test it through application module, but when I select the view link node under related view object and look at the different options available in the dropdown list "Drop As:", I can't see anything. It is supposed to be something like Master Detail (Many to Many), but what I see is all blank in the dropdown list and I can't use it in the jsp page to create a master detail functionality.
    Thanks,
    Setare

    yes that's the view object for the master.
    Suppose you create a default business component on the Dept and Emp tables from the Scott schema.
    In the Data Controller Palette you'll see a DeptView1 and if you expand it after the fieilds from the dept table you'll see the Empview table.
    check out this image to see how it looks like:
    http://otn.oracle.com/products/jdev/collateral/tutorials/9050/images/datacontrol.jpg
    (that's from the UIX tutorial).

  • Af:tree Using View Links

    Hi
    I have created two af:tree components. Based on similar conditions but on different database tables.
    I have no issues in displaying one tree. I am able to expand the tree and go to second level and so on.
    But for my second tree component when i try to expand the top most level, I am not seeing any values.
    I have enabled debug logs in my JDev to see the query that gets run and found out that the bind variable is getting a junk value.
    The bind variable should typically get the id of the value that i am trying to expand. I am able to see values correctly being passed in my earlier tree (the one that is working fine).
    I have tried to compare both the VOs and View links and could not find any.
    Please help me in resolving this issue.
    Thanks
    Kamal

    Hi Frank
    Sorry for not being clear.
    Let me explain my issue clearly.
    I have a table with columns and values as below:
    LEVEL_ID | FILTER | CODE1 | CODE2
    1     | | A     | B
    2     | A | A1 | A2
    2     | B | B1 | B2
    I want the above table to be shown as below tree structure
    A
    |__A1
    |__A2
    B
    |__B1
    |__B2
    For this implementation, i created a View object that returns all the codes at level_id 1 (VO1) and a View Object that returns all the codes at level_id 2(VO2).
    I have a view link between these two where i bind the CODE1 of VO1 to FILTER of VO2. VO1 is the parent and VO2 is the child.
    Using VO1 i have created the tree (drag and drop) and in the edit tree binding dialog box i have added the rules appropriately.
    When i run my page, with debug logs enabled, I can see the A,B values coming properly in the UI. But, when i try to expand any of them, I do not see the A1,A2 or B1,B2 values.
    In the debug logs, I can see a junk value being passed when i try to expand rather than 'A' or 'B'.
    I have done a similar implementation with another tree component and it works fine as i can see proper values in the debug logs.
    I do not understand why the junk values are passed.
    Hope this explanation gives a clear idea about my issue.
    I am currently using JDev 11.1.1.3 version.
    Thank you
    Kamal

  • Can i use post-gre with ADF -BC ?

    Hie
    I do have postgre database with me.. and can i use ADF-BC with it?
    Vik

    We haven't tested ADF BC with Postgres.
    Try using Toplink or JPA.
    Or get the free Oracle XE database.

Maybe you are looking for