Retrieve and update using 2 webservices in ADF

Hello,
We are trying to build an application using ADF and struts with jDeveloper 10.1.2.20. We use webservices to go between the model and view layers.
We have for instance a webservice to retrieve data using 1 parameter, and another different webservice to update a tablerow.
We can get a JSP page to show us the data using the first webservice. (Build a Datapage, called from a DataAction to fill the parameter).
And we can build another JSP page to update a row using the second webservice. (Build a Datapage, create a new DataControl to select the appropriate fields and send them to a DataAction by using an event with ${bindings.MyDataControl_Iter.currentRow.dataProvider})
Both pages are built by implementing tutorials and examples from the Oracle page and forum.
The problem is, that we cannot get our application to do both. Get the data from the first webservice and show it, then alter some of the values and submit it to the second webservice to update the table.
Does anybody know anything about this problem and have a solution? Maybe in the form of an example.
Kind regards,

Hello Shay,
unfortunately changing the NDValue (of one NamedData in myDataWrite MethodAction) is not working for me, although I tried it with a lot of values: constants, values from the binding of the reader service and values from a (session-scope) backing bean. However, the input field always remains empty :(
Here is my pagedef:
<?xml version="1.0" encoding="UTF-8" ?>
<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
version="10.1.3.41.57" id="myDataPageDef"
Package="viewcontroller.pageDefs">
<parameters/>
<executables>
<variableIterator id="variables">
<variable Type="java.lang.String" Name="myDataWrite_myData_ParameterOne"
IsQueriable="false"/>
<variable Type="java.lang.String" Name="myDataWrite_myData_ParameterTwo"
IsQueriable="false"/>
</variableIterator>
<methodIterator id="myDataIter" Binds="myData.result" DataControl="myDC"
RangeSize="10" BeanClass="myDC.myData"/>
<accessorIterator id="resultIterator" RangeSize="10" Binds="result"
DataControl="myDC" BeanClass="myDC.myData.result"
MasterBinding="myDataIter"/>
</executables>
<bindings>
<methodAction id="myData" InstanceName="myDC" DataControl="myDC"
MethodName="myData" RequiresUpdateModel="true" Action="999"
IsViewObjectMethod="false"
ReturnName="myDC.methodResults.myDC_myData_result">
<NamedData NDName="dataId"
NDValue="${backing_session.currentDataId}"
NDType="java.lang.String"/>
</methodAction>
<attributeValues id="ParameterOne" IterBinding="resultIterator">
<AttrNames>
<Item Value="ParameterOne"/>
</AttrNames>
</attributeValues>
<attributeValues id="ParameterTwo" IterBinding="resultIterator">
<AttrNames>
<Item Value="ParameterTwo"/>
</AttrNames>
<methodAction id="myDataWrite" MethodName="myDataWrite" RequiresUpdateModel="true"
Action="999" IsViewObjectMethod="false" DataControl="myDC"
InstanceName="myDC"
ReturnName="myDC.methodResults.myDC_myDataWrite_result">
<NamedData NDName="myData_ParameterOne" NDType="java.lang.String"
NDValue="${bindings.myDataWrite_myData_ParameterOne"/>
<NamedData NDName="myData_ParameterTwo" NDType="java.lang.String"
NDValue="${bindings.myDataWrite_myData_ParameterTwo"/>
</methodAction>
<attributeValues id="myData_ParameterOne" IterBinding="variables">
<AttrNames>
<Item Value="myDataWrite_myData_ParameterOne"/>
</AttrNames>
</attributeValues>
<attributeValues id="myData_ParameterTwo" IterBinding="variables">
<AttrNames>
<Item Value="myDataWrite_myData_ParameterTwo"/>
</AttrNames>
</attributeValues>
</bindings>
</pageDefinition>
(BTW, I'm not sure what is the correct EL expression to reference myData method's ParameterOne and ParameterTwo output.)
Can you explain me how to make this work?
It would be great to avoid unnecessary and complex coding in the backing beans.
Thanks,
Patrik

Similar Messages

  • Retrieve and update dynamic data

    Dear
    Please advise if ECM provides the ability to retrieve and update dynamic data on demand to ensure the user’s content is current
    Thanks
    M.E.
    Edited by: user803214 on Jan 31, 2011 5:34 AM

    The Question is quite vague. Very hard to answer a question when you do not know what they are asking.
    As to automatic indexing and updates of data to files and the impact of indexing:
    A file checked into UCM server is indexed based upon the system setting. A server could be set to DATABASE.METADATA indexing or some kind of full text indexing. Either way if a file is checked into the Content Server the file gets indexed. If any metadata is changed by a later update the index is indeed updated automatically. If the file in a full text indexed system has a set of text edited or a totally different file is checked in the index is updated automatically also.

  • File download and Upload using SOAP in Oracle ADF

    Hi Gurus,
    I have a requirement of Uploading and downloading a file on a location. It is for uploading and downloading an Attachments for a user. I have a table in my jspx page for showing the current attachments and an option to upload a new attachment. When I click on attachment name, the file should be downloaded.
    The current implementation does this using SOAP web service. Now, i need to do it with ADF now.
    For Uploading and downloading, i have used FileDownloadActionListner on my page. I am not able to figure out how to use SOAP service in ADF to download or upload a file. what i have done is
    1. Create WebService Data Control with the exposed wsdl.
    2. Created .jspx page and binded the fuctions to the button.
    3. In managed bean class, i have written code to get reference to that web service and invoke it. I am assuming of making the currect call as the response object is not coming as null.
    Now i need to know:
    1. How to verify for the success response from a SOAP web service in the managed bean code.
    2. how to go ahead with the implementation.
    For Upload: I have filename, content and mimetype in the managed bean code function. but how to use those to make a soap call and upload a file at the location.
    For Download: I have DocumentId in the managed bean code function, and how to use it to download a file. How to get the SOAP response in managed bean code and how to handle it.
    Thanks in Advance,
    regards,
    Rajan

    Hi,
    don't have an example, but I suggest to use a JAX-WS proxy client and access it from the POJO DC (instead the WS DC) so you have access to the service responses
    Frank

  • Decline and update using SCCM 2012

    On WSUS you can search and update and then decline not required updates.
    There is a way to Decline updates using the Software Update Rol on SCCM 2012?
    I need to hide some unnecesary updates from the SCCM-SoftwareUpdate view, and I can't do it by using the filtering options that comes with this view.
    Any ideas?
    Thank you for your help.

    No. There is explicit way to decline an update and no real reason to either. If you need to, you can create a sub-folder under the All Update node and move the un-wanted updates there.
    Jason | http://blog.configmgrftw.com

  • Is it possible for FM V8 files to be saved so they can be opened and updated using FM V6.0?

    Is there any way of saving a FM V8.0 file so it can be opened and updated by a user still running FM V6.0?
    Many thanks.

    As for code mapping, there is a encode/decode package for the Perl scripting language which permits converting to/from unicode to nearly all codepages which have been in use on PC systems for the last some 20 years.
    With a little script it should be possible to reliable transform the text portions of a MIF file.
    If necessary, I'd be able to write such a script for a moderate fee.
    Helge

  • Using eclipse Web services to retrieve and update data to Oracle DB

    Hi,
    Can I have a sample about to use eclipse to retrieve/update data from Oracle DB by using axis web services?
    thank you

    Hi,
    If you have a sheet in Excel with data from a SharePoint Online list you can switch to the PowerPivot ribbon and ask to add it to the model. This will allow you to reference this table when you create a PowerView report.
    This workbook, with the Odata feed can then be refreshed via the scheduled refresh feature of Power BI Site.
    Insert the data using the Odata feed
    The Odata URL will be something like:
    https://MyCompany.sharepoint.com/MySite/MySubSite/_vti_bin/listdata.svc/MyList
    If you are not sure what is the list name, you can drop just browse to
    https://MyCompany.sharepoint.com/MySite/MySubSite/_vti_bin/listdata.svc and this will provide a list of all the lists in that site/sub-site.
    Once you have those in the model and you setup scheduled refresh, it will refresh the lists directly from SPO (using the owner identity)
    Hope this helps.
    Guy
    GALROY

  • Retrieve and update multiple records in servlet?

    Hi,
    I am trying to retrieve all the records from a dept table and then display the fields in multiple record format. I have stored the fields in a vector and display them in html format by using out.println in servlet. The problem how to let user update those fields or insert new record?
    Please help.
    Vector l_dept = new Vector();
    Vector l_deptitem = new Vector();
    while ( rsc1.next() )
         l_dept.addElement(String.valueOf(rsc1.getInt(1)));
         Object row[] = new Object[3];
         row[1] = rsc1.getString(2);
         row[2] = rsc1.getString(3);
         row[0] = new Boolean(!rsc1.wasNull());
         l_deptitem.addElement(row);
    rsc1.close();
    //Preparing the HTML page to display the list of dept.
    // Uses the servlet output stream object to send HTML page to client browser.
    out.println("<HTML>");
    out.println("<HEAD><TITLE> DEPT </TITLE> </HEAD> ");
    out.println(" <BODY> ");
    out.println(" <FONT SIZE=6 COLOR=teal> <CENTER> DEPT </CENTER> </FONT> ");
    out.println(" <FORM METHOD=POST>" );
    out.println("<TABLE>");
    for ( int i=0; i < l_deptitem.size(); i++)
    Object[] row = (Object[]) l_deptitem.elementAt(i);
    Object k = row[0];
    Object k2 = row[2];
    Object k1 = row[1];
         l_deptitem.setElementAt( row , i );
         out.println ("<TR><TD>" l_dept.elementAt(i) "</TD><TD>" k1 "</TD><TD>"+k2+"</TD></TR>");
    out.println("</TABLE></FORM");
    thanks
    andrew

    do you have a sample code? thanks
    Hi
    There are several options. One of them could be
    1) use <input name=rc[j] value="..."> instead of
    display a raw text
    2) parse parameters in doPost method of your servlet
    to update appropriate values.
    3) Make a empty row enable inserts
    Regards
    Jan

  • Insertion using objects and update using queries in a single unit of work

    HI All,
    I have a set of objects that i want to insert and then perform some update queries ( direct queries ) on the inserted data in the same transaction. but when i register the objects and execute the update SQL's on the same data in a same unit of work, the update statements are executed first and then the inserts are happening, I've also tried with child unit of work and parent unit of work but the result is the same.
    Can any one suggest a way to do object insertion and sql updates in a single transaction, Thanks in advance
    Regards,
    Sai Krishna

    The UnitOfWork is an abstraction for the physical database query. By default nothing is actually written into the database until the UnitOfWork commits. This means making updates to new objects involves modifying them in-memory and then the updated values will be included in the INSERT during commit.
    If you are having difficulty finding the newly created objects you can enable the query conforming capabilities to have modified and new objects included in query comparisons without requiring them to first be written to the database.
    Doug

  • IPhone told me I needed to restore and update, also said the phone did not have an IMEI number. I tried to restore from iTunes but keep getting an error message.

    Ok I need help. I went to use my phone, put in my passcode, emergency dial came up, then the phone said I didn't have an imei #. I hit the back button and then I was told I needed to restore and update using iTunes. I tried several times to do this and my phone is still not working. It acts like it's updating, but once the bar reaches the other side of my phone, iTunes tells me there was an error. I used all the ports on my pc, changed cables, restarted my pc, and still nothing. Can anyone please help me. This phone is my life and I can't afford to get another one.

    Sounds like you might need to take it to an Apple Store but if it is an iPhone 3G it would no longer be under warranty.
    Looking at the Apple Store online you can get an iPhone 3GS from $49 on AT&T if it comes to having to get a new one. Your other option is second hand.

  • Inserting and updating a BLOB field

    Friends I want my application (Oracle is the backend) to look for a character in a BLOB field and then replace it with the desired character.
    Can some one give me some example of retrieving and updating a BLOB field

    Examples are in Oracle Technet: http://otn.oracle.com/
    In this forum I saw also some examples and in your local Oracle Client Installation you find under $ORACLE_HOME$/jdbc/demo/ examples.
    reagrds Dietmar

  • How to use a single page for create and update mode.

    Hi,
    I need to develop a single page to be used for both create and update modes.
    I am going to use a variable MODE
    and i will set this in the emp summary page.
    Based on the button clicked by the user i have to render the JSF page.
    For tis if the user selects a perticular and cliks on update thn i will pass the empno to the next.
    so there in the next i will appy a ViewCreiteria on my View Obj to fetch only that row so that only that emp will be displayed ion update mode.
    This is working fione for me.
    So now the issue is
    when the user clicks on CreatEmp button.
    i need to enable my VO for insert operations.
    for this i wrote the code like this in the beforePhase event
    FacesContext ctx = FacesContext.getCurrentInstance();
    ValueBinding valBinding = ctx.getApplication().createValueBinding("#{data}");
    BindingContext bContext = (BindingContext) valBinding.getValue(ctx);
    DCDataControl dcControl = bContext.findDataControl("DataControl");
    Application app = ctx.getApplication();
    ApplicationModule am = (ApplicationModule) dcControl.getDataProvider();
    System.out.println("After Appmodule initiation");
    // get the VO reference and initiate the query
    System.out.println("Before Page VO initiation");
    PrismDmPageSectionViewImpl vo = (ViewImpl)am.findViewObject("View");
    //ViewRowImpl row = (ViewRowImpl) vo.createRow();
    /* TO CREATE AN EMPTY ROW*/
    Row row=vo.createRow();
    System.out.println("New Row is created");
    //vo.createKey(row);
    vo.insertRow(row);
    vo.setCurrentRow(row);
    By doing this a new empty page is rendered.
    But when i fill up the values and click on ok.. i am getting the error like this..
    JBO-27023: Failed to validate all rows in a transaction.
    JBO-27027: Missing mandatory attributes for a row with key null of type View3
    JBO-27014: Attribute Id in View3 is required
    JBO-27014: Attribute PageeId in View3 is required
    Please point me out where i am missing.
    Thanks

    Hi,
    In my opinion you are over complicating things.
    This is what I do for using the sme page as both create and update without all this code.
    1) Create a browse page containing a an adf table with a select one component bound to your view object.
    2) Create an additional edit page containing only an edit form containing fields of your view object that your users must enter in order to add or edit rows.
    3) Link the pages in the JSF diagram with an "edit" navigation case from browse to edit page and a "return" navigation case from edit to browse (make sure that redirect option is NOT set on both cases)
    4) Remove the submit button from the edit page and add two application module bindings for the commit and rollback operations as command buttons in the form footer facet. Make sure that both buttons has an action of return and that their disabled property is set to false. You will probably change their labels to ok and cancel respectively.
    5) Drop a create action for your view object from the data control palette inside your page as a command button and set the action property to edit also.
    3) Set the action property of the view button to edit
    This should basically work without any code from your part. -- at least it does so for me -- if you like to make it a bit more funcy you may add am action listener inside your buttons and set a requeScope variable for example #{requestScope.editing} to true or false depending on the button clicked. Then add a title to your page with a value like #{requestScope.editing == true ? 'Editing record' : 'Adding a new record'}..
    Hope that helps.
    Thanassis

  • How to retrieve and then update a field in a dynamic page?

    I use the dynamic page to retrieve a text field from db table, now I want to update it and save back into the database. The first part(retrieve and display) works fine. But when I put update the table codes inside another oracle tag,it gives me a page not found error. Can you operate on the same database field more than once in a dynamic page?

    The purpose is to automatically calculate the transport freight  as a percentage of the net amount of the sales order. We are able to retrieve this field even if the sales order has not been posted yet with this formatted search:
    Select $[$22.0.0]
    Our doubt is that this field is affected also by the item of the expenses that we are going to calculate, this is the reason why we are trying to calculate the line total of each row and in the formatted search exclude the item that have a certain code (i.e. transport freight), in this way we are sure that we are calculating the percentage of  the net amount of the goods without the freight.
    Thank you for the support.
    Fedora

  • Connecting to datasource and retrieve, insert and update data in SQL Server

    hi,
    i am trying to retrieve, insert and update data from SQL Server 2000 and display in JSPDynPage and is for Portal Application. I have already created datasource in visual composer. Is there any sample codes for mi to use it as reference???
    Thanks
    Regards,
    shixuan

    Hi,
    See this link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6209b52e-0401-0010-6a9f-d40ec3a09424
    Regards,
    Senthil kumar K.

  • Connecting to datasource and retrieve, insert and update data

    hi,
    i am doing a JSP page that need to retrieve data and display on textView, insert data and update data. I have already create a datasource in Visual Composer. Does anyone have a sample codes for mi to use it as reference. So that i can connect to the datasource tat i created in Visual composer and retrieve, insert and update data. thanz
    Regards,
    shixuan

    Hi,
    After creating a data source in Visual composer .
    you have to create a BI system that Visual Composer can use in
    the SAP NetWeaver Portal.
    refer this pdf file for further Info
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6209b52e-0401-0010-6a9f-d40ec3a09424
    Regards,
    Beevin

  • Using SAML secured webservice in ADF Application

    I am looking for some tutorial/docs to use SAML secured webservice in ADF application. In my adf application, I am using the webservices using WebProxy and WebServiceDataControls.
    Any pointers in this direction will be helpful.
    Thanks,
    Rajdeep

    Take a look at the following blog posts - which provides some information regarding the SAML security in ADF
    http://biemond.blogspot.com/2009/05/sso-with-saml-adf-security.html
    http://biemond.blogspot.com/2009/05/sso-with-weblogic-103-and-saml.html
    Thanks,
    Navaneeth

Maybe you are looking for

  • Is it possible to sort a 2CD compilation album where each CD has a different "album artist" together as one album in iTunes?

    I have an album which I am trying to sort correctly in iTunes. It has 2CDs of tracks by various artists, it is set up as a 'compilation' and I have 'album artist' set up.  As far as I can see all the settings are correct, however CD1 is a compilation

  • Change color on activity in calendar

    Hi experts. We would change the color of the activity displayed on the calendar in WEB-UI, checking the status. I tried to change the color via BSP on component CRM_CALENDAR/Calendar  method RETRIEVE_APPOINTMENTS, which have the attribute COLOR but i

  • Creating user accounts programmatically

    Hi, We would like to perform few activities programmatically in Azure as follows: 1) Like to know the approach or APIs available to create the user accounts programmatically 2) Also would like to know how to access the pricing model of the Azure clou

  • [SOLVED] Skype, robotic voice

    Hello, I am using pulseaudio and everything is fine with my microphone in every app except skype. In skype my voice is robotic and I can't figure out why this is happening. I tried to google it but couldn't find any solution. Last edited by gromak94

  • Help with FM Transmitter

    I purchased the Griffin RoadTrip, and cannot get it to play in my car. I did a safe reset like the manual said, and it still does not work. It is connecting and powered on, but their is no sound. Any suggestions?