bc4j:setAttribute and validater

Hi, the parser bug reported in this thread, has it been solved or is there any work around for it?
UIX/XML: <bc4j:setAttribute> and <validater>
Basically I want serverside BC4J field validation, there might be another way to get it done?
Thanks, Jan

Jan,
Sorry, the bug fix has not been released externally. Registering the below UIExtension should work, though.
Hope this helps,
Ryan Pollock
UIX Team
import oracle.cabo.share.xml.ParserManager;
import oracle.cabo.ui.UIConstants;
import oracle.cabo.ui.UIExtension;
import oracle.cabo.ui.laf.LookAndFeel;
import oracle.cabo.ui.validate.ServerValidater;
import oracle.cabo.ui.xml.parse.ClientValidaterFactory;
public class FixValidate implements UIExtension
public void registerSelf(ParserManager manager)
// Work around UIX bug with ServerValidater parsing
manager.register(ServerValidater.class,
UIConstants.MARLIN_NAMESPACE,
ClientValidaterFactory.sharedInstance());
public void registerSelf(LookAndFeel laf)
}

Similar Messages

  • Bc4j:setAttribute

    Hello to all of u,
    I face a strange problem and I would appreciated it if anyone could help.
    I am building a UIX XML application. I have changed the update_<view>.uix file to display to the user only the updatable columns. However when I try to change the Apply event I get a syntax error that the setAttribute element is not completed. Below you can see my code in the event handler:
    <event name="apply" >
    <bc4j:findRootAppModule name="DepartmentsViewAppModule">
    <bc4j:findViewObject name="DepartmentsView">
    <bc4j:findRow name="UpdateDepartmentsView">
    <bc4j:setAttribute name="DeptCode"/>
    <!-- commit the transaction -->
    <bc4j:commit/>
    <ctrl:go name="DepartmentsView_View" redirect="true" />
    </bc4j:findRow>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    I cannot see any errors, and all the documentation I found on setAttribute state the same thing (I tried copy&paste too).
    I am not sure what version of UIX I am using, but I am using JDeveloper 9.0.2.822
    Thank u in advance
    Ioanna

    try setting paramName on <bc4j:setAttribute>. I'm guessing you might have an older version of UIX where this isn't getting defaulted.

  • Diff b/w bc4j model and ejb model in adf11g

    hi all,
    iam murali iam new for adf 11g i have some dout's in adf11g ,can u please solve my probleam
    what is the difference b/w bc4j componet and ejb componet,how to develop ejb application in adf11g.

    ,how to develop ejb application in adf11gTake a look at this tutorial for starters:
    http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/ejb/ejb.html

  • FDM column width in Import and Validate Screens data table

    Hi all,
    is it somehow possible to influence the width of the columns in the Import and Validate/Export Screen in any way?
    I have the problem, that the column width is always a little bit to wide and so I have to scroll to the amount column everytime.
    Thanks for your help in advance
    Markus

    You would need to modify several XMLs. We strongly recommend against this as it voids the application being available for support from Oracle.

  • To find the date type fields in the row and validate those date fields

    TYPES : BEGIN OF TY_MARA,
              MATNR TYPE MARA-MATNR,
              ERSDA TYPE MARA-ERSDA,
              ERNAM TYPE MARA-ERNAM,
              LAEDA TYPE MARA-LAEDA,
              MTART TYPE MARA-MTART,
            END OF TY_MARA.
    DATA : it_mara TYPE STANDARD TABLE OF ty_mara,
          it_mara1 TYPE STANDARD TABLE OF ty_mara,
           wa_mara TYPE ty_mara.
    loop at it_mara into wa_mara.
      describe field wa_mara-ersda type c_data.
    if c_data eq 'D'.
      CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
        EXPORTING
          date                            = wa_mara-ersda
       EXCEPTIONS
         PLAUSIBILITY_CHECK_FAILED       = 1
         OTHERS                          = 2
      IF sy-subrc eq 0.
    wa_mara-ersda = '00000000'.
        append wa_mara to it_mara1.
        write :wa_mara-matnr,wa_mara-ersda.
        else.
            wa_mara-ersda = '00000000'.
        append wa_mara to it_mara1.
        write :wa_mara-matnr,wa_mara-ersda.
      ENDIF.
      endif.
      endloop.
    This issue regarding how to find the date type fields in the row and validate those date fields.If its not a valid date ,i have to assign initial value to that.
    I've tried that for single field using describe field.Please help me do that for all fields.

    Hi Sam,
     I believe we had discussed the same issue in the below thread. Can you please refer the below one?
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/d93e16ff-c123-4b36-b60b-60ccd34f6ca7/calculate-time-differences-in-infopath?forum=sharepointcustomizationprevious
    If it's not helping you please let us know
    Sekar - Our life is short, so help others to grow
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

  • ADF BC : Ant and XSLT to modify bc4j.xcfg and DataBindings.cpx

    hi
    Before I deploy my ADF BC / ADF Swing application I would like to use Ant to make some changes to bc4j.xcfg and DataBindings.cpx
    (see also "Defining ADF Business Components Runtime Properties for ADF Swing Applications" in the JDeveloper documentation)
    I would like DataBindings.cpx to point to the correct configuration and bc4j.xcfg to only contain the configuration information that is required.
    I created some XSLT transformation stylesheets to help me with that, see this example application:
    http://verveja.footsteps.be/~verveja/files/oracle/AntXsltConnectionSwitchStuff-v0.02.zip
    question
    Does JDeveloper itself provide any features to automatically make changes to DataBindings.cpx (and bc4j.xcfg) before deployment?
    many thanks
    Jan Vervecken

    repost

  • Do u know how to prompt user to enter password and validate the password?

    hi all,anyone knows how to prompt user to enter password and validate the password as well?I do not need the GUI.Can someone post the codes here?Thanks!

    hi all,anyone knows how to prompt user to enter
    password and validate the password as well?I do not
    need the GUI.Can someone post the codes here?Thanks!Codes are
    BufferedReader
    System.in
    if
    else
    System.out.

  • BC4J ViewLink and CURSORS

    I am using BC4J ViewObjects and ViewLinks. With ViewObjects method closeFreedStatements() works fine and closes Open Cursor in the database. How should I close Rowset and Statements when using ViewObjects trought ViewLinks?

    Hi,
    You could cast the RowIterator from the detail set from a viewlink to ViewRowSetImpl and get the ViewObjectImpl of the detail vo.
    RowIterator ri; //detail rowset
    ViewRowSetImpl rsi = (ViewRowSetImpl) ri;
    ((ViewObjectImpl) rsi.getViewObject()).closeFreedStatements();
    Yvonne

  • American Express Transaction Loader and Validate program error

    I am working on AMEX integration with iexpenses. When I run the American Express Transaction Loader and Validate program, Cocurent program run with an error:
    header and tailor do not have same report create date. submit this request again with the correct data file from American Express
    Any suggestions?
    Thanks,
    Pradeep

    Thank You. I tried to implement this functionality ( American Express Transaction Loader and Validation Con prog) by seperately running loader and validator
    1.e 1.American Express Transaction Loader 2. Credit Card Transaction Loader Program. I could able to run them successfully. I could see some new credit cards
    (which are in the data file) and assign them to employees through Internet Expenses Setup and Administration Responsibility -> Internet Expenses Administration -> new Accounts Tab
    But, When I login throgh that employee, I could not see the transactions in the Iexpenses resposibility. Where can one see his transactions? Is there any iexpnses user guide available for R12?
    Thanks.
    Pradeep

  • Pack and validate

    Hi, can some one explain about pack and validate.
    what is the exact difference between pack and validate. both are laysout the component and makes visible in the screen. then what is the difference ? please help me out.

    the api docs is the place for your answers
    (download a copy and have them on your pc)
    here's the link for pack()
    http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Window.html#pack()

  • Script to perform post server build configurations and validate settings

    Hello!
    I would like to create a script that can set numerous Windows server settings and validate that they are indeed set correctly, based on a predefined list of settings.
    For example: A third party company deploys servers from templates.  I am tasked with going through the build and verifying certain configurations and settings are set, based on my company's build request. Depending on where the server resides (physically)
    it will get specific settings.
    Is there a way to script making the correct changes and also display a validation report that all the settings/attributes that were changed, meet the expected value?
    Settings like dns settings, netbios, pagefile size/location, Terminal Server host settings(session limits etc), local admin accounts, windows features, bginfo, drive letters, drive sizes, installed ram, number of cpu cores, date/timezone, and the list goes
    on.  I currently run a few batch files to make the changes, but I'm still required to check that the settings are correct.  It would be nice to have all the batch files rolled into a script that makes changes and then runs a validation test against
    those changes. Or at the least, make changes and display all of the current values/settings so I can validate they are the correct ones.
    I have little scripting/powershell experience.  I could use some assistance to get me going in the right direction.

    Here's some intro information that should give you a place to start pulling threads:
    http://blogs.technet.com/b/heyscriptingguy/archive/2014/03/09/weekend-scripter-intro-to-powershell-4-0-desired-state-configuration.aspx
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • UIX Bug - bc4j:setAttribute

    The context:
    We have a UIX form used to edit a view row. The 'save' event is executing a chain of bc4j:setAttribute events.
    The bug:
    The row contains an attribute having a null value. The corresponding text field into the form remains unchanged (empty). This means that on submit, the browser sends to the server a 'null' value. Unexpectedly, the setAttribute method for this attribute is invoked for the current ViewRowImpl. Since the value of the attribute is not changed, I am expecting a different behavior i.e. not invoking this method.
    thanks

    Hi,
    This is a bug, which has been filed.
    Thanks,
    Gabrielle

  • Difference between ENTER and VALIDATE built ins

    Hi,
    Can anyone of you tell me what is the difference between ENTER and VALIDATE? Also in ENTER if any program unit is called and on that program unit I've specified FORM_TRIGGER_FAILURE it is not stopping. Can anyone give some information?
    Thanks in advance.
    --Sourav                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Thanks Gerd. I've used both ENTER and VALIDATE in KEY-COMMIT trigger, problem is whenever any validation unit raise FORM_TRIGGER_FAILURE, it doesn't stop execution flow of key-commit. Here I'm giving some sample codes
    IN KEY-COMMIT
    message(' Key Commit -1');
    message(' Key Commit -2');
    message(' Key Commit -3');
    message(' Key Commit -4');
    ENTER;
    message(' Key Commit -5');
    message(' Key Commit -6');
    Evenif the item has a When-Validate-Item trigger and in trigger we raise FORM-TRIGGER_FAILURE, still message 5 and 6 is showing.
    I've to use FORM_SUCESS after ENTER or VALIDATE to get the exception.
    Any idea?
    Regards.
    --Sourav                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • GetParameter, setAttribute and session values

    I am having a problem forwarding values to a jsp from my servlet.
    This problem only occurs when multiple users are accessing the same pages to make a payment.
    The value is passed from the page to the servlet.
    The servlet gets the value using a getParameter.
    //Get the value from the previous page
    String DocTotal = request.getParameter("DocTotal");
    logger.debug("DocTotal: " + DocTotal);
    //set the value to pass to next page
    request.setAttribute("payAmount", DocTotal);
    displayTemplate(CREDITCARDPAYMENT);
    displayTemplate code follows.
    RequestDispatcher rd = getServletContext().getRequestDispatcher(template);
    rd.forward(req, res);
    I then set the value in the request object to pass to the next page.
    This all seems to work fine for a single user but when I I have more than one user, one user will get a null for value being passed on the next page and the other user will not get the page displayed.
    It is like my session values are getting stomped on by the other user.

    The changes that you have suggested seem to work, but I still have a problem.
    One user seems to be able to get the data passed successfully to the next jsp, but the other just gets a blank screen. If the user with the blank screen refreshes they get the screen with the data. It is as if the servlet hangs up when calling the page. I am not sure.
    Here is the code that is being accessed with formatting.
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    req = request;
    res = response;
    HttpSession session = req.getSession(true);
    logger.debug("Made it to the doPost method of DownloadUtilServlet!");
    logger.debug("session: " + session);
    String cmd = req.getParameter("cmd");
    logger.debug("cmd equals: " + cmd);
    if ((cmd != null) && cmd.equalsIgnoreCase("forwardPaymentInfo")){
    XCBillerCenterItem bci = null;
    try{
    logger.debug("XCConfig.CCUSER: " + XCConfig.CCUSER);
    bci = new XCBillerCenterItem(XCConfig.CCUSER);
    catch(Exception e) {
    logger.debug("XCBillerCenterItem Create: " + e);
    String ccList = bci.getCCTypes();
    req.setAttribute("ccList", ccList);
    logger.debug("cmd equals: " + cmd);
    String DocTotal = req.getParameter("DocTotal");
    logger.debug("DocTotal: " + DocTotal);
    req.setAttribute("payAmount", DocTotal);
    displayTemplate(CREDITCARDPAYMENT);
    }//User has paid, proceed to download
    else if ((cmd != null) && cmd.equalsIgnoreCase("downloadreportfilter")){
    displayTemplate(DOWNLOADREPORTFILTER);
    else{       
    GetParameters(req, res, session);
    public void displayTemplate(String template)
    try
    RequestDispatcher rd = getServletContext().getRequestDispatcher(template);
    rd.forward(req, res);
    catch(Exception e)
    e.printStackTrace();

  • UIX 2.2.8: Difference between bc4j:_null and null/

    Anyone here who can explain me the difference between <boundAttribute name="attrName">
      <contextProperty select="bc4j:_null"/>
    </boundAttribute> and <boundAttribute name="attrName">
      <null/>
    </boundAttribute> Does <contextProperty select="bc4j:_null"/> work when using EL?
    Thanks, Markus

    ping

Maybe you are looking for