How to control the call to a data control using the portlet parameter

Hello

I use a web service data control in my portlet application. I would like to know if there is a way where in the data control will not be called when the portlet is responsible, unless the portlet parameter is specified.

Thanks in advance!
Rian

You are right.

It is an example of a classic which I use as a data control:

public class UserDataControl {

  private UserService_Service user_service;
  private UserService us;

    public UserDataControl() {
        super();
        user_service = new UserService_Service();
        us = user_service.getUserServicePort();
    }

    public List getUserList(String company) {
      List list = us.retrieveUserList(company);
        System.out.println(list.size());
         return list;
    }
}

The proxy in my case has been generated in UserService_Service.
This class is used as a datacontrol so my datacontrol will be a setting for the company, as you can see in the getUserList.
You can check if the parameter is null, then returnn an empty list or so.

Tags: Fusion Middleware

Similar Questions

  • How to get the return parameter in sequence teststand ran by labview labview

    Hello

    Executes a test sequence of labview (essentially running "\Examples\TestStand API\Executing sequences using API\LabVIEW\Execute with no Model.vi process") I need to get a parameter returned in 'Settings', after the sequence has run.

    My problem is that I get the value upon registration of the sequence and not the value after execution.

    How?

    Vagn

    Vagn,

    in order to obtain the values of the execution, you need access to execution. The following screenshot shows how to access.

    Please note that this VI is lying will be called by TestStand. DO NOT USE THIS VI IN A CUSTOM USER INTERFACE!

    Thank you

    Norbert

    EDIT: This dummy code shows how to read the string parameter 'Return '. Each parameter must be read separately with appropriate playback function.

  • How to change the PCTFREE parameter for an existing table

    How to change the PCTFREE parameter for an existing table?

    Guys can you help me please

    Hello

    Of course it is possible.
    In this case you would export the table from the database (using old style exp)
    Start the import with the index_file option to generate the table/index instructions
    Modify the file created and updated the PCTFREE and remove any that need to be performed (default, if I remember correctly, he comments on the statements of the Index)
    Run the file for the table and the index created
    After that start the import with the option "ignore = yes".

    Make sure that you export only this particular table using "tables =
    Also in importing the "ignore = yes" will also be important data that still exists.

    In my view, however, this is not what you want to do. It's more complex, sensitive failure and the table should be deleted, so users are affected unnecessarily long.

    Success!
    FJFranken

  • How to set the NLS_COMP parameter to the instance level?

    In Oracle 11 g, we can change the NLS_COMP and NLS_SORT setting at the session level. But how to put at the instance level. It has been said (see http://www.orafaq.com/node/91) which can be donw with the operating system environment variables. I did on Linux
    export NLS_COMP=linguistic
    export NLS_SORT=BINARY_CI
    Then check with
    select * from NLS_INSTANCE_PARAMETERS where parameter in ('NLS_SORT','NLS_COMP');
    PARAMETER                      VALUE
    ------------------------------ ----------------------------------------
    NLS_SORT
    NLS_COMP                       BINARY
    The parameter are undefined.

    ALTER instance does not work:
    ALTER SYSTEM SET NLS_COMP=ANSI; 
    ORA-02096: specified initialization parameter is not modifiable with this option
    How to configure the instance parameter?

    Try: -.

    ALTER SYSTEM SET NLS_COMP = ANSI scope = spfile;

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28320/initparams135.htm

  • How to change the USE_INDIRECT_BUFFERS parameter

    Hello
    in 10g R2:
    How to change the USE_INDIRECT_BUFFERS parameter:
    SQL> alter system set USE_INDIRECT_BUFFERS=TRUE scope=spfile;
    alter system set USE_INDIRECT_BUFFERS=TRUE scope=spfile
                     *
    ERROR at line 1:
    ORA-02065: illegal option for ALTER SYSTEM
    Thank you.

    Try this:
    ALTER system set USE_INDIRECT_DATA_BUFFERS = TRUE scope = spfile;

  • ORACLE 10g reports - how to hide the screen parameter

    QUESTION:
    : I have a report that has been designed in 6i. It has a screen of parameter. Now, I have converted the report to 10g and pass parameters to the report of a form. The 6i parameter screen is therefore not required. However, when I look in the FORM of SETTING of PAPER report editor icon, the old route of 6i parameter appears.

    HOW to stop screen parameter 6i to appear? I didn't need it more because the parameters are passed from a form.

    When you call report forms, pass the parameters PARAMFORM = report number.

  • How to change the portlet.xml deployed without redeploying it?

    I often need to change the portlet.xml in deployed war file. But after changing the portlet.xml seeking Middle_Home, he did not have any change to the portlet. Then must I redeploy the war file if I want to change? Or is there another method?

    Kind regards
    Jugela

    Hello.

    Any change in the portlet.xml require a re - deploy application. Load only the configuration such as web.xml files, portlet.xml when the application starts.

    Kind regards.

  • Cannot bind the portlet parameter with the webcenter portal page setting

    Hi all

    I'm tying portlet parameter with the setting of the page so that I can reach some needs of the company.

    Here's what I did,

    In my producer of Portlet application:
    (1) created standards based portlets (jsr 286) with view.jspx and edit.jspx with the rest of the things being default.
    (2) in my portlet.xml created two parameters and receives these parameters to the portlet created above.
    (3) in the added view.jspx output torque label adf elements in the page.
    (4) deployed this integrated weblogic server.

    In my WC portal application:
    Created a new page and add the portlet to this page (WSRP connection already exists).
    deployed applications of portal on the server integrated.

    In page editing mode, I added a parameter (Param1) and certain value (constant) default page added.

    What I want is this:
    What value of Param1 is a view first label of output and
    What value of Param1 is display two second label output.

    I use jdev 11.1.1.5.0 with integrated weblogic server.

    (1) I do not set the value in the portlet code. This is supported by the application of Portal WebCenter! When you insert the portlet on a page and Runtime edition mode, press the button customize (an icon of Gable at the top right of the portlet). The first tab is the tab settings of the portlet. This tab is generated by the infrastructure by reading the specifications of portlets. As soon as you change the value it and press ok or apply, the value can ask of the portlet code I provided. That's why you can't find a code to set this value.
    (2) responded to 1 I guess :)
    (3) also partially answered 1 :)
    To change the value of a second, you must customize the portlet. This is possible by logging into the portal. You should see a pencil icon in the upper right of the portlet. When you click on it, it will open the page of edit.jspx that can be used to set preferences, as you can see in the code.
    Note that edit.jspx and the code to handle fields in the portlet bean are generated by Jdeveloper. I've not written. This is done by JDeveloper when you add a preference during the portlet Wizard.

    I hope this helps.

  • How to add the phase parameter to array of waveform in the DaQmx continuous output example?

    Hi all

    I'm quite beginning to Labview. I just wanted to know how can I add stage information for the module of waveform existing as shown in the example of output Voltage-Continuous DaQmx.

    SEEE attached, I thought that the "output" is actually a built-in control, is there anyway I can add the phase as an additional parameter which?

    Thanks in advance for any help.

    Eric

    If you press ctrl + H, the context help window opens, and you can hover over the generating function VI to see its inputs/outputs, but also to navigate to the detailed help. As you can see from this screenshot, there is an exit for the phase which is separated from the output waveform.

  • How to pass the dynamic parameter to a function of database in OBIEE

    Hello

    I have a requirement like this. I need to create a report in OBIEE which stood in the discoverer. Now in the Scout report there is a calculated item in the worksheet based on the pkg.functions database. The user setting which gives the runtime parameters are then passed to the discoverer calculated elements dynamically. But I am not able to do this in OBIEE answers.

    Can someone tell me step by step how I can able to transmit the values of user setting selected in the level of response OBIEE.

    The example:

    GET_COMM_VALUE_PTD ('cost AFE & commitment'. ID of the AFE,: ' name at that time (AFE) ', 'cost of the AFE & commitment '. Salt of data, 'cost of the AFE & commitment '. The org ID)

    GET_COMM_VALUE_PTD - database function
    ('Cost AFE & commitment'. ID of the AFE,: ' name at that time (AFE) ', 'cost of the AFE & commitment '. Salt of data, 'cost of the AFE & commitment '. org Id - settings...: "period Name (AFE)" is the dynamic setting of the execution by the user.


    Help, please.

    Thank you

    Titas

    Hello

    Please see this link.

    http://satyaobieesolutions.blogspot.in/2012/08/database-evaluate-function-database.html

    This can be help you.

    Thank you
    Satya

  • How to get the last parameter of exprision regular

    Hi all!
    I need to extract the last date in the string.
    Here my code
     Pattern pattern = Pattern.compile("(19|20)\\d\\d([- \\\\/.](0[1-9]|1[012])[- \\\\/.](0[1-9]|[12][0-9]|3[01]))?");
    Matcher matcher = pattern.matcher(text);
    
    while(matcher.find()) {
    
             
    System.out.println(matcher.group());
    How can I get the last date

    Example->

    Hello all the date is 2010-12-12 the date is 2010-10-10
    and I want to get-> 2010-10-10

    Thank you!

    Just assign the value of the find to a variable declared outside the loop. The variable will hold the last game when you exit the loop.

    Kaj

  • How to write the CLOB parameter to a file or a XML using shell script?

    I run an oracle stored procedure using shell script. How can I get the OUT of the procedure (CLOB) parameter and write it to a file or a XML in UNIX environment using shell script?
    Edit/Delete Message
    SQL> var c clob
    SQL>
    SQL> begin
      2          select
      3                  DBMS_XMLGEN.getXML(
      4                          'select rownum, object_type, object_name from user_objects where rownum <= 5'
      5                  ) into :c
      6          from    dual;
      7  end;
      8  /
    
    PL/SQL procedure successfully completed.
    
    SQL>
    SQL> set long 999999
    SQL> set heading off
    SQL> set pages 0
    SQL> set feedback off
    SQL> set termout off
    SQL> set trimspool on
    // following in the script is not echo'ed to screen
    set echo off
    
    spool /tmp/x.xml
    select :c from dual;
    spool off
    
    SQL>
    SQL> --// file size
    SQL> !ls -l /tmp/x.xml
    -rw-rw-r-- 1 billy billy 583 2011-12-22 13:35 /tmp/x.xml
    
    SQL> --// file content
    SQL> !cat /tmp/x.xml
    
    
     
      1
      TABLE
      BONUS
     
     
      2
      PROCEDURE
      CLOSEREFCURSOR
     
     
      3
      TABLE
      DEPT
     
     
      4
      TABLE
      EMP
     
     
      5
      TABLE
      EMPTAB
     
    
    
    SQL> 
    
  • How to set the plugin parameter

    I'm back to writing plugin once again... I know, I had been busy with the duties of photography... but now I have a free time to get back in the lineup...

    OK here is the deal... when we look at plug-in Manager and select a plugin in the list you would see certain information such as the status, the plugin author tools and you can add your own settings in there pretty well... It's just that I've not seen example how to go Kits SDKs... Well well... what I wanted to do is to include an option to enable or disable logging for my plugin... can someone show me in the right direction...

    Thank you...

    Page 32 of the SDK 3.0 Guide covers it.

    Source of the code examples at: https://www.assembla.com/spaces/lrdevplugin/

    Rob

  • How to move the Cursor parameter for loop with the type of table?

    Hi friends,
    I wonder how to pass a parameter into the second loop in the code example below. Please see the "BOLD" statements and to answer my questions.
    Thank you very much. Here's the code.

    declare
    l_bom_header_tbl BOM_BO_PUB. BOM_HEADER_TBL_TYPE; -TABLE TYPE
    V_bom_header_tbl Bom_Bo_Pub.Bom_Head_Rec_Type: = Bom_Bo_Pub.G_MISS_BOM_HEADER_REC; -Record type
    v_bom_components_tbl Bom_Bo_Pub.Bom_Comps_Tbl_Type: = Bom_Bo_Pub.G_MISS_BOM_COMPONENT_TBL; - nested table type
    c: number = 0;
    k: = 1 number;
    Start
    BOMPXINQ. () Export_BOM
    P_org_hierarchy_name = > l_org_hierarchy_name,
    P_assembly_item_name = > l_assembly_item_name,
    P_organization_code = > l_organization_code,
    P_alternate_bm_designator = > '1Test. "
    P_Costs = > l_costs,
    P_Cost_type_id = > l_cost_type_id,
    X_bom_header_tbl = > l_bom_header_tbl,
    X_bom_revisions_tbl = > l_bom_revisions_tbl,
    X_bom_components_tbl = > l_bom_components_tbl,
    X_bom_ref_designators_tbl = > l_bom_ref_designators_tbl,
    X_bom_sub_components_tbl = > l_bom_sub_components_tbl,
    X_bom_comp_ops_tbl = > l_bom_comp_ops_tbl,
    X_Err_Msg = > l_Err_Msg,
    X_Error_Code = > l_Error_Code);
    If l_Error_Code = 0 then


    because me in 1... l_bom_header_tbl. COUNTING LOOP
    V_bom_header_tbl.organization_code: = "DSC";

    Can assign us a table type of guy like below the registration statement?
    V_bom_header_tbl.assembly_item_name: is l_bom_header_tbl (i) .assembly_item_name;.

    k: = 1;

    I want to pass the l_bom_header_tbl (i) .assembly_item_name parameter in the declaration below: How do I do this?
    for j from 1... l_bom_components_tbl. COUNTING LOOP

    Can assign us a table type of type array as below the statement?
    v_bom_components_tbl (k). Assembly_Item_name: is l_bom_header_tbl (i) .assembly_item_name;.
    k: = k + 1;
    end LOOP;
    end loop;
    end;

    Published by: ILovePlSql on March 22, 2010 07:51

    Published by: ILovePlSql on March 22, 2010 08:16

    ILovePlSql wrote:
    V_bom_header_tbl emp % rowtype;

    If v_bom_header_tbl has just two fields as ename, sal then also the assignment of type table, record type work or if the record type and the array type have the same structure?

    Yes:

    SQL> declare
      2      type Bom_Head_Rec_Type is record(ename emp.ename%type,sal emp.sal%type);
      3      type BOM_HEADER_TBL_TYPE is table of Bom_Head_Rec_Type index by binary_integer;
      4      l_bom_header_tbl BOM_HEADER_TBL_TYPE;
      5      V_bom_header_tbl emp%rowtype;
      6  begin
      7      select ename,sal bulk collect into l_bom_header_tbl from emp;
      8      for i in 1 .. l_bom_header_tbl.count loop
      9        V_bom_header_tbl.ename := l_bom_header_tbl(i).ename;
     10        V_bom_header_tbl.sal := l_bom_header_tbl(i).sal;
     11      end loop;
     12  end;
     13  /
    
    PL/SQL procedure successfully completed.
    
    SQL>  
    

    SY.

  • Command button action is bean method. How to pass the ID parameter or reference?

    JDEV11gR1PS1/ADF

    The action of the button order is bean method, as follows:
     <af:commandMenuItem id="gbl_cmi_1" action="#{tbBean.action1}"/> 
    Bean code is something like
    public String action1() throws IOException {
    ...
    if (id.equals.("gbl_cmi_1"))...
    }
    Therefore, I would like to be able to know what the CommandButton ID, to be used in the assessment, etc..

    The reason is that several commandButtons are actually built dynamically as well and the action can be a redirect to URL. Therefore, I use the id to find what URL to redirect to.

    Ideas?


    Thank you.

    To do this, you have to use set listener(af:setPropertyListener) property to set an attribute in your bean or you use an action instead of the action listener (here you can get the source of the event).

    Timo

Maybe you are looking for

  • Profile of MDM installation fails outside our local network

    I'm trying to register an iPad outside LAN of our Organization. It is connected to the ATT cellular network and is able to see our management profiles very well. He sees our certificates and shows different warnings, I go ahead and press "install". T

  • Can I do a VI that is executable on cmd.exe?

    I want to do a VI that accepts command line arguments and prints the result on stdout. I also want to be executable on cmd.exe. I want such a command like "A.i arg1 arg2 arg3" to produce a few texts on stdout. Is this possible?

  • Windows XP/Skype/power save mode

    I'm on a Dell desktop computer with windows XP Edition version 2002 Service pack 3 family - which of course the warranty has expired.I have a Logitech C615 camera and have the latest version of Skype.  I can connect to Skype and stay there without an

  • extreme / normal / off function on my new XG270HU

    I have a new XG270UH and I can't find all the information on these parameters... "Extreme normal and wide"... What are they for and what are doing?... " Of course, I'm not running a card that has the characteristic of "Auto-sync" again... but hopeful

  • Sony UK apologize for John spokesperson about the jelly bean update for the Xperia 2011

    Don't forget John on Facebook, everybody by saying that some of the Xperia 2011 would not receive the update of Jelly bean, will be that I received a reply from someone who said it was a mistake,