Setting up Flexfield Context Value programmatically in Custom.pll

I need to default the context value of my DFF based on user profile/responsibility, How do I assign a value to context value field in custom.pll?
Thanks,
AJ

Hi John,
I got the same issue. Is yours being resolve yet?
Can you share the solution.
Thanks.

Similar Messages

  • How to set the default context value for flexfield in OAFramework pages

    Hi,
    I have a page which contains a contexxt value field i.e Flexfields
    To select the context value we have to select the value from drop down
    So Here we want to display the context value immediately when the page is called
    How to set the default valu in this case
    Regards,
    Krishna

    You can set the Attribute category view attribute to the Flexfield context value and call prepareforRendering in the flex bean. Check the dev guide for details.
    Regards
    Sumit

  • Setting property  for context value attributes

    hi experts,
      created a value attribute[XYZ] in context and i want to set that value attribute type as
    com.sap.tc.webdynpro.services.session.api.IWDWindow
    From properties am not finding the above path.
    please provide the valuable information.

    hi sham,
               my question is solved.thank's for u r help
    my next task is connecting the backend  BW using jco connections.
    SingleServer
                               Host Name:
                                System Number:
                                 SAP Router:
    User Account:
                                                                              Client:
                                                                                Logon name :
                                                                                 Password:
                                                                                 language:
    where do i get  these details .is this possible to get these details from development mechine.i do have access to enterprise portal.
    Thank's&Regard's,
    Prashanth.

  • Setting QueryDescriptor's attribute values programmatically

    Hi all,
    How can I set the attribute value(s) in a query descriptor programmatically? From the query descriptor you can get a handle on a particular attribute criterion which has a getValues() but no setValues(). Can this be done?
    Also, is it possible to programmatically switch a query panel from basic mode to advanced mode and vice versa?
    I am using JDeveloper 11.1.1.7
    Thanks,
    Bill

    Hi Timo,
    Your suggestion worked after a little bit of tinkering around. I assumed that AttributeCriterion makes a defensive copy of the list before returning it, however this isn't the case. In fact. it returns a list of type FaceCtrlSearchingBinding$AdfCriterionValues which does not behave as expected.
    The following prints null:
    List values = attributeCriteria.getValues();
    values.clear();
    values.add("1100254");
    System.out.println(values.get(0));
    While doing it this way prints the expected value "1100254":
    List values = attributeCriteria.getValues();
    values.clear();
    values.set(0, "1100254");
    System.out.println(values.get(0));
    Thanks,
    Bill

  • I need an urgent help to set manually the context value of es ProxyService.

    I have a proxyservice that has this context structucture:
    xmlns:ns20="http://skat.dk/etil/2011/02/11/">
    <ns:Kontekst>
    <!--You may enter ANY elements at this point-->
    <AnyElement/>
    </ns:Kontekst>
    waht have to do is that when the proxyservice that has this context is called I want to create the following
    xmlns:ns20="http://skat.dk/etil/2011/02/11/">
    <ns:Kontekst>
    <TransaktionsID>2008-00-00_00000000</TransaktionsID>
    <TransaktionsTid>2008-01-01T00:00:00.000+00:00</TransaktionsTid>
    </ns:Kontekst>
    where the date and transaction id is randomly generated on the esb.
    is there a way to do this for example xquery if so an example will be very welcomed.
    or if in java way example will be welcomed

    This one does not have any validation error, but I don't get any data in my response
    <ns:Kontekst xmlns:ns20="http://skat.dk/etil/2011/02/11/">
    <TransaktionsID>fn-bea: uuid()</TransaktionsID>
    <TransaktionsTid>fn:current-dateTime()</TransaktionsTid>
    </ns:Kontekst>
    The response from proxyservice call.
    Message Context Changes
    added $resp
         <ns:Kontekst      xmlns:ns20="http://skat.dk/etil/2011/02/11/" xmlns:ns="http://rep.oio.dk/cpr.dk/xml/schemas/core/2005/03/18/">
         <TransaktionsID>fn-bea: uuid()</TransaktionsID>
         <TransaktionsTid>fn:current-dateTime()</TransaktionsTid>
         </ns:Kontekst>

  • The value in flexfield context reference web bean does not match with the value in the context of the Descriptive flexfield web bean BranchDescFlex. If this in not intended, please go back to correct the data or contact your Systems Administrator for assi

    Hi ,
    We have enabled context sensitive DFF in Bank Branch Page for HZ_PARTIES DFF , We have created Flex Map so that only bank branch context fields are only displayed in the bank branch page and  as we know party information DFF is shared by supplier and Customer Page so we dint want to see any Bank Branch fields or context information in those pages.
    We have achieved the requirement but when open existing branches bank branch update is throwing below error message :
    "The value in flexfield context reference web bean does not match with the value in the context of the Descriptive flexfield web bean BranchDescFlex. If this in not intended, please go back to correct the data or contact your Systems Administrator for assistance."
    this error is thrown only when we open existing branches, if we save existing branch and open then it is not throwing any error message.
    Please let us know reason behind this error message.
    Thanks,
    Mruduala

    You are kidding?  It took me about 3 minutes to scroll down on my tab to get to the triplex button!
    Habe you read the error message? 
    Quote:
    java.sql.SQLSyntaxErrorException: ORA-04098: trigger 'PMS.PROJECT_SEQ' is invalid and failed re-validation
    Check the trigger and it should work again.
    Timo

  • Unable to set DFF context value

    Hi,
    i want to set DFF context value with a variable, so i tried first to set it with a constant.
    in the controller's PR
    super.processRequest(oapagecontext, oawebbean);
    // first, find the flexfield's handle
    OADescriptiveFlexBean oaDFF;
    oaDFF = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("DescFF");
    oapagecontext.writeDiagnostics(this,"oaDFF=>"+oaDFF ,1);
    // default the Attribute Category (DFF context)
    oaDFF.setFlexContext(oapagecontext,"QuietanzaErarioStato");
    oaDFF.processFlex(oapagecontext);
    but it doesn't take any effect, the context's pickilist remains blank.
    However i tried the same code with another DFF and it worked. i am wondering if there is some differences between the two DFF.
    Any help will be appreciated, it'quite urgent
    Thanx

    Hi,
    Please create a new region thru personalization before the region where u r DFF is present. Use re-order to take the new region before the DFF region.
    Set the controller to that new region and the code that you mentioned. This process will sets the context.
    Kindly refer the dev guide as i found the above solution from devguide it self.
    Thanks
    Raghava

  • Setting Default values for field using custom.pll

    Hi All,
    I have an rquirement to set the default values on Meterial Tranasction screen for some condition
    I tried it in both ways via Form Personalization and using custom.pll
    i m using the following code in custom.pll
    form_name      varchar2(30):= name_in('system.current_form');
    block_name varchar2(30):= name_in('system.cursor_block');
    trx_type           varchar2(30);
    subinv                varchar2(30);
    begin
    if form_name='WIPTXMAT' and block_name ='MTL_TRX_LINE' then
    if event_name ='WHEN-VALIDATE-RECORD' then
         trx_type:=name_in('WIPTXMAT.TRANSACTION_TYPE');
    if trx_type ='WIP Return' THEN
         copy(10,'MTL_TRX_LINE.TRANSACTION_QUANTITY');
              copy(10,'MTL_TRX_LINE.NUMBER_OF_LOTS_ENTERED');
              sinv:=trim(name_in('MTL_TRX_LINE.SUBINVENTORY_CODE'));
              if sinv is null then
                   copy(subinv,'MTL_TRX_LINE.SUBINVENTORY_CODE');
                   copy(fr_locator,'MTL_TRX_LINE.LOCATOR');
                   FND_MESSAGE.SET_STRING(sinv);
                   FND_MESSAGE.SHOW;
              end if;
         end if;
    end if;
    end if;
    end event;
    Problem is that default values are getting set but not for all rows . if there are 4 records then values are set for only first 2 rows and if there are 2 rows then defaults are set for 1st row only.
    Same behaviour happens when i do it via form personalization
    i couldn't understand the behaviour of WHILE-VALIDATE-RECORD event..
    Please provide some suggestion on it. its really urgent.
    Thanks in Advance
    Renu

    Works Now...

  • Help Needed in Input Value Help of Custom Set attribute

    Hi All,
    We have maintained value table for custom set type attribute. We generated UI configuration for this set type and brought it into the web UI. But, we did not get the value help on the UI.
    We are trying to get the value help by implementing the BADI crm_prdgenset_valuehelp. This BADI returns object of type cl_bsp_wd_valuehelp_f4descr.
    PFB the code that is showing up the Value help icon but it is not showing any values.
      DATA: lv_valuehelp_descriptor type ref to cl_bsp_wd_valuehelp_f4descr.
    *    lv_fname_prefix = 'STRUCT'.
       ls_map-context_attr = component.  "ZCSDR_PRD_CLS
       ls_map-f4_attr = 'KEY'.
       INSERT ls_map INTO TABLE lt_outmap.
       INSERT ls_map INTO TABLE lt_inmap.
       CONCATENATE 'ZCSDR_CLS' 'ZZ0010' INTO lv_help_id SEPARATED BY '-'.
       CREATE OBJECT lv_valuehelp_descriptor
         TYPE
           cl_bsp_wd_valuehelp_f4descr
         EXPORTING
           iv_help_id                  = lv_help_id
           iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
           iv_input_mapping            = lt_inmap
           iv_output_mapping           = lt_outmap
           iv_trigger_submit           = ABAP_TRUE.
       rv_valuehelp_descriptor = lv_valuehelp_descriptor.
    Any pointers on this is really helpful.
    Thanks,
    Udaya

    Hi Chand,
    Sorry for the late response. As far as i recollect, i guess we have enhanced the setter getter methods and written logic in the get-v method.
    Let me know if the issue is resolved.
    regards,uday

  • How to set a 3 default values for a dependent key flexfield

    hi,
    I have an inquiry in oracle applications 11i - Oracle General Ledger module, Accounting Key flexfield structure.
    we have an independent key segment PROJECT and a dependent key segment SUB-PROJECT.
    Can we define 3 dependent value for the SUB-PROJECT to be the default for any new entered value in the PROJECT segment??
    e.g creating 3 default SUB-PROJECT values: X, Y, and Z. Any new value entered to the PROJECT key segment will have X, Y and Z by default as it's SUB-PROJECTS.
    If the above scenario is possible, please guide me to the best solution...
    Thank you...

    I can find that the value set of any dependent value set has only one room for a default value.
    What are the implications of creating a new Independent value set and assign it to the SubProject segment, on historical data and reports?
    thank you...

  • Setting a default initial value to a CHAR type field in a custom table

    Is it possible to set a default initial value to a field in a customer table(Ztable) that is not SPACE?  SAP sets the initial value to " " space for datatype CHAR.
    I am looking at creating a field in a table that would always default to 'X' on creation of a new row.
    Your response is appreciated..

    Hi,
    I believe this cannot be done..
    If you are inserting the row through a program then you can insert the field value to be 'X'.. If the value is not passed ..Then it will be blank..
    If you are using table maintenance then in the PAI ..you can insert values..
    Thanks,
    Naren

  • BizTalk Host Application Adapters - Set Client Context Values

    http://technet.microsoft.com/en-us/library/bb726925(v=bts.10).aspx
    Client Context
    The schema provides the node, TIClientContext, allowing context values to be passed. There are several Client Context properties supported by the adapter, listed in Table 7. However, only two are exposed via the messages passed to the adapter as attributes
    on the root node - the user’s Host credentials to use for the call and the connection timeout value. The Allow Security Overrides property works in conjunction with Client Context and allows the User and Password to be taken from the TIClientContext node in
    the message and used to make the Host program call. In order to access the others, a property schema must be created to add them to the BizTalk Server message context. All of the properties are in the http://microsoft.com/HostApplications/TI/WIP namespace.
    Once created, any of these properties can be set via the BizTalk Message Context.
    Question:
    I am trying to pass LibNameOverride in the Message. I created a property schema and added this promoted property. I am trying to set this value in the Message, but not succesful.
    I tried in the below mentioned ways but not successful
    <ns0:LibNameOverride>ABCDEFG</ns0:LibNameOverride>
    or
    <ns0:TIClientContext TIContextKeyword="LibNameOverride" TIContextValue="ABCDEFG" />
    Thanks, Pavan MCTS-Microsoft Biztalk Windows Server 2010

    Please verify the file version of Microsoft.HostIntegration.Adapters.MsTI.Runtime.dll in the %SNAROOT% folder just to make sure the version.
    You might want to try passing PortOverride with an invalid port to see if you get an error in the Application Event log indicating a problem with the connection indicating that the target machine actively refused the connection and it will include the IP
    address and the invalid port. It is an Event 102 message.
    I passed the following in my sample HIS 2010 Application:
    <ns0:BAHA_ELMLink_GetBal__Accounts__GetBalance__Request TIAssemblyVersion="1.0" xmlns:ns0="http://microsoft.com/HostApplications/TI/WIP">
      <ns0:GetBalanceInDocument>
        <ns0:NAME>Kim Akers</ns0:NAME>
        <ns0:ACCNUM>123456</ns0:ACCNUM>
      </ns0:GetBalanceInDocument>
      <ns0:TIClientContext TIContextKeyword="PortOverride" TIContextValue="7555" />
    </ns0:BAHA_ELMLink_GetBal__Accounts__GetBalance__Request>
    I don't have an AS/400 sample setup, but this test proved that I could pass a client context property in the input XML to my Send Port.
    Also, make sure that you have the "Allowed Advanced Overrides" option in the Send Port set to "Yes" to enable client context override keywords.
    Thanks...
    Stephen Jackson - MSFT

  • Setting value in input combo box list of values programmatically.

    Hi,
    I have the following requirement.
    I have a combo box LOV defined in the column of application table. Whenever the user is trying to change this value, I need to check for a condition and invoke a warning popup with yes/no button and allow the user to change if dialog outcome is 'yes'. If the outcome is 'No', then i need to reset the combo box to its original value. To do this, in the valuechangelistener of LOV, I am invoking the warning popup and control will coming out of the valuechangelistener and dialog listener will be called.
    How do i set the combo box value in dialog listener ? and How do I retain the existing value of the LOV if user clicks on 'No' button.
    Jdev Version : Build JDEVADF_11.1.1.7.0_GENERIC_130226.1400.6493
    Thanks in advance.
    Harish

    You could, for example. store both of them (old value, along with new one) in the pageFlowScope. You can do that in the valueChangeListener (before calling popup), and use them in the dialog listener...

  • Create Partial Fire action on DFF context value in controller extension

    Hi All,
    I have a requirement where I will have to default the DFF attribute value based on the context value chosen in the same DFF.
    Since the page is a seeded page i have done that using Controller Extension.
    I have followed the below steps.
    1.I have created one class file XXR2R_AR_BANK_ACCT_EXTCO
    2. In that file I have written the following piece of code
    +public class XXR2R_AR_BANK_ACCT_EXTCO extends UpdateExtBankAcctCO {+
    public void processRequest(OAPageContext oapageContext,
    OAWebBean webBean)
    +{+
    super.processRequest(oapageContext, webBean);
    OADescriptiveFlexBean dfb =
    +(OADescriptiveFlexBean)webBean.findChildRecursive("FlexField");+ // This is the ID of the flexfield defined in seeded page
    FireAction firePartialAction = new FirePartialAction("contextvalchng");
    +}+
    public void processFormRequest(OAPageContext pageContext,OAWebBean webBean)
    +{+
    super.processFormRequest(pageContext, webBean);
    if ("contextvalchng".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    +{+              
    super.processFormRequest(pageContext, webBean);
    OADescriptiveFlexBean dffBean =
    +(OADescriptiveFlexBean)webBean.findChildRecursive("FlexField");+
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject extVO =
    +(OAViewObject)am.findViewObject("ExtBankAccountsVO");+ *// This is the view name corresponding to the DFF fields*
    String str = "" ;
    OARow row = null;
    if (extVO!=null)
    +{+
    row = (OARow) extVO.getCurrentRow();
    if (row!=null)
    +{+
    str = (String)row.getAttribute("ATTRIBUTE_CATEGORY"); *// here I have retrieved the context value of the DFF*
    +}+
    +}+
    dffBean.processFlex(pageContext);
    if ("DEN".equals(str)) *// if the context value is "DEN" then only the defaulting will be done*
    +{+
    OAMessageTextInputBean mnum = (OAMessageTextInputBean)webBean.findChildRecursive("FlexField1");
    mnum.setText("599956");
    row.setAttribute("ATTRIBUTE13","6995");
    +}+
    3. After compiling the .jave file I have placed the .class file in the CUSTOM_JAVA_TOP location and in the seeded page I have placed this CUSTOM_JAVA_TOP top path (in the personalize page section)exactly in the same way where the .class file is.
    But when I am changing the context value in the DFF nothing is actually happening.It is never including the custom file behavior.
    Please let me know if I am wrong in my coding or my approach.
    Thanks
    Sudie
    Edited by: user10816003 on Jun 21, 2010 5:54 AM
    Edited by: user10816003 on Jun 21, 2010 5:55 AM

    Hi,
    I think you need to set PPR on one of the segment of the DFF. Following is the code snippet I found few days back in forum. Use this in processRequest() method to set the PPR.
    OADescriptiveFlexBean oadescriptiveflexbean = (OADescriptiveFlexBean)webBean.findIndexedChildRecursive("ASNPrdtAddInfoFF"); //DFF ID...in your case it is "FlexField"
    if(null != oadescriptiveflexbean)
         oadescriptiveflexbean.processFlex(pageContext);
         //oadescriptiveflexbean.setFlexTableRendered(false); -- useful, if we want to render the items on our own.
         int cnt = oadescriptiveflexbean.getIndexedChildCount(pageContext.getRenderingContext());
         for(int i=0; i<cnt; i++)
              OAWebBean uiNode = (OAWebBean)oadescriptiveflexbean.getIndexedChild(pageContext.getRenderingContext(),i);
              if(null != uiNode && uiNode instanceof OAMessageTextInputBean )
                   System.out.println(i + "::::" + uiNode.getLabel() + "::::" + uiNode.getUINodeName()+ "\n");
                   if(uiNode.getUINodeName().equalsIgnoreCase("ASNPrdtAddInfoFF2")) //Segment ID...you need to find it out..on which segment you want to do PPR
                        FireAction firePartialAction = new FirePartialAction("Event.termChangeEvent", true); //This is I am not sure but it must be the event name
                        uiNode.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
    Now you need to check for this event in processFormRequest() method. If this event fetched iterate the Vo rows and check the Attribute value there. if the value matched then do the defaulting process.
    Hope this helps..
    Regards,
    Mukesh Uchaniya

  • Default value of BeX customer Exit variable not Displayed in WeBI??

    Hello Experts,
    We are stuck with a problem where WeBI report is created on top of BeX query and we are not able to see the default value of Bex Customer exit variable in WeBI run. Here is the complete scenario:
    1. One restricted KF is created in BeX, restricted with Customer exit variable on net Due date. And this variable is mandatory, ready for input, and Default value in calculated is user exit as current Week's Monday.
    2. So, by default KF data should be restricted to Monday of current week, if user does not change this value.
    3. Now, WeBI report is created on top of this Bex query, and all is working fine, i.e. we are getting variable as Prompt in WeBI, but Default value is not shown while Running the Webi Report.
    So, need your inputs on the same, if default values from BeX in WeBI is supported or not? If yes, why this is happening, and how to resolve it?
    Please notice, the restrcition is in KF only, it is not a separate restrcition on Net Due date in Filter area or in Defualt area of BeX
    and we are on SAP BW 7.1 and BOXI 3.1 SP4.
    Regards,
    Vipul
    Edited by: VIPUL GOYAL on Nov 23, 2011 9:44 PM

    Hi,
    See 1285993 - Support of Customer Exit Variables from BEx query into WebIntelligence via OLAP universe
    WebI will prompt when executed, but the default values calculated by the user exit  - do not appear.
    Note: If the BEx variable has property 'ready for input' set / enabled, then its WebI prompt shows ok, but no default value appears.
    Cause
    This behaviour expected 'by design' (in the context of the product's current limitations) as explained in the online guide below:
    Please refer to Chapter 7, page 44, document link here: http://help.sap.com/businessobject/product_guides/boexir3/en/xi3_sap_olap_universes_en.pdf
    Characteristic variable > processing type > Customer Exit  is "Supported, without user entry"                                                                               
    -->  This should be understood as meaning "User will not be shown a prompt"
    regards,
    H

Maybe you are looking for