How to automatically retrieve a task Input/Output structure in SAPUI5?

Hi guys,
I am trying to figure out a way to automatically retrieve the complex type specified as a task input/output without hard coding the name of the complex type. So far I have a process with two reporting activities and a task, built as a custom technologies with specified Input and Output from the process context. Then I built a UI where I created an OData model, whose properties I bound to properties of the model, but this happened by exactly specifying the name of the complex type in the controller:
// bind customer data (i.e. the task input data) to the panel
  customerDataPanel.bindElement("/InputData('" + taskId + "')", {expand : "Customer"});
and the exact attribute names in the view:
  oMatrix.createRow(
   new sap.ui.commons.Label({text : "First Name", design : sap.ui.commons.LabelDesign.Bold }),
   // property binding of a text field to the attribute in Customer object
   new sap.ui.commons.TextField({value : "{Customer/firstName}"})//property binding
   oMatrix.createRow(
   new sap.ui.commons.Label({text : "Last Name", design : sap.ui.commons.LabelDesign.Bold }),
   new sap.ui.commons.TextField({value : "{Customer/lastName}"})//property binding
   oMatrix.createRow(
   new sap.ui.commons.Label({text : "Street", design : sap.ui.commons.LabelDesign.Bold }),
   new sap.ui.commons.TextField({value : "{Customer/address-street}"})//property binding
   oMatrix.createRow(
  new sap.ui.commons.Label({text : "City", design : sap.ui.commons.LabelDesign.Bold }),
  new sap.ui.commons.TextField({value : "{Customer/address-city}"})//property binding
   oMatrix.createRow(
  new sap.ui.commons.Label({text : "Zip", design : sap.ui.commons.LabelDesign.Bold }),
  new sap.ui.commons.TextField({value : "{Customer/address-zip}"})//property binding
   oMatrix.createRow(
  new sap.ui.commons.Label({text : "Country", design : sap.ui.commons.LabelDesign.Bold }),
  new sap.ui.commons.TextField({value : "{Customer/address-country}"})//property binding
   oMatrix.createRow(
  new sap.ui.commons.Label({text : "Currency", design : sap.ui.commons.LabelDesign.Bold }),
  new sap.ui.commons.TextField({value : "{Customer/currency}"})   //property binding
  oMatrix.createRow(
    new sap.ui.commons.Label({text : "RequestNr", design : sap.ui.commons.LabelDesign.Bold }),
    new sap.ui.commons.TextField({value : "{Customer/requestNr}"})   //property binding
Is it possible for this binding to happen automatically in some kind of way without me specifying every single attribute name? As you can imagine in a real project, there will be even more complex types used in the UI and it is not feasible at all to have to specify each and every single attribute's name.
Any suggestions will be much appreciated.

Hi Deepa,
How about adding another action to the "Add Company" Button which will also trigger the search?
See:
http://help.sap.com/saphelp_nwce711/helpdata/en/48/17fbc3a3050be8e10000000a42189d/frameset.htm
And:
http://help.sap.com/saphelp_nwce711/helpdata/en/ae/facedea03743f18aaf2edf12465fd8/frameset.htm
For more details.
Hope this helps.
Regards.
Omer.

Similar Messages

  • How do I retrieve lost task bar and photo bin on mac ?

    how do I retrieve lost task bar and photo bin on Mac ?

    You aren't getting any responses because your marked your post as solved. I would suggest unmarking your second post as the solution.
    Which version of PSE is this? Can you post a screenshot of the problem?

  • How to automate a redundant task on PC to "Include Prefix when Numbering Pages"

    I work in book publishing and we're generating indices using the book feature. The big problem is that for the print version we need the folios styled a certain way "without a prefix" but to create our index in the book feature, the prefix needs to be turned on.
    Is there any way to do any kind of drag and drop so I don't have to open every chapter of the file to turn the prefix on? Though it doesn't take long, it's repetitive and has to be done every time we update our books. (The "Section Prefix" information is alreay inserted, it's just a matter of toggling it on or off depending on what doing in the InD file.)
    I do not write scripts. It seems like a simple task but would take me months to figure out. If you can send me to someone who can figure out how to automate this task, I would greatly appreciate your help.
    Macgrunt was able to help me but then I realized I was on a PC. Is this something that can be done in Javascript?

    Here's a version that batch-processes the selected folder with InDesign documents as you asked in PM.
    Main();
    function Main() {
        var inddFile, doc,
        inddFolder = Folder.selectDialog("Choose a folder with InDesign documents.");
        if (inddFolder == null) exit();
        var inddFiles = inddFolder.getFiles("*.indd");
        if (inddFiles.length == 0) ErrorExit("Found no InDesign documents in the selected folder.", true);
        for (var i = 0; i < inddFiles.length; i++) {
            inddFile = inddFiles[i];
            app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
            doc = app.open(inddFile);
            app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;   
            sections = doc.sections;
            for (var j = 0; j < sections.length; j++) {
                sections[j].includeSectionPrefix = true;
            doc.close(SaveOptions.YES);
    function ErrorExit(error, icon) {
        alert(error, scriptName, icon);
        exit();
    You can also use this script to run a script or a set of scripts on a bunch of files. (Warning! It's not totally tested)

  • How to get center alignment of Input/Output field in Module Pool

    Hi Friends,
    I am using Input/Output field in my Module pool program. Dynamically i am submitting the text to Input/Output field. What i want is i want to display the submitted text as center. By default It is displaying left aligned.
    Thank U in advance.
    Mahender.

    Hi,
    Use syntax "Centered".
    take one variable push into the field
    write w_variable1 to w_variable2 centered.
    next push the varaible to Destination screen input/output Field .
    Make sure the Field the Character Type.
    Prabhud@s

  • How to map idoc segments to multiple output structures

    Dear experts,
    On Pi I need to map segments from an Idoc to 2 different outputstructures. My scenario is as follows:
    incoming Idoc on PI -> if segment eq 'X' then map to outputstructure '1'; if segment eq 'Y' then map to outputstructure '2'
    Idoc structure is as follows:
    - 1 header segment
    - 1..n detail segments (which I need to map to outputstructure 1)
    - 1 summarisation segment (which I need to map to outputstructure 2)
    Output needs to be a .txt file.
    I would like to use the graphical message mapping on PI, how can I map the Idoc to multiple output structures?
    Thanks in advance,
    William

    Hi
    You can do 1:n multimapping
    in message mapping in messages tab ..add both the structures in target tab and do the mapping
    and in operation mapping add both the message interface on the target side
    PLease go through this blog
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

  • How to call JAVA program having input & output parameter

    Hi Experts,
    Require ur help in calling a java program in ODI which has input parameter & I need to also get the output of the java program.
    I have a java program which I execute through command prompt with input parameters required for the program.
    Also I need to get the output of the same java program & need to pass it as input to another Java program.
    kindly help...how to implement the java program in ODI as I have not worked on Java.

    Hi experts,
    kindly help...

  • How to set PFI pins as input/output

    Hi...
    I want to set PFIs as input/out but I don't know how to deal with it. I try to find the function but nothing can set in PFIs.
    I want to trigger with PFI 1.
    Thanks in advance for any kind help!!

    Hello jtanabe,
    You are correct.  The example posted above in
    Traditional DAQ is used to input a trigger signal to the card.  The PFI
    pins allow you to route signals into and out of your card, they are not capable
    of directly generating signals.  To generate a square wave you would use
    either a counter or digital line.  A counter would allow you to generate a
    square wave with a specific frequency and duty cycle, and a digital line would
    allow you to do something similar depending on the card you have.  For
    example with an E Series device you write a single value to a digital port at a
    time, and therefore it is software timed.  The frequency you can update
    the digital port/line will completely depend on your software and the speed of
    your system.
    For more information on PFI lines please see a PFI
    Knowledge Base found here.  If you are just starting out, or if you are
    using an M Series Board I would recommend (if your hardware supports it) using
    the DAQmx driver.  It is easier to create applications, and it allows you
    to use the Data Acquisition Assistant Express VI if you are using LabVIEW.  There are examples that demonstrate how to generate square waves online and in NI Example Finder.  If you are using LabVIEW you can find examples by selecting Help >> Find Examples.  In the window that appears select Hardware Input and Output >> NI-DAQmx >> Generating Digital Pulses.
    Regards,
    Jesse O.
    Applications Engineering
    National Instruments
    Jesse O. | National Instruments R&D

  • How to automate sql server querry and output to send via email alerts

    Hi,
    I have MS SQL 2005 server. Daily i m running sql querry at 10:30 pm. i want to automate this process & output need to send via email. Please suggest what are the options availble.
    Thanks in advance
    ...Umesh

    Create a job and put the query in , then schedule it... You can email an output by using data base email feature
    EXEC msdb.dbo.sp_send_dbmail 
         @profile_name = 'Admin', 
         @recipients = '[email protected]', 
         @query = 'SELECT COUNT(*) FROM AdventureWorks.Person.Address', 
         @subject = 'Error Log Count', 
         @attach_query_result_as_file = 1 ;
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to address digital input & output, analogue input & output when communicate with mitsubishi fx1n plc

    dear all,
    i am new to labview, how to code or address digital input & output, analogue input & output when communicate with mitsubishi fx1n plc or crouzet plc.
    pls help.
    HM

    http://search.mywebsearch.com/mywebsearch/redirect.jhtml?searchfor=mitsubishi+fx1n&cb=ZO&p2=%5EZO%5E...
    Try the above link. I know it is a screen-full, but is a search result for Matrikon. They have a whole slew of OPC servers/clients you can try out. Personally, I would go with their OPC server for the Mitsubishi, and use Labview Datasockets. That would be the simplest with the lowest learning curve.
    Otherwise, if you wish to use Modbus, you would have to get the commands/syntax from Mitsubishi; might be in their user manual, but I wouldn't lay bets on it. With the Matrikon stuff, the syntax is all built in.
    Good luck which ever way you decide to go.
    Dave

  • How to retrieve the user input in One Step Screenflow

    Hello all,
    I am new in KM. I would like to ask in One Step Screenflow, I have add a inputfield into the ConfirmComponent. How can I retrieve the user input?
    public IRenderingEvent execute(IScreenflowData sfd) throws WcmException
              inp.setLabel(new Label("Delegation:"));
              ConfirmComponent cc = new  ConfirmComponent(ConfirmComponent.OK_CANCEL,this.context.getLocale(),inp);
              String sRid = (String)this.values.get(0);
              RID rid = RID.getRID(sRid, null);
              OneStepScreenflow oscf = new OneStepScreenflow(sfd,this.getAlias(),rid,cc);
              return oscf.execute();
    In the IRenderingEvent , How to retrieve the user input?
    public IRenderingEvent execute(IResource res, Event event ) throws WcmException
              if (event instanceof ConfirmEvent)
                        ConfirmEvent cce = (ConfirmEvent)event;
                        if (ConfirmEvent.CHOICE_YES.equals(cce.getChoice()))
                                  return new InfoEvent(Status.OK, "Done !");
                        else if (ConfirmEvent.CHOICE_NO.equals(cce.getChoice()))
                                  return ConfirmComponent.onNo(event, res.getContext().getLocale());
                        else if (ConfirmEvent.CHOICE_CANCEL.equals(cce.getChoice()))
                                  return ConfirmComponent.onCancel(event, res.getContext().getLocale());
              return new InfoEvent(Status.ABORT, "Aborted.");
    Many Thanks,
    Sunny

    Hello yoga,
    Many Many thanks for your reply again.
    I have just try the class in the thread link.
    There is a error
    "The project was not built since its classpath is incomplete. Cannot find the class file for javax.servlet.http.HttpServletRequest. Fix the classpath then try rebuilding this project."
    The errors occurs because of "extends OneStepComponent"
    public final class NewConfirmInputComponent extends OneStepComponent
    Where can find javax.servlet.http.HttpServletRequest to include it in my classpath?
    Thanks
    Sunny

  • SSIS: How to use one Variable as Input and Output Parameter in an Execute SQL Task

    Hello,
    i need your help,I'm working on this issue since yesterday and have no idea how to deal with it.
    As I already said in the tilte i want to start a stored procedure via a Execute SQL Task which has around 15 prameters. 10 of these should be used as input AND output value.
    As an example:
    i have three  Variable:
    var1    int        2
    var2    int     100
    var3    int     200
    the stroed procedure:
       sp_test
          @var1 int
          @var2 int output
          @var3 int output
       AS
       BEGIN
            SET @var2 = @var2 * @var1
            SET @var3 = @var3 + @var1
       END
    So in the Execute SQL Task i call the Stored Procedure as follwos:
        Exec sp_test  @var1 = ?, @var2 = ? output, @var3 = ? output
    (I use an OLE DB Connection)
    The parameter mapping is as follows:
    User::Var1        input                   numeric              0                 -1
    User::Var2        input/output         numeric              1                 -1
    User::Var3        input/output         numeric              2                 -1
    Now my problem. If i set  Var2 and Var3 as Input parameter the values are still the same after running the package. If i set them to a output value the are both Null because the procedure doesnt get any values.
    I already tried to list them a second time - like
        User::Var2        input                  numeric              1                 -1
        User::Var2        output                 numeric              1                 -1
    or i use a new variable
        User::Var2                  input                  numeric              1                 -1
        User::Var2Return        output                 numeric              1                 -1
    but i alwas get the error
    "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done."
    Has anybody an idea how I can solve this problem?
    Thanks a lot.
    Kind Regards,
    Alice

    Hi Alain,
    thx for your answer.
    I have around 15 procedures called one after the other to calculated and modify my values. Each procedure is responsible for an other but overlapping set of variables. So i thought it would be a good idea to call them one after the other with the needed variables via a execute sql task.
    So if i use a result set, how i get my stored procedure to return 10 values? I would have to use a Function instead of a procedure, wouldn't i?
    As if i have 15 procedures this would be a lot of work.
    But thanks a lot for the idea. I think an other idea would be to create one function which calls all stored procedures and returns all the calculated values as a result set, wouldn't it?.
    Kind Regards.
    Alice

  • How to check current input/output rate on router subintenterface via SNMP?

    How to check current input/output rate on router (2821, etc..) subintenterface via SNMP, like cacti monitoring system.
    I cant find OID to make this with snmpwalk.
    Or there is no way to check current load by this way? Only polling?
    P.S. Ethernet subinterface, of course.
    With great respect, S.A.

    Hi,
    Try to use:
    1.3.6.1.4.1.9.2.2.1.1.6 - InBitRate
    1.3.6.1.4.1.9.2.2.1.1.8 - OutBitRate
    1.3.6.1.4.1.9.2.2.1.1.28 - ifDescription

  • How to set input/output "use" attribute in the WSDL file of BPEL process?

    Hello,
    I have a BPEL process that I want to deploy it as an RPC web service. I want to access it from a Java module (via an automatic generated Java stub from the WSDL file exposed by the BPEL process).
    I wrote manually the corresponding WSDL file for my BPEL process, where I stipulated for the operations exposed by my process ( in <soap:binding> tag) the value of the attribute "style" to "rpc". Also, for each <input> and <output> of the operations (inside the <operation> tag), I set manually the attributes "use" to the values "encoded". Something like this:
    <operation name="getCustomers">
    <soap:operation style="rpc" soapAction="getCustomers"/>
    <input>
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="Trial"/>
    </input>
    <output>
    <soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="Trial"/>
    </output>
    </operation>
    The issue is that, when the BPEL process is built and deployed, the WSDL file generated automatically by BPEL (based on the one manually writen) set the values of the "use" attributes to "literal". This is what is generated:
    <operation name="getCustomers">
    <soap:operation style="rpc" soapAction="getCustomers" />
    <input>
    <soap:body use="literal" namespace="http://acm.org/samples" />
    </input>
    <output>
    <soap:body use="literal" namespace="http://acm.org/samples" />
    </output>
    </operation>
    Is there any chance to keep the original values (written by hand) for the "use attributes?
    Many thanks in advance!
    Regards,
    Marinel

    I am not sure I understand your question. If you want all your BPEL service to be rpc still by default, you can change the templates: C:\eclipse\plugins\bpelz_0.9.XXX\templates.
    The BPEL PM engine support both style of invocation.
    I hope this helps. -Edwin

  • How can i make the input/output field to a multiple lines in ModulePool...

    hi all...
    can any one please let me know, is there any possibility thru Module Pool program where i can make the input/output field to a multiple lines...
    say, when we drag & drop the input/output field on the screen - it'll come with single line display. so, how to make the same field to multiple lines field.
    rather i can say my question like, how to increase the height of the input/output field.
    Desired Functionality:
    • The user wants to display a long text.
    • now the input/output field should not display the record as a single line, now the field has to display the text in multiple lines (something like wrap option in ms excel).
    hope u got my question...
    please help me in this regards...

    hi Rengith, i'm not using Text Field, i'm using Inpu/Output Field to display the long text.
    If u mean text field as input/output field then can u let me know the process for this, how to do the same thru module pool program...
    Edited by: murashali on Mar 18, 2008 1:36 PM

  • How to automate the data load process using data load file & task Scheduler

    Hi,
    I am doing Automated Process to load the data in Hyperion Planning application with the help of data_Load.bat file & Task Scheduler.
    I have created Data_Load.bat file but rest of the process i am unable complete.
    So could you help me , how to automate the data load process using Data_load.bat file & task Scheduler or what are the rest of the file is require to achieve this.
    Thanks

    To follow up on your question are you using the maxl scripts for the dataload?
    If so I have seen and issue within the batch (ex: load_data.bat) that if you do not have the full maxl script path with a batch when running it through event task scheduler the task will work but the log and/ or error file will not be created. Meaning the batch claims it ran from the task scheduler although it didn't do what you needed it to.
    If you are using maxl use this as the batch
    "essmsh C:\data\DataLoad.mxl" Or you can also use the full path for the maxl either way works. The only reason I would think that the maxl may then not work is if you do not have the batch updated to call on all the maxl PATH changes or if you need to update your environment variables to correct the essmsh command to work in a command prompt.

Maybe you are looking for

  • Add to iPhoto removes file name

    Apple Mail - It's great that we now have the return of the "Add to iPhoto" link for image attachments However, when using this function Mail renames the file as IMAGE, IMAGE-1, IMAGE-2 etc etc in the metadata.  This creates an issue where iPhoto is t

  • External monitor - no sound needed, just picture

    I am a composer. I want to take a quicktime file and send the output onto an external television monitor. I do not need sound, just picture. I'm running two monitors already for my desktop, a 23" and a 19". Is there any inexpensive method to get that

  • Possible to split Audio/ Visual for apple tv

    Hey, I have a projector in my room and was wondering if i could airplay movies through itunes to the apple tv (connected to my projector) and then keep the sound coming out through the headphone port (the speakers on the projector are average). As i

  • HT2500 has apple blocked leopard from functioning with email if email has been upgraded to icloud?

    i upgraded to icloud and suddenly i can no longer receive email on my mac mini or macbook pro.  i have my husband and mother's mac account in my email as well and they have not upgraded to icloud and their mail works fine.  i have a new computer with

  • Maveriscks keeps crashing after reinstall

    Hello everybody, I just bought a MacBook Pro (13-inch, retina) after a week it crashed over and over. Then I found that google-drive could be the reason. I was happy for half a day and then it got worse. It Didn't even start anymore. After more than