HOW TO : Initialize / On Load of a BPM Object Presentation

Hi,
We have a BPM Object Presentation. On Load of the same, we need to enable/disable a UI field basing on data of one of the BPM Object attributes.
If we put it in constructor, it is not allowing to enable/disable the Presentation UI Component as it is a 'client side' operation.
Wanted to know where we can put the code to 'initialize' of a presentation or do something 'on load' of the presentation form.
Regards,
user8702013

Hello,
You can create a method which can be called on the initialization of the screen.
To map the method with the presentation, you need to click on the presentation(be careful not to select one of the components). You will then see the properties of the entire presentation in the right hand side pane.
Change the initialization method from <None> to the method you want to call on the loading of the presentation.
This method will get executed every time the presentation is called.
If you are making any DB calls or want to interact with some other external resources in this method then change the Server side property of this method to Yes.
In case of queries revert back.
HTH.
Regards,
Jaydev Doshi

Similar Messages

  • BPM Object Presentation - array items - (add / delete rows dynamically)

    Hi,
    We have a BPM Object presentation which uses a 'group' inner object to display ROWS of data. The presentation has an 'array0' created by default to handle the 'group' of rows. It also has the '+' and '-' buttons by default.
    There is a field at the upper level which shows the 'sum' of values in individual rows. It needs to 'REFRESH' when an add (+) or deletetion (-) or rows happen.
    But we see that all the controls (text boxes etc which are wired to the 'inner' bpm object of the group and the +/- buttons are one unit 'array0'. And the only method if at all, is an 'Event Listner' which is not showing any methods related to BPM Object.
    Can anyone help us with a clue as to how to handle the '+' and '-' events or wire the 'array/group' events to code - any clue with 'events'?
    This is a little urgent as it is an issue and we need to fix the same. Appreciate any quick responses/clues.
    Thanks in advance,
    -user8702013.

    The SUM field needs refresh() method to be called to reflect the new value whenever we are adding/deleting rows.
    To call this method for to show the reflection we have to declare a method on BPM object level which receives a argument of type ‘Fuego.Util.GroupEvent’, then in this method you can have your logic(here refresh() method is required to show new value on deletion/addition, hence this method is being called). This method can then be wired (it shows up) to the 'Event Listener' of the group/array.
    The newly created method will be called whenever a new row is added/deleted (Event will be fired hence method call).

  • How to initialize a org.w3c.dom.Node object?

    Hello,
    I want to initialize an org.w3c.dom.Node object with an empty Node.
    How could I do that?
    Thanks
    Sylvain

    I want to create a Document.
    If I test your line, this error appears:
    "Default constructor cannot handle exception type javax.xml.parsers.ParserConfigurationException thrown by implicit super constructor. Must define an explicit constructor."
    Do you know what's happen?
    Thanks
    Sylvain

  • How can I invoke web service in BPM Object's method?

    In ALBPM 5.7,AJaX can code by Call BPM Object's method.So I want to invoke web service via AJaX by BPM method.
    My sample code is:
    1: HelloWorldWebService ws = HelloWorldWebService();
    2: String param = "John";
    3: String retresult = "";
    4: ws.sayHello(name : parame; out result : retresult);
    and,I have import HelloWorldWebService by wsdl into catalog.
    In fact,at line 1 there is a error(fuego.connector.ConnectorRuntimeException: session is not started). Web service's instance is not created.
    Anybody can help me? thanks.

    Hi,
    I tried calling a simple webservice deployed in weblogic 8.1(see code) and it was working fine for me.
    Code for WS
    package service;
    import com.bea.control.JwsContext;
    import com.bea.jws.Protocol;
    import org.xmlsoap.schemas.soap.envelope.HeaderDocument;
    import com.bea.xml.XmlException;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    public class CheckCredit implements com.bea.jws.WebService
    * @common:context
    JwsContext context;
    static final long serialVersionUID = 1L;
    * @common:operation
    * @jws:protocol form-get="false" form-post="false"
    public boolean getCreditRating(String cardNumber)
    System.out.println("Card number is: " + cardNumber );
    boolean result = ((int)(Math.random() *100)) % 2 == 0?true:false;
    return result;
    Code from ALBPM Object method
    creditRatingResult as Bool
    getCreditRating CheckCreditService
    using cardNumber = "1234-5567-4667-4566"
    returning creditRatingResult = creditRatingResult
    logMessage "Result is: " + creditRatingResult
    What I suggest for you problem is:
    1. Check the server on which you have deployed the WS. Does it require any sort of authentication prior to connecting to the WS
    2. It seems you are using Java style in ALBPM. Try switching to PBL. I don't know how it makes a difference, but sometimes it helps
    Thanks and Regards
    Vivek Nandey
    BEA Certified Developer for Integration Solutions
    [email protected]

  • BPM Object presentation collapses and disappears, UNDO disabled

    I got a problem with BPM5.7.
    During a presentation build I created a number of tables and inserted labels and controls, but after I inserted new table and clicked in a cell entire presentation collapsed and transformed into page with a Header and 2 Buttons (Submit and Cancel) only.
    “Undo” button got disabled and I lost my 2 hours work. This is the 4th case of same behavior and 3 times I just rebuild presentations (they were simple).
    I need to understand how to eliminate same problems again.
    Thanks

    Hi,
    Stating the obvious here, but it looks like you've collided into a bug and you're able to duplicate it only after a couple hours of hard work.
    Over the years, I've gotten into the habit of saving frequently when I'm editing a presentation.
    You probably have already discovered that presentations are pesky in that you usually have to manually click the save icon with the focus still on the presentation for any changes I've made to take effect. I'm wondering if this might be used to your advantage in this case. I'm thinking if you save frequently while editing the presentation and if (hopefully you never run into the bug again but if you do) you run into the bug, you immediately exit Studio without saving. Sure you've thought of this, but this way you'd lose only a few minutes of work.
    Not a great thought, but only thing I can think of to get around the bug you're running into.
    hth,
    Dan

  • Calling a method in BPM Object from jsf page

    Hi All,
    How do I call a method in BPM object from JSF page? Is it possible to invoke it in a manner similar to invoking a method from managed bean in JSF application?
    Please help.
    Thanks and Regards,
    Veronica

    You can use f:invoke (or f:invokea to with parameters)
    For ajax calls, you can use f:invokeUrl to get the URL to a particular method within your BPM object, although make sure the Server-Side Method property is set to Yes.
    http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/taglib/index.html

  • ToString() for BPM Objects

    Hello,
    How does engine create strings out of BPM objects? Is there a "toString()" Java equivalent that gets called when an object instance is used in string concatenation expression?
    Thanks,
    Nick.

    Hi,
    we usually use this way to show objects in combo box: BPM object has an id attribute (Integer). We will associate combobox with this id. Open attribute properties if 'id'. Mark 'dynamic method' on valid values. Mark 'method return descriptions' too. You have to create a method thats returns a String[int]. This will contain text displayed on combo box associated to this id. Users will see the text but you get the id of the selected object.
    Regards,
    Juan Escot

  • Dependency between projects for presentations, BPM objects and external res

    Hi,
    I am trying to create a common project for all our exceptions, presentations and external resources...
    I have updated the properties of the project1 for dependeny on project2(exceptions project)
    but I am not able to see the user exception BPM Objects in the depended project to use...
    Project 1 is having all code that needs to call the BPM objects, presentations and external resources on the Project 2
    but these objects and presentations etc., are not visible to the project1.
    please advice if I need to do anything in relation to configs apart from making the Project 1 properties to dependency --> check box ticked and selecting the Project 2.
    thanks
    Satya

    When you use the project dependency feature, you do not see the BPM Objects in the Catalog. You see them (shown in blue) when you add variables in the process that refer to BPM Objects from the master project. You see them when you create a new attribute in your BPM object that is an BPM Object in the master project. You see them when you use them in logic inside your methods.
    Dan

  • How to Initialize Container Element in BPM..No Payload found

    Hi All,
    How do we initialize a container element in BPM if that container element is a message Interface.
    I am doing exception handling in BPM, so whenever a exception occurs i need to send a mail.
    So in the exception box i have a transformation step and a send step.
    In the transformation step what will be my source message?
    How do i initialize that source message?
    What i have done right now is created a dummy interface(abs) for source and then mapped with the target abs interface.
    When i execute the schenario,in the monitor i find in the Transformation step the following error
    <i>No payload found.</i>
    Regards,
    Sumit

    Hi Pinto,
    I too agreee. Lemme try to explain witha example.
    In my first transformation, MI_MAIL_TEMP_ABS is there along with 3 other interfaces. Each one is getting mapped i can see that in monitoring.
    Now in the exception branch in transformation step,
    i am mapping MI_MAIL_TEMP_ABS to MI_MAIL_ABS.
    Now in the send step im giving MI_MAIL_ABS as the interface name.
    Do you see anything wrong with this?
    <i>>>>>>>>Did you try to do outbound interface -> inbound interface mapping in the exception branch? Just to try to make your scenario work. Then you can investigate further on why the abs message is not being carried away.</i>
    Which outbound interface & inbound are you talking about?
    Regards,
    Sumit
    Message was edited by: Sumit Khetawat

  • How to initialize an adf component before a page loads

    Hi all
    I use JDeveloper 11.1.2.2.0
    I have two pages:
    first page has a link to a second page
    <af:document title="first.jspx" id="d1">
      <af:form id="f1">
        <af:commandLink text="Page 2" id="cl1" action="goToSecondPage" actionListener="#{Bean.handleLinkActionEvent}"/>
      </af:form>
    </af:document>and the second page has an inputText component:
    <af:document title="second.jspx" id="d1">
      <af:form id="f1">
        <af:inputText label="Text" id="it1" binding="#{Bean.inputText}" readOnly="true"/>
      </af:form>
    </af:document>First I load first.jspx and than I click the link. This event is handled in handleLinkActionEvent() method, in which I want to set a value to the inputText component of the second page. But I can't do it, because as expected I get NullPointerException.
    So the question is how to initialize an adf component before a page loads?
    Evgeny Michuk
    Edited by: Evgeny Michuk on Oct 4, 2012 11:30 PM

    Thanks a lot for your replies and links, it gives me some new knowledges.
    I got your approach and achieved the aim for the described situation with tag <f:setPropertyActionListener>:
    <af:commandLink text="Page 2" id="cl1" action="goToSecondPage"
                           actionListener="#{Bean.handleLinkActionEvent}" binding="#{Bean.firstPageLink}">
      <f:setPropertyActionListener target="#{pageFlowScope.text}" value="Hello, World!"/>
    </af:commandLink>and for the inputText component I set the value:
    <af:inputText label="Text" id="it1"  binding="#{Bean.inputText}"
                                  readOnly="true" value="#{pageFlowScope.text}"/>I used request scoped managed bean and it is shared for both pages.
    I understand that I can set a value of some attribute for managed bean
    and use it to set a value for inputText component of the second page,
    but as I understand it is almost the same way as usage of tag <f:setPropertyActionListener>.
    In my real situation on the second page I have a dynamic table, and it's field is read only.
    Structure of this table depends on a link clicked on the first page.
    So I define components for table columns in runtime, it may be outputText, inputDate, goLink and some others.
    And I have to get table through the UIComponent binding to set columns.
    Certainly I can define all needed components for all columns
    and render it according to the column types
    <af:table value="#{Bean.collectionModel}" var="row" id="t1" binding="#{Bean.mainTable}">
       <af:forEach items="#{Bean.columnDescriptionList}" var="column">
          <af:column headerText="#{column.caption}" id="c1">
             <af:outputText value="#{row[column.fieldName]}" id="ot1" rendered="#{column.type == '1'}"/>
             <af:inputDate value="#{row[column.fieldName]}" id="ot2" rendered="#{column.type == '2'}"/>
             <af:selectBooleanCheckbox id="sbc1" selected="#{row[column.fieldName] == '1'}" rendered="#{column.type == 'n'}"/>
          </af:column>
       </af:forEach>
    </af:table>but I think it is not very good.
    Have you any idea?
    P.S. I hope I clearly explained my situation =)
    Evgeny Michuk

  • How to do delta loading in BI?

    Hai..
    I sheduled the one job in the LBWE transaction. I deleted the contents of setup table and again filled the same and checked the data source in RSA3 and found data there. Then I replicated the data source in BI 7.0. After this thing How to perform delta loading in BI side.
    As here we are using Infopackage for loading PSA alone.
    1.  <b>Where we do delta initialisation and delta load?</b>
    2. <b>how the data is getting loaded in R/3 while doing delta update?</b>

    Hi Methew,
    After triggering V3 job from LBWE , go to Tcode RSA7 in r/3
    You will find for your datasource some data packet are available in delta Queue.
    Now you have to create a infopackage  in BW for init
    1)Go to left top of the infopackage  click on Initialization of source system ( there should be no request) if you find any request delete it.
    2)Click on update tab and select Initialization delta process.
    3)Data selection would be in gray ( no selection)
    4)Process can be any .
    5)Select your data target.
    6)Click on start button from schedule tab.
    Once int is done create a new info package for delta .
    1)Click on update tab and select delta updtes.
    Hope this helps.
    Milan Kothari
    9822840385

  • H:inputText ; How To initialize value Property from back/bean method?

    Hello Guys at Sun Forums.
    I am a newbie at using JSF. and I'm having a bit of a Problem.
    I don't know how to initialize the value property of a h:inputText from a method inside a backing bean that returns a String data type.
    My Method inside the Backing bean is this:
    public String getLastDate()
            Connection con = null;
            Statement stmt = null;
            ResultSet rs = null;
            Date DateCapt = null;
            String DateConv= null;
            try{
                Class.forName("com.sybase.jdbc2.jdbc.SybDrive").newInstance();
                con = DriverManager.getConnection("jdbc:sybase:Tds:localhost/BAN_PRO_SNP", "xxxx", "xxxx");
                if(!con.isClosed()){
                    stmt = con.createStatement();
                    stmt.executeQuery ("SELECT TOP 1 CONVERT(VARCHAR(10), fec_parametro, 103) fec_parametro FROM snp_sei_parametros" +
                    "     WHERE cod_parametro = 'FECHA'" +
                    "     ORDER BY fec_parametro DESC");
                    rs = stmt.getResultSet();
                    while (rs.next())
                                DateCapt = rs.getDate("fec_parametro");
                rs.close();  
                stmt.close(); 
            catch (Exception ex)
                        System.out.println("COULD NOT LOAD THE DRIVER!!!!");
                        System.out.println(ex);
                    DateConv = String.valueOf(DateCapt).toString();
        return DateConv;
    }As you can see the Method returns a String data type, and all I want to know is how put that returned String as the initial value of a h:inputText. when the jsf-jsp page loads.
    Please Help Me.

    You should be able to do
       <h:inputText value="#{bean.lastDate}"/>Where 'bean' is the managed bean name containing
    the method getLastDate().
    When the view is rendered, the getter (getLastDate())
    will be called to display whatever value is returned.

  • Initialize Delta Load in Info Package

    Hi,
    I want to create 2 info packages for my load from datasource.
    One with setting " Initialize Delta load with data transfer " in info package for my first load.
    Second info package should be with " Delta Lad " which i am not finding in the second info package i am creating. Can you please tell me how can i get this setting as i am getting only Full or Intialize delta load only.
    Regards
    Syed

    Make sure the following:
    1) DataSource is Delta Enabled
    2) An Init (or an Early Init) has already been done successfully. You should see the entry in RSA7 of the Source ERP
    You should then be able to get the Delta option in the InfoPackage

  • How to View the Loaded Data

    Hi,
    I have loaded the data into an ODS from an External Flat file and executed the job. Can anyone guide me how to view the loaded data in the ODS ?
    Thanks

    Hi Madhu,
    You can simply Goto Transaction LISTCUBE and give the ODS name -> Execute.
    Regards
    Hemant

  • 18000 and 200gb of iCloud storage how do i up load to iCloud and view them across my iPhone iPad and apple tv?

    I have 18000 photos and i have to signed up to 200gb of iCloud storage how do i up load to iCloud and see them across my iPhone iPad and apple tv?
    I have dragged my entire library over to the iCloud icon on the left side menu bar on my iMac iPhotos.
    i have also signed into iCloud.com but can only see recent few photos taken today on my iPhone and when i have gone to import i can not import for my iPhotos app?
    How do i get these to the cloud to view across my devices?
    What settings do i need to use on my iPhone and iPad?
    Or is iCloud not the best way to store and view my library?
    Thanks Spud

    You are a bit early.
    Wait for a few month.  iCloud Photo Library (Beta) and the Photos.app for Mac are being beta tested now and will be available soon on your Mac. Then you can store your photo library in iCloud and keep optimised versions of your photos on your Mac locally, with the full sized versions in iCloud. And all your devices will be able to access the photos in iCloud.
    See Apple's preview of the new Photos for Mac:  http://www.apple.com/osx/photos-preview/
    Fill your library, not your device.
    iCloud Photo Library can help you make the most of the space on your devices. When you choose "Optimize Mac Storage", it stores all your full-resolution photos and videos in iCloud in their original formats, while keeping storage-saving versions on each device. When you make an edit, the original image will download automatically. You get 5GB of free storage in iCloud — and as your library grows, you have the option to choose a plan for up to 1TB.
    and also:  Photos for the Mac Is Clean, Fast, Connected — and Unfinished
    The iPads and iPhones can already do it, but the Mac can only access this library using the web interface,  see:  iCloud Photo Library beta FAQ
    Use the time, till Photos will be released, to consolidate your photo library. Get all places and faces tagged, all keywords, titles,  and ratings ready, duplicates removed, events and albums well structured, and when Photos will be released, you can simply let it migrate the iPhoto or Aperture library to iCloud Photo Library.  Enable "Optimize Storage" and you will be able to have the bulk of your photos in iCloud.

Maybe you are looking for