BC Implementations in Data Actions

Hi there,
I have a UIX 2.2.8, Struts, BC4J project. There are custom base classes for all the business objects. In data actions view objects and application modules appear as instances of WSObjectImpl. The method getImplObject usually returns the client implementation (e.g. an subclass of oracle.jbo.client.remote.ApplicationModuleImpl). However the project is deployed in local mode. So how do I get access to business components derived from the custom base classes and not only client objects?
Can someone help?
Regards,
Jan

Hi,
Please check if cookings are enabled on your browser.
This error occurs when cookies are disabled in the browser. SharePoint assumes that cookies are enabled and doesn’t explicitly checks for it. 
http://community.office365.com/en-us/f/154/t/168463.aspx
vThis error occurs when cookies are disabled in the browser. SharePoint assumes that cookies are enabled and doesn’t explicitly checks for it. 
vThis error occurs when cookies are disabled in the browser. SharePoint assumes that cookies are enabled and doesn’t explicitly checks for it. 
Please remember to click 'Mark as Answer' on the answer if it helps you

Similar Messages

  • Best Practice for Package Implementation of Data Manipulation

    Hi,
    Would like to ask which is better implementation for data manipulation (insert, update, delete) stored procedure for a single table.
    To create a single procedure with input parameter for the action such as 1 for insert, 2 for update and so on
    or
    to create separate procedures for each like procedure pInsData for insert, pUpdData for update...

    Hi,
    Whenever you create a procedure it resides as a seperate object in database.
    In my opinion its better to create a single procedure which takes care of all DML concern to a table, rather than creating different procedures for each DML.
    If your number of DML are more and interrelated then its better to create a package and put all related DML procedures in the package concern to one transaction or table. This is because whenever you will call a package entire package will be placed in the memory for a particular session. So if you create different procedures for DML then you need to call the procedures each time you want it to be executed.
    Twinkle

  • How to display values after doing some business logic in data action

    hi guys i got the same problem but iam unable to display the values..in my display page when iam trying to do some business logic in my data action class..
    can u guys help me out
    iam pasting my code which iam working here
    my struts-config.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
    <struts-config>
    <form-beans>
    <form-bean name="DataForm" type="oracle.adf.controller.struts.forms.BindingContainerActionForm"/>
    </form-beans>
    <action-mappings>
    <action path="/inputform" className="oracle.adf.controller.struts.actions.DataActionMapping" type="oracle.adf.controller.struts.actions.DataForwardAction" name="DataForm" parameter="/inputform.uix">
    <set-property property="modelReference" value="inputformUIModel"/>
    <forward name="success" path="/inputAction.do"/>
    </action>
    <action path="/inputAction" className="oracle.adf.controller.struts.actions.DataActionMapping" type="order.view.InputAction" name="DataForm">
    <set-property property="modelReference" value="displaypageUIModel"/>
    <forward name="success" path="/displaypage.do"/>
    </action>
    <action path="/displaypage" className="oracle.adf.controller.struts.actions.DataActionMapping" type="oracle.adf.controller.struts.actions.DataForwardAction" name="DataForm" parameter="/displaypage.uix">
    <set-property property="modelReference" value="displaypageUIModel"/>
    </action>
    </action-mappings>
    <message-resources parameter="order.view.ApplicationResources"/>
    </struts-config>
    my input form uix
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40"
    expressionLanguage="el">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title=""/>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <form name="form0" method="post">
    <contents>
    <messageTextInput model="${bindings.password}" text="username"/>
    <messageTextInput model="${bindings.username}" text="password"/>
    <submitButton text="submit" event="success" destination="inputAction.do"/>
    </contents>
    </form>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    </handlers>
    </page>
    my display uix
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40"
    expressionLanguage="el">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <!-- Add DataProviders (<data> elements) here -->
    </provider>
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title=""/>
    </metaContainer>
    <contents>
    <body>
    <contents>
    <form name="form0">
    <contents>
    <messageStyledText model="${bindings.password}" prompt="Prompt 0"/>
    <messageStyledText model="${bindings.username}" prompt="Prompt 1"/>
    </contents>
    </form>
    </contents>
    </body>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    </handlers>
    </page>
    my model bean
    package order.model;
    public class TestBean
    private String username;
    private String password;
    public TestBean()
    public String getUsername()
    return username;
    public void setUsername(String username)
    this.username=username;
    System.out.println("the username after actions class:"+username);
    public String getPassword()
    return password;
    public void setPassword(String password)
    this.password=password;
    my data Action class
    package order.view;
    import oracle.adf.controller.struts.actions.DataAction;
    import oracle.adf.controller.struts.actions.DataActionContext;
    import oracle.jbo.uicli.binding.JUCtrlActionBinding;
    import oracle.jbo.uicli.binding.JUCtrlAttrsBinding;
    import order.model.TestBean;
    import org.apache.struts.action.ActionMapping;
    import org.apache.struts.action.ActionForward;
    public class InputAction extends DataAction
    * Delegate to the Struts page lifecycle implementation
    * {@link StrutsJspLifecycle#findForward findForward}
    * @param actionContext the lifecycle context for the DataAction
    * @throws Exception
    protected void findForward(DataActionContext actionContext) throws Exception
    // TODO: Override this oracle.adf.controller.struts.actions.DataAction method
    //super.findForward(actionContext);
    TestBean testbean=new TestBean();
    System.out.println("this is action form"+actionContext.getActionForm());
    String username=(String)((JUCtrlAttrsBinding)actionContext.getBindingContainer().findCtrlBinding("username")).getInputValue();
    System.out.println("this is username"+username);
    String username1=username+"hye wats up";
    testbean.setUsername(username1);
    ActionForward forward=actionContext.getActionForward();
    ActionMapping mapping =actionContext.getActionMapping();
    System.out.println("this is mapping"+mapping);
    mapping.findForward("success");
    // To handle an event named "yourname" add a method:
    // public void onYourname(DataActionContext ctx)
    // To override a method of the lifecycle, go to
    // the main menu "Tools/Override Methods...".
    check this out iam unable to display in my display page so help me out if any one can

    No, in this case, I'm using standard JSP with ADF and struts validator.
    If I don't use struts validator and there are errors (such as putting a string into a number which produces a jbo-25009), the list value will be retained.
    When using the validator, it appears that it is NOT retained.
    I've written some code to attempt to set the list element back, which "looks like" it's working right now.
    There's still a problem with the second scenario:
    1. user clicks checkbox and hits [submit]
    2. get's error - you have to enter 5 address items
    3. User wants to backout, so he unchecks the box and resubmits
    4. The box redisplays as "checked"
    SO, at that point, I thought... can't I use YOUR EXAMPLE on how to handle a checkbox.
    I place some code in the reset method of the form to perform this:
    map.put("AddressChangeFlag", (String) "" );
    (that is, I've detected via the request that this flag is null), so I'm trying to make sure it retains it!
    I do that and it runs into a problem during the processUpdateModel aT:
    BindingContainerValidationForm updateForm= (BindingContainerValidationForm) actionContext.getActionForm();
    //Get the binding for our particular column JUCtrlAttrsBinding checkBoxBinding = (JUCtrlAttrsBinding)updateForm.get("AddressChangeFlag");
    call, with an error:
    JBO-29000: Unexpected exception caught: java.lang.ClassCastException, msg=java.lang.String
    java.lang.String
    The value for updateForm.get("AddressChangeFlag") is "", which I'm assuming means the form field is no longer in the request object??
    I'm lost at this point, and have been working on it for more than 1 day.
    Thanks for responding though, and I await feedback ;)

  • Using ADF View object create method in Data Action

    I need to know how to create a new row in an application module method and get the attributes from the ADF input form.
    If i Drag drop the create method in the data action form it is working fine. But how to do this programmatically, I have a need where i need to execute a query on another view object and set the create method.
    Thanks.

    Steven:
    (My application does not need to show all records and provide Edit/ Remove buttons at row level, navgational buttons and Create button for inserting new record. Instead, I would just open a blank record for entry, and commit)
    As per your post, I followed the following steps (action class) to insert blank record:
    DCBindingContainer bindings = actionContext.getBindingContainer();
    DCControlBinding binding = bindings.findCtrlBinding("Id");
    Row row = binding.getRowIterator().createRow();
    row.setNewRowState(row.STATUS_INITIALIZED);
    RowSetIterator rs =(RowSetIterator)
    binding.getRowIterator();
    rs.insertRow(row);
    End Results: It works fine and a new blank record is created. The only problem is <html:errors/> in JSP throws error for the first time. I do not want to elliminate error object from JSP.
    Please help!
    Thanks in advance

  • WLI 7.0 Question about Set Task due date action

    Hi,
    I am trying to manage time out issue efficiently and, as described in the
    WLI documentation, the
    timeout has to be design with a dedicated path with, as the first task, a
    set task due date action.
    I was wondering about the timeout of this task due date...
    How can I stop this action before the end of the 'due date' without deleting
    the instance associated to my workflow ?
    Do you have any advice ?
    Thanks
    Alexandre

    HI,
    Customizing the Task List
    You can customize the column headers or search for required tasks by clicking on Customize Table Header. The option allows you to specify the columns to be showed in the list table, to provide the sorting order, and to set the page size. The sorting order could be complex with option to provide multiple columns for sorting and the order (ascending/descending) for each of them.
    To create a custom query and search for tasks:
    1.In the Task List page, click Customize Table Header.
    In the Construct a Custom Query form, specify the search criteria by specifying any of the following values.
    2.Enter the task name. You can use the * character at the start or the end of the name.
    3.Enter the task ID. Separate multiple values using comma.
    4.Select the check box against the Administration and Working state of the task.
    5.Enter any comment. You can use regular expression.
    6.Enter the priority range.
    7.Enter the Assignee, Owner, or Claimant names.
    8.Specify the completion due date range.
    9.If required, select the Include tasks with no completion due date check box.
    10.Click Apply.
    All tasks that match the specified criteria are displayed in the Task List page.
    To customize the table header:
    1.In the Task List page, click Customize Table Header. The Construct a Custom Query form appears.
    2.In the View form, select the columns that you want to view in the Task List page.
    3.Select the Preserve Search Criteria check box to retain these details for the current session.
    4.Select the maximum number of search results that should be displayed on the page.
    5.Select the number of rows that should be displayed in the page.
    6.Click Apply.
    The view in the Task List page is updated based on the current settings.
    Using this option you can set the completion due date
    Hope this information will help you solve the issue.
    Regards,
    Kal.

  • How to implement a Date Picker (Calendar) as a LOV in Portal Form?

    I have a form, which will input date from user, and I also have javascript calender.
    How to implement a Date Picker (Calendar) as a LOV in Portal Form? Do I need to choose POPUP and LOV for Date?
    Instead of typing the Date within a Portal form, a popup Calender that will allow user to Pick a date.
    Please help anyone!!

    Once you have the JavaScript and have added it to your form, you need to the the following. First off, you need to be able to customize the HTML code for the form (i.e. choose custom for form type when creating the form). Once you do that go into the custom layout to customize your HTML code. Find the field you want to add the date picker to. It will be <#your_field_name.ITEM#>
    Paste this code after it:
    <a href="javascript:show_calendar('forms[0.elements[16');" onmouseover="window.status='Date Picker';return true;" onmouseout="window.status='';return true;"><img src="the source of your image file" width=34 height=21 border=0></a></TD>
    You will have to play around with the forms[0].elements[16]. 16 is what date field is set to. However your will differ, so just play with it.
    Hope this helps.
    Martin

  • KNOWN BUG????  data action changing to data page when reload of JDev

    Hi All,
    i'm using jdev 10.1.2, adf bc's, struts, jsp's.
    I have a data action on my struts page which is bound to a method in the app module. I created a class for this data action which overrides the initialMethodParameters() method and gets the arguments for the method in the app module.
    it all works perfectly fine, until i shut down JDev and load it up again. The data action has now turned into a data page. if i dbl click on it i get the create page dialog, instead of the data action class. obviously when i try run this data action, i get cannot display this page error.
    I'm assuming/hoping that this is a bug. can anyone shed any light??
    Thanks in advance,
    Liz

    Hi,
    did you open this in the same version of JDeveloper 10.1.2? I remember that there was a change in Struts between JDeveloper versions
    Frank

  • Data Action is converting in to data page with  parameter="unknown"

    Hi,
    I have created one DataAction, and drag a method from appmoduleImpl on to the created data action. that method contains one parameter as well.
    Now i want to write code in findForward() method on that action class (from gotoCode menu item). After all, if i rebuild it, it is changing to data page from data action with parameter="unknown" and giving me error. In page flow diagram also its showing data page image with Yellow coloured exclamatory mark on it.
    Anybody have any idea ???

    This is the resultant entry in struts config.xml :
    <action path="/editpage" className="oracle.adf.controller.struts.actions.DataActionMapping" type="com.abc.de.testAction" name="DataForm" parameter="unknown">
    <set-property property="modelReference" value="editpageUIModel"/>
    <set-property property="methodName" value="editpageUIModel.getFirstPageDetailsFromId"/>
    <set-property property="resultLocation" value="${requestScope.methodResult}"/>
    <set-property property="numParams" value="1"/>
    <set-property property="paramNames[0]" value="${param.Id}"/>
    <forward name="success" path/firstpage.do"/>
    </action>

  • Implementing generic data migrator

    Hi, I am planning to implement a data migrator in Java which migrate data from one DB to another. It’s not going to dump tables as it is. Source will have some different structure and destination will have different structure. I want to fix destination tables structure and expose some configuration by which I can map source table’s columns.
    Please give me an idea or references to impalement this.
    Edited by: cahvarahul on Mar 25, 2010 11:43 PM

    cahvarahul wrote:
    Hi, I am planning to implement a data migrator in Java which migrate data from one DB to another. It&#146;s not going to dump tables as it is. Source will have some different structure and destination will have different structure. I want to fix destination tables structure and expose some configuration by which I can map source table&#146;s columns.
    Please give me an idea or references to impalement this.
    As noted implicitly a lot of work. Presumably this is a one shot.
    There are commecial products that I believe claim they help with this.
    What do you mean "fix destination tables"? Best I can guess that is a different task.
    What do you mean by "expose some configuration by which I can map source table&#146;s columns"? As noted that isn't going to be a good idea to allow a novice user to use a tool like that and pointless for someone with enough experience to do it correctly.

  • BUG? Data Action on Struts changing to Data page when i reload Jdev????

    Hi All,
    i'm using jdev 10.1.2, adf bc's, struts, jsp's.
    I have a data action on my struts page which is bound to a method in the app module. I created a class for this data action which overrides the initialMethodParameters() method and gets the arguments for the method in the app module.
    it all works perfectly fine, until i come into work the next day, load up JDev and the data action has now turned into a data page. if i dbl click on it i get the create page dialog, instead of the data action class. obviously when i try run this data action, i get cannot display this page error.
    I'm assuming/hoping that this is a bug. can anyone shed any light??
    Thanks in advance,
    Liz

    Hi,
    did you open this in the same version of JDeveloper 10.1.2? I remember that there was a change in Struts between JDeveloper versions
    Frank

  • Add a Data Action to Execute a Method - Problem

    Hi,
    I'm working with JDeveloper 10.1.3 - JSP,Struts and ADF BC.
    I have a method that retruns 2 values (audit(Number,Number)) and exposed the Service Metod, but now I need to add a Data Action to Execute that method.
    I already add an Data Action icon to my Page Flow Diagram but what do I need to do next?
    Can anyone help me? Any ideias?
    Thanks,
    Micaela

    Hi Shay,
    I have one problem because how can I create a JSP Page to display Method Results in JDeveloper10.1.3???
    I already created another page and tried to Drag and Drop my Method from Data Control Palette, but I only have the choice to create a button and I would like to see the result.
    Adding a c:out tag to the JSP page.
    Can you help me with this problem??
    Thanks,
    Micaela

  • Implementing active data service proxy for MySQL database

    Hi,
    I am referring "Oracle Fusion Developer Guide - Building rich Internet Application..." to implement Active data Service to update Af:Table for any change in the MySQL database.
    The book discusses of a class which extends ADS "BaseActiveDataModel" which should handle starting and stopping of active listener and listener registration.
    1. Does this class is sufficient to detect changes coming from MySQL database or is it specific to Oracle database?
    2. Also the book does not discuss about the code for starting stopping or registering active listeners. Can someone guide me to some reference material or to a right place which explains me what kind of code does these methods require?
    3. Also I wonder if anyone knows, if we can differentiate between events generated from different database tables. (I guess we need to do that by using 'instanceof' operator and comparing ViewObjects from my project).
    (Just trying to develop my understanding around various ADF concepts.)
    Thanks!!
    (Have also referred http://technology.amis.nl/2012/06/18/notifying-adf-applications-of-database-changes-fast-and-lean-using-database-query-result-change-notification-part-one/
    not sure if that's the way I need to register the listener. ADF should have made that easy.)
    Edited by: 996574 on May 23, 2013 3:11 PM

    Above link seems helpful to find good blogs.
    Especially following blogs looks good;
    http://adfwithejb.blogspot.com/2012/12/active-data-serivce-with-data.html
    http://adfwithejb.blogspot.com/2012/12/active-data-service-with-active-image.html
    Thanks Shay Shmeltzer!

  • UIX : Data action doesnt call a method

    hi,
    1)I have created two uix pages u1 and u2
    2)I have created a data action(a1) based on method(findinvoices)
    3)I have created farward from u1 to data action(a1)
    4)I have created another farward from data action(a1) to u2
    5)I method to accept the params which i defined in u1 and execute the method which i draged and dropped on action(a1)
    Note i have defined the param values for each param of data action(a1).
    Why data action(a1) is not calling the method instead it directly goest to u2 and execute the query on it.
    Thanks.

    Hi Shay,
    I have one problem because how can I create a JSP Page to display Method Results in JDeveloper10.1.3???
    I already created another page and tried to Drag and Drop my Method from Data Control Palette, but I only have the choice to create a button and I would like to see the result.
    Adding a c:out tag to the JSP page.
    Can you help me with this problem??
    Thanks,
    Micaela

  • Inserting from findforward in data action

    I will try to give some background here just in case someone has a better solution to my problem. First of all, I have a JSP page with a form on it. The first half of this form is from a table, and is inserted on the commit button. The second half of the form is dynamic, and the number of fields differ based on a choice that was previously made. I need to know the best place to insert these items. Each field will be a separate row in a database that is linked back to the first database with the common column requestId.
    The forward for this page goes to a data action when commit is pressed. I was hoping to do the insert in that data action's findforward method. However, I have been unsuccessful in doing so. I get an ApplicationModule am, but when I try am.createRow(), it won't let me do it. I also tried am.createandinitrow( list ), that also was unsuccessful. I got runtime errors saying that I couldn't use those functions. Are there any other ways I can do this?? Or is there another solution that I can use??
    By the way, I am using Jdeveloper 10.1.2.
    Thanks

    Nevermind, I did figure it out. I found the command:
    ApplicationModule am = Configuration.createRootApplicationModule(app,cf);
    Where app is a string ("model.AppModule") and cf is a string ("AppModuleLocal"). After doing what I need to do, I then released the ApplicationModule with:
    Configuration.releaseRootApplicationModule(am,true);

  • Managing exception in data action

    Hello,
    I am working on a web j2ee project based on struts/adf technology scope.
    I need to do some complex elaboration when the user press a button, so:
    1. I develop a data action
    2. from the data action I call a method of the application module
    3. I get the result from the method and forward to the proper page,
    4. etc.
    My method in the application module raises exceptions (when no data are found on the database, when parameters are null, when the database is down...).
    If I let my method to throw exceptions (i write "throws Exception" in the declaration), the wizard doesn’t let me to export the method to the client!!
    Otherwise I should catch the exceptions in my method in the application module, return an integer to the data action and write some code to decode the return value and eventually raise the exception again: I can't believe I have to do it this way!!!
    Anyone can help me?
    Thank you,
    Marco.

    Thnaks for reply.
    I will try it from another system. as i am the administrator of my desktop also I am trying to uplode a Image from Desktop so don't think that there is the problem b'coz of permisions.
    May be problem is with GUI only.
    Regards,
    Darshan...

Maybe you are looking for