Raise event from a JPDK portlet

Hi,
I'm using iAS 10g, Release 10.1.2.0.2.
I want to pass some parameters to a Discoverer portlet.
Currently I've accomplished this through a Simple Parameter Form, but there are some limitations:
-only 5 parameters
-parameters cannot be dynamically loaded
So the only solution I could think of is to create a JPDK portlet with a form where I enter the required parameters. The portlet has an event and some output parameters. Than map the event output to the page parameters.
However, I don't know how to raise the event.
Is there a way to accomplish that? Or can you point me in another direction than the JPDK portlet?
Please advise.
Thanks,
Cristiana.

i am not really sure but i remember that you cant interact with events in that version its available in 10.1.4 version
how about creating page parameters on that page, then link it from anotherwhere by adding the parameters at the end of the url.

Similar Messages

  • Raise event from within process chain

    Is there some way to easily raise an event from within a process chain?  The only way I know to do this is to run an ABAP program that raises the event.

    Hi Shashank,
    sorry for the delay: I didn't notice your question. Try this way.
    1 - define ABAP Report Z_EVENT_RAISER (see sample code below)
    2 - define a variant for this Report (Event Name mandatory)
    3 - Call ABAP Report Z_EVENT_RAISER from within your Proces Chain.
    This should work
    Hope it helps
    GFV
    *====================================================
    *& Report  Z_EVENT_RAISER                                              *
    REPORT  Z_EVENT_RAISER                          .
    selection-screen begin of block parametri with frame.
    parameters:
      EVENT like BTCH1250-EVENTID obligatory,
      PARAM like BTCH1250-PARAMETER.
    selection-screen skip.
    selection-screen end of block parametri.
    CALL FUNCTION 'BP_EVENT_RAISE'
      EXPORTING
        eventid                      = EVENT
        EVENTPARM                    = PARAM
      TARGET_INSTANCE              = ' '
    EXCEPTIONS
      BAD_EVENTID                  = 1
      EVENTID_DOES_NOT_EXIST       = 2
      EVENTID_MISSING              = 3
      RAISE_FAILED                 = 4
      OTHERS                       = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *====================================================

  • How can i raise events from a class?

    Hi all, i've a problem with events.. how can in java to raise an event and to catch him?
    For example i have ha class Counter like this:
    public class Counter
    int[] vettore = new int [10];
    int vetCnt = 0;
    void addNumber(int number)
    if (vetCnt < 10)
    vettore[vetCnt++] = number;
    for(int n=0;n<vetCnt;n++)
    System.out.print(vettore[n]);
    System.out.println();
    else
    System.out.println("Vector full!");
    The main class is like this:
    public class Main
    public static void main(String[] args)
    Counter cnt = new Counter();
    MyEventListener listener;
    cnt.addNumber(0);
    cnt.addNumber(1);
    cnt.addNumber(2);
    cnt.addNumber(3);
    cnt.addNumber(4);
    cnt.addNumber(5);
    cnt.addNumber(6);
    cnt.addNumber(7);
    cnt.addNumber(8);
    cnt.addNumber(9);
    cnt.addNumber(10);
    cnt.addNumber(11);
    cnt.addNumber(12);
    Now what i i want to raise an event that i can catch in the main class instead of print a message? I know how to do this in C#, but in Java is very different..
    Thank you

    newark wrote:
    ...to raise an event and to catch him?I'd also like it clarified how it was determined that an event is masculine.I've only ever heard of being manhandled.

  • Raise event from client side

    Dear Experts,
       I would like to raise a event to SAP server by using sapevt.exe.
    1. I have put sapevt.exe and DEFAULT.PFL in a special folder in the server and shared it.
    2. I have created a bat file with following commands and distributed it to client stations:
       net use z:
    sapserver\sapevt
       z:
       sapevt EVENT1 pf = DEFAULT.PFL
       net use z: /d
       exit
    3. When I run the bat file in client stations, event is not raised.
       Log in dev_evt:
       Trace File of External Event Raiser (Level = 0, Append = 1)
       EventID: EVENT1
       SAP message server host: sappserver
       SAP message server service (old): sapmsPRD
    ERROR ***: MsAttach (host=sappserver, serv=sapmsPRD), rc = -100
       But when I direct run sapevt.exe (sapevt EVENT1 pf = DEFAULT.PFL) in server side, event is raised successfully.
    Please advice how to fix it. Thanks.
    Edited by: Gundam Seed on Mar 9, 2009 4:10 PM

    Hi,
    Do you have the entry sapmsPRD in the services file on the client stations ?
    PS : Your technique is quite dangerous : Everybody will be able to trigger events...
    Regards,
    Olivier

  • Raise event from 3:d party application in iView

    Hi, I have two iViews that should communicate with each other, one is a Web Dynpro app, the other is a 3:d party application not at all related to SAP.
    The 3:d party app is hosted on a different server within the same domain as the portal.
    My question: Can I make the 3:d party app raise an event so that the portal can forward data to the Web Dynpro iView?
    The portal has the url:
    http://saputv02.company-out.local:51300/irj/portal
    And the 3:d party app:
    http://s5721.company-out.local:8080/
    I included this in a JSP page on the 3:d party app:
    <script src="http://saputv02.company-out.local:51300/irj/portalapps/com.sap.portal.epcf.loader/script/optimize/js13_epcf.js?6.45000804"></script>
    <script type="text/javascript">
              EPCM.raiseEvent( "urn:com.sap:BWEvents","BWiViewevent", "Raise this text", null );
    </script>
    But I get the javascript error message: Access Denied.
    Is this possible to achieve?
    Regards
    Emil Sandin
         </script>

    In other words, the 3:d party app sends an event like this:
    <script src="http://saputv02.company-out.local:51300/irj/portalapps/com.sap.portal.epcf.loader/script/optimize/js13_epcf.js?6.45000804"></script>
    <script type="text/javascript">
              document.domain = "company-out.local";
              EPCM.raiseEvent( "company-out.local","myEventName", "a text");
         </script>

  • Object does not match target type when raising an event from c# to VB6

    I have a c# .net DLL that I use from a VB6 app. It exposes an event,
    and the VB6 app is sinking it.
    The VB6 app is receiving the event, as long as it is raised from the
    main thread of the .net DLL.
    I have an aync task being handled inside the DLL (delegate BeginInvoke). Any
    attempt to raise the event from within that thread casuses the reported
    error, even from within the AsyncCallback function, when the thread is ending.
    I noticed that the delegate for the event is not declared inside the
    interface. It's in that module, but above the interface definition:
        [ComVisible(false)]
        public delegate void LoggingEventHandler( string logData );
    The event is declared in the class itself as:
        public class Processor : _Processor
            public event LoggingEventHandler        LogNotification;
    Finally, to raise the event:
    if ( this.Completed != null )
        this.Completed( true );
    If I open the tlb with OLEVIEW, I can see the public event just fine. Of course, I expected to, as it's working up until the helper thread kicks in.
    Now for the REAL WIERD PART! This DOES work on several servers that have
    been in production for months. It's just this one server that it won't work
    on. Same code. Resinstalled/registered it 1,000 times. It took me a while to
    find that an error was even occuring, since it was being raised in the
    seperate thread. In other words, I'm receiving the event just fine on a series of servers. This is a new machine we're trying to bring online. I suspect it's environmental, but I can't figure it out.
    I don't understand why the publisher would be expecting a certain type of
    subscriber in the first place... unless the error is really triggered by the client when the event reaches it. I've put logging into the client, though, and the first line of code inside the event is not being executed.
    For the VB6 app, I reference the tlb file that is automatically created when
    I compile (Interop is checked). I unregistered and re-registered the tlb on
    the server. I regasm'd the dll itself. All dlls are in the same folder - not
    in the GAC.
    The stack trace is as follows:
       at System.RuntimeType.InvokeDispMethod(String name, BindingFlags
    invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32
    culture, String[] namedParameters)
       at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr,
    Binder binder, Object target, Object[] args, ParameterModifier[] modifiers,
    CultureInfo culture, String[] namedParameters)
       at System.RuntimeType.ForwardCallToInvokeMember(String memberName,
    BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
    msgData)
       at HPFS.Queue.IProcessorEvents.LogNotification(String logData))

    This is driving me nuts!
    I sure would appreciate any suggestions.
    I got this working on one of the two machines. The other machine had some other issues, so I had it re-imaged. It's been so long since I fixed the first one, that I can't remember exactly how I did it. Plus, I did so many things to it over two weeks, that I never really felt confident, anyway. But ... I could *swear* that the last thing I did back then to get this event to flow was to re-register the DLL's TLB.
    So ... This is win 2k with FW 1.1 + SP1.
    Completed is the delagate I'm trying to invoke.
    this.Completed.Target.GetType().Name = "__comobject"
    I've tried everything. Unregistered the .tlb. Unregistered the .net DLL. Verified that the app completely failed while unregistered. Created the TLB using RegAsm /tlb syntax.
    I tried using CLR SPY. It registers nothing. It only lets me pick an EXE. This is a DLL tring to raise to an EXE.
    I've looked at the TLB in OLE VIEW and I just don't know what I'm looking at.
    Is there any other tool or technique I can use to audit/monitor/trap this? .net is giving me *** for details about what's failing. I wish I could somehow debug into exactly what it's trying to do and get more details on the failure.
    Here's the error I'm getting:
    (Code -1) Object does not match target type.<Source:mscorlib>(Stack:    at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
       at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters)
       at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
       at HPFS.Queue.IProcessorEvents.Completed(Boolean success)
       at HPFS.Queue.Processor.RequestDone())
    Processor = the DLL I'm trying to raise the event from.
    IProcessor = the event interface that's exposed through COM.

  • How to raise an event from a program

    Hi,
    I am creating a workflow for HR, the person will request a basic pay change than, this will start the workflow. For this i am making a screen from where i need to triger the event for the workflow.
    Does anybody has any idea? of how to raise an event from a program. or has anybody worked on a scenario like this
    Khusro Habib

    You can also use the FM SAP_WAPI_CREATE_EVENT which is a little newer I think. (I don't have access to a system today so that may not be the exact name of the FM but if you search SE37 under SAPWAPIEVENT* you should find it.
    the parameters will be the event name, and the object key.  The object key will be the key field of the workflow object you are using. 
    For example if you were using the saled document object then the object key would be the sales document number.  Carefull how you enter the object key, it can be a little tricky on whether or not you need the leading zeros in the input parameter. 
    Hope this helps.
    Brent

  • Raise an event from do_prepare_output

    Hi All,
    I have a requirement where I need to raise an event after having defaulted a value in a dropdownlist field.
    I'm working on component BT120H_CPL/NewComplEF.
    Here I have to default a value in the field REFOBJECTTYPE (context node NEWCOMPL). This is not a problem, I actually managed to write my logic in the do_prepare_output.
    My problem is that upon selecting a value for this field the event ONREFOBJECTTYPE is executed, unfortunately if I default a value the server_event 'select' is not triggered and the sub-screen ExtRefItemEL is not called.
    Do you know how to push/simulate an event from do_prepare_output in order to call the sub-screen immediately?
    Thanks in advance
    Paolo

    Hi Paolo,
    You can call the event handler ONREFOBJECTTYPE
    from do_prepare-output by calling
       CALL METHOD me->eh_ONREFOBJECTTYPE
    *  EXPORTING
    *    htmlb_event    =
    *    htmlb_event_ex =   .
    please try and tel me know.
    Regards,
    Taity

  • Raise business events from BPEL

    How to raise business events from BPEL process?
    Related questions -
    1. Is it possible or good to address this by embedding Java code in BPEL process that raises the business event? If so, what additional jar files should be included?
    2. Any links on API to raise the business events from Java code?
    3. Any links that describe how to raise the business events from BPEL process?

    Hi Guillaume,
    Thanks for your reply.
    Please find below environment details.
    EBS 11.5.10,
    Stand alone SOA Suite v10.1.3.1
    Oracle Apps Adapter
    I am trying to capture PO approval event ('oracle.apps.po.event.xmlpo') raised by BES in BPEL PM.
    I see in the BPEL PM logs that there is a handshake happening between EBS-BES and BPEL PM. But after the handshake, some XML DOM parser errors are thrown.
    I have pasted the error seen in BPEL PM log below
    <2007-08-01 11:33:18,000> <INFO> <default.collaxa.cube.engine> <CubeEngine::loadAllProcesses>
    26 processes have been loaded for BPEL domain "default".
    <2007-08-01 11:34:18,750> <ERROR> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_readMessage: Received TranslationException
    <2007-08-01 11:34:18,750> <ERROR> <default.collaxa.cube.activation> <AQ Adapter::Inbound>
    ORABPEL-11211
    DOM Parsing Exception in translator.
    DOM parsing exception in inbound XSD translator while parsing InputStream.
    Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
         at oracle.tip.pc.services.translation.xlators.xsd.XSDTranslator.translateFromNative(XSDTranslator.java:139)
         at oracle.tip.adapter.aq.database.MessageReader.translateFromNative(MessageReader.java:1179)
         at oracle.tip.adapter.aq.database.MessageReader.readMessage(MessageReader.java:533)
         at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.run(AQActivationSpecDequeuer.java:189)
         at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
         at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:272)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:291)
         at oracle.tip.pc.services.translation.xlators.xsd.XSDTranslator.translateFromNative(XSDTranslator.java:134)
         ... 6 more
    <2007-08-01 11:34:18,750> <ERROR> <default.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_readMessage: Received TranslationException
    <2007-08-01 11:34:18,750> <ERROR> <default.collaxa.cube.activation> <AQ Adapter::Inbound>
    ORABPEL-11211
    DOM Parsing Exception in translator.
    DOM parsing exception in inbound XSD translator while parsing InputStream.
    Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
         at oracle.tip.pc.services.translation.xlators.xsd.XSDTranslator.translateFromNative(XSDTranslator.java:139)
         at oracle.tip.adapter.aq.database.MessageReader.translateFromNative(MessageReader.java:1179)
         at oracle.tip.adapter.aq.database.MessageReader.readMessage(MessageReader.java:533)
         at oracle.tip.adapter.aq.inbound.AQActivationSpecDequeuer.run(AQActivationSpecDequeuer.java:189)
         at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
         at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:272)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:341)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:291)
         at oracle.tip.pc.services.translation.xlators.xsd.XSDTranslator.translateFromNative(XSDTranslator.java:134)
         ... 6 more
    From the initial assessment, it looks like the event schema defined in BPEL PM and BES event schema mismatch. But I do not know, how to correct it.
    Please let me know, if you have any suggestions in overcoming this issue.

  • Programatically raise Contextual Event from a ClientEvent

    Hi,
    JDev v11.1.2.0.0.
    Earlier I had a event raised on the value change of my inputText component. But due to certain requirement, I had to discard the valueChange and had to do that same logic using clientListener and serverListener. But the problem now is, the contextual event is not getting raised and I'm looking for a way to raise the specific event on the ClientEvent method that is bound to the serverListener on my fragment.
    I've checked lot of blogs but most of it are talking about raising the event programatically on ValueChange or ActionEvent. Any thoughts? Appreciate any help on this. Thanks !
    Edited by: 119413 on Mar 14, 2013 10:29 AM

    Ok. Finally, I ended up invoking a hidden button click action in my client listener and raised the event from the ActionEvent bound to that button. Let me know if anyone could think of better options.. Thanks !
    Edited by: 119413 on Mar 15, 2013 10:40 AM
    Edited by: 119413 on Mar 15, 2013 10:41 AM

  • ALV Grid editable - How to raise the data_changed event from outside object

    Hi,
    i'd like to like to raise the data_changed event from outside the ALV-Grid object in order to display errors to the user.
    For example a new row was inserted within the program. The user has only to complete the missing informations. Before saving the transactions the program has to execute some semantic checks. The errors of this check process should be shown to the user by creating an instance of the cl_alv_changed_data_portocol object.
    Thanks.
    Regards

    You don't need to raise the data_changed event to perform the edits or to issue messages using cl_alv_changed_data_protocol.
    The following assumes you have an ALV grid object g_alv based on the CL_GUI_ALV_GRID class.
    You can mark the inserted records upon insertion as selected using the set_selected_rows method, and then retrieve these rows later using get_selected_rows and perform necessary edits.
    Save the row number of each inserted row into a table of the appropriate type (see the method definition for this):
    DATA: t_index_rows    TYPE  lvc_t_row.
    DATA: s_row_no        TYPE  lvc_s_roid.
    DATA: t_row_no        TYPE  lvc_t_roid.
    Load entries into t_row_no after each insert.  Capture the row number and save in the table t_row_no.
    e.g.
    PERFORM insert_row USING s_row_no-row_id.
    APPEND s_row_no TO t_row_no.
    FORM insert_row would have whatever code you are using to insert the row.  Save the row id into s_row_no-row_id (which is an INT4).
    When done with all inserts do the following
      IF t_row_no[] IS NOT INITIAL.
        CALL METHOD g_alv->set_selected_rows
          EXPORTING
            it_index_rows            = t_index_rows
            it_row_no                = t_row_no
            is_keep_other_selections = 'X'.
      ENDIF.
    Then, if SAVE is pressed without the data_changed event having been raised (such as if the user just pressed SAVE without changing anything), use method get_selected_rows to retrieve the rows that were inserted and perform the necessary edits.
      DATA: l_t_rows    TYPE lvc_t_row.              " ALV control: Table rows
      CALL METHOD g_alv->get_selected_rows
        IMPORTING
          et_index_rows = l_t_rows.
    Loop through l_t_rows and use the row as an index into the grid, perform the necessary edits, just as you would if the data_changed event had been raised.
    If any edits fail, then send messages to the user, abort the save, and re-display the grid.
    Remember to refresh the t_row_no and t_index_rows tables if you load a new data set.
    You can also use a similar technique with the data_changed event to mark each changed row as selected by saving the row ids, and then you only have to update the changed rows on SAVE, which can minimize database I/O.
    Good luck.
    Brian

  • How do I raise a Business Event from a OAF page?

    Hello,
    I am developing a custom system using the OAF and need to raise a custom Business Event, which in turn will have a subscription to launch a workflow process.
    How do I raise a Business Event from a OAF page ?
    Can I use the classes in oracle.apps.fnd.wf.bes.* ?
    Any help would be highly appreciated.
    Best Regards,
    Andries Hanekom

    Hi,
    When I try to compile just the basic part of my class I receive the following error:
    Error(21,36): cannot access class javax.jms.TextMessage; file javax\jms\TextMessage.class not found
    Class Code:
    import oracle.apps.fnd.wf.bes.BusinessEvent;
    public class VscmsEvents
    public VscmsEvents()
    public static void main(String[] args)
    VscmsEvents vscmsEvents = new VscmsEvents();
    //Initialize BusinessEvent, Payload objects
    public void initEvent(String eventName, String eventKey, String eventData)
    //Create BusinessEvent Object
    BusinessEvent mEvent = new BusinessEvent(eventName, eventKey);
    Furthermore, when using the BusinessEvent object to raise the event I will need to provide the raise method with a java.sql.Connection parameter. In the context of a OAF page how will I perform this?
    Thanks for the help.
    Best Regards,
    Andries Hanekom

  • Can I raise cProject Task event from cProject Phase workflow?

    Hi,
    I need modify release logic of the cProject's task.  I am developing the phase release workflow.  In this workflow I want to trigger workflow to sequential release every tasks that belong this phase.  I developed a Z method of BUS2173 (Phase) and call the BAPI_BUS2173_GET_TREE, then I got Task_IDs of all of the tasks, but I do not know how to get the TASK BOR reference with these TASK_IDs.
    Can I get TASK BOR reference and raise its event from a method of the PHASE BOR ?
    Thanks.
    Arrow Yang.

    Hi  Barry,
    According to your description, my understanding is that you want to save and close the initial form when you  approve/reject the task.
    For a workaround, you can take steps as below:
    1.Open your site using SharePoint Designer, go to Workflows, click the approval workflow.
    2.On the workflow property screen, there is a Forms area should have an InfoPath form named Approval.xsn. You can click the link to open the form in InfoPath.
    3.Customize the task form for displaying and editing the initial form value.
    4.Customize the “Approve” button rule for  setting the form value.
    Reference:
    http://blogs.msdn.com/b/edhild/archive/2011/06/01/creating-custom-workflow-task-approval-forms-with-sharepoint-designer-2010.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Handle Portlet event from portal.

    Hi all,
    I wander that we can handle a event is issued by portlet in the portal?
    Example: when I click a command-Link on the portlet, then portal can catch some info of this action I did in the portlet.
    Do you have any idea about it?
    Thanks a lot!
    Edited by: AS84 on Oct 26, 2012 8:26 AM

    Hi again.
    I'm busy at the moment but you have to follow this steps:
    As Producer side (your Portlet):
    - Click on your ADF Component (CommandLink or CommandButton) that you want to generate an event.
    - In Properties Inspector you'll see "Contextual Events" pane. Select in "+" and add new Event.
    As Consumer side (your portal page):
    - Generate a class called EventCosumer or something similar to handle events.
    - Create a method to handle your event: For example
       * Metodo manejador del boton pulsado
       * @param customPayLoad El texto del boton pulsado
      public void handleButtonEvent(DCBindingContainerValueChangeEvent or String customPayLoad) { // It depends of the payload of you want to share
        // Take that you want of value passed
      }- Generate a DataControl from your EventConsumer Java (Right click -> Generate Data Control).
    - Create a methodAction binding in your pageDef.
    - In your pageDef in Contextual Events tabs, subscribe your pageDef to the event generated by EventConsumer.
    This is basically the steps to do all programmatically. Remember that you can subscribe and consume payLoad values in Runtime too :).
    Regards.
    Reference links:
    - My own blog entry (Spanish): http://www.danielmerchanoracle.blogspot.com.es/2012/05/adf-11g-eventos-contextuales.html
    - Frank Nimphius ADF sample about Contextual Events: http://www.oracle.com/technetwork/issue-archive/2011/11-may/o31adf-352561.html
    - Yannick Ongena Blog entry: http://yonaweb.be/inter_component_communication_between_taskflows_adf_and_webcenter
    Edited by: Daniel Merchán on 29-oct-2012 10:43

  • Calling User Preference event from within portlet

    Not sure if anybody else has looked at this but we are in the process of rolling out a new G6 Portal and on a number of portlets want to take advantage of the ability to turn off the portlet header. However in doing so you loose access to the inbuilt support for providing access to the User Preference, if one has been defined as part of the portlet definition. This is relevant on a number of portelts that we want to migrate to the new G6 portal.
    So rather than try and re-invent this from scratch using a different 'link' in the portlet itself we were wondering if you can 'call' the inbuilt user preference functionality from within the portlet code. i.e. When a user clicks on the link within the portlet it performs exactly the same action and interaction within the portal as if they clicked on the User Preference icon in the portlet header.
    We have had a look around to see if this is possible but not come up with anything yet so thought we would seek comments from this forum.
    Many thanks in advance,
    Ross Ellard
    Devonport Management Ltd

    Hey Ross,
    I just realized I have to do the same thing on a very limited scale (3-5 portlets).
    SO I just wrote a little bit of (shoddy) code to show community preferences based on group membership.
    It works for me, but I get the feeling your looking for something like communityactionsdata geared toward portlets, which unfortunately I dont think exists. If you put it in as an enhancement request then support will contact you to discuss your options.
    Here is the code that I'm using for now:
    <pt:standard.choose>
    <pt:standard.when pt:test="stringToACLGroup('group=1,755,760;').isMember($currentuser)">
    <immg border="0" src="htttp://localhost/imageserver/plumtree/portal/public/img/action_portlet_edit.gif">
    </pt:standard.when>
    </pt:standard.choose>
    The only problem is that the preferences submit button refreshes the popup to the portal. So I might need to tweak that a hair so it just closes the popup.
    edited to prevent the forum from trying to use the code I provided
    Message was edited by:
    geoffgarcia

Maybe you are looking for

  • 9i database patchset upgrade

    Hi, I have to upgrade 9i database from 9.2.0.6 to 9.2.0.8. If you will provide me Metalink DOC ID and issues if any faced during this upgrade.Also please mention best back out policy and if any cpu patch needs to be applied. I think we can apply oct

  • I can not boot my mac book air

    I can not book myMac book air withaut power cabel . Power shows 96 % power .

  • Essbase error currently multiple reports per retrieval not supported

    Hi, One of my users got this error message while working on Essbase Excel add-in. "currently multiple reports per retrieval not supported". Any suggestions why do we get this error and what changes have to be to made to avoid it? Thanks, Junaid

  • Best Swing tutorial?

    I've always wanted to get into Swing, but I have two left feet. Okay, so in all seriousness I was wondering what you think the best Swing tutorial is? I'd prefer online to paper, but I'm open to any suggestions. As to what I want to do with Swing, I

  • Fonts going missing mac cs3

    hello, i have been stuck with this problem for weeks now. i have a number of fonts that have gone missing from the font list. I get prompted upon opening files (that i previously built in fireworks) that the font cannot be found and needs replaced. i