Localize a CustomAction programmatically

I work in a farm environment and i want to add a CustomAction in a specific
SPList. The list is created programmatically, so i cannot know the `ID`. For that i tried to register the action with
RegistrationId="{$ListId:Lists/MyList;}"
<CustomAction
Id="MyCustomAction"
Location="CommandUI.Ribbon.ListView"
RegistrationType="List"
RegistrationId="{$ListId:Lists/MyList;}">
</CustomAction>
As i
read and figure out, there is a bug in farm environment and i cannot register the action this way. I decided to add the action programmatically
SPUserCustomAction action = splist.UserCustomActions.Add();
action.Location = "CommandUI.Ribbon.ListView";
action.CommandUIExtension = @"
<CommandUIExtension xmlns='http://schemas.microsoft.com/sharepoint/'>
<CommandUIDefinitions>
<CommandUIDefinition Location='Ribbon.ListItem.Actions.Controls._children'>
<Button
Id='MyCustomActionButton'
Command='MyCustomActionCommand'
Image16by16='/_images/info_16x16.png'
Image32by32='/_images/info_32x32.png'
LabelText='$Resources:MyResources,Title;'
TemplateAlias='o1'
Sequence='25'
/>
</CommandUIDefinition>
</CommandUIDefinitions>
</CommandUIExtension>
action.Update();
Now action is registered successfully but the problem is with the button label text. How it can be localized through code?
There is the property CommandUIExtensionResource in SPUserCustomAction, that i suppose i could use, but i cannot find any example. I have use
TitleResource in SPList, but the same usage in this case does not work.

The RegistrationId can be used to define a ListTemplate ID. You could create a custom list definition and apply the custom action on that list definition only. You can continue working with the declarative approach for SharePoint customizations
in that case.
SharePoint Developer | @zeemanj |
Blog

Similar Messages

  • How to localize LiveCycle Form in different languages ?

    Dear All,
    I want to localize the captions of the fields in PDF Form developed using Adobe LiveCycle Designer 7.1.
    In order to do that, I figured out that have to prepare XML Data Source of all Captions and related text in the target language.
    The languages are English, Arabic and French. For each Language, there must be one XML File which will be the Data Source of the required captions, and the captions on the form will be bound to that XML Data Source.
    I need to find automated way (programmatic or any other way) to generate the XML in a special format using input for a Table in any Database, say MS Access/SQL, as follows:
    I have input table of Captions in all languages that looks like the following (see the Excel Sheet below for a sample input table):
    http://spreadsheets.google.com/pub?key=pDk9OsF0emb5zxEhSunL3UQ
    Note: I am sorry as I do not know the French translation.
    Using the above input table, I need to generate 3 separate XML Text Files as follows:
    ---- For Arabic ---
    الاسم
    العنوان
    تاريخ الميلاد
    عدد افراد الاسرة
    الجنسية
    ---- For English ---
    Name
    Address
    Date of Birth
    Family Members
    Nationality
    ---- For French ---
    xxx
    yyy
    xxx
    xxx
    yyy
    The Input Table above is relatively huge, and it may change from time to time, therefore, it will be very important to generate XML using programmatic approach.
    I was able to use Dynamic Property Biding to bind the captions and the tool tip text to such XML Data Source, but I am still facing some difficulties.
    So, after generating the above XML Files one for each language, and do all the binding in LiveCycle Desinger, then before publishing the forms LIVE, I will create 3 copies of the PDF form, one for each language, and use Acrobat to import the Resource XML File (using Import Form Data Menu Option) of the related resource language file in the related PDF File, and save the PDF file.
    To summarize:
    ============
    1. Is this the correct approach for localization, or there is better one ?
    2. How I can generate the above XML in an easy way from the input table shown in the link above ?
    3. Can I control the direction the the PDF From so that I can make it From Right to Left for Arabic instead of from Left to Right ? I want to avoid making a new separate PDF specially form Arabic Language. The direction will affect the reading order and the Tab Order of the Fields and the location of the Objects on the Form.
    4. I figured out how to change the field alignment, caption location, and locale using javascript, but is there an easy way to change such properties using JavaScript for all fields in one go, because the form has 14 pages, and each page has many subforms which are nested up to 3 levels.
    Please help.
    Tarek.

    Thank you PDL,<br /><br />With regards to localizing the Text and Captions, I worked out a model using MS Excel Sheet, Pivot Table, and Linking to MS Access, and now I have a working model with semi-automated method to generate the XML Data Source of the Caption Text. I will post the details later.<br /><br />With regards to controlling the object layout during runtime, I started with this script on the Layout Ready Event of the "untitled subform" (page 1):<br /><br />var cnt = this.nodes.length;<br />for(var i = 0; i<cnt; i++) {<br /><br />  var elm = this.nodes.item(i);<br /><br />  if (elm.className == "field") {<br /><br />    switch (Language.rawValue)<br />    {<br />      case "&#8207;&#1593;&#1585;&#1576;&#1610;&#8206;": // Arabic<br />        elm.locale = "ar_SA";<br />        elm.para.hAlign = "right";<br />        elm.caption.placement = "right";<br />        elm.caption.para.hAlign = "right";<br />        break;<br />      case "English":<br />        elm.locale = "en_GB";<br />        elm.para.hAlign = "left";<br />        elm.caption.placement = "left";<br />        elm.caption.para.hAlign = "left";<br />        break;<br />    }<br />  }<br />//app.alert(elm.name + " -  " + elm.className);<br />}<br /><br />---<br /><br />The above scripted is only working on the first subform of and only for the fields in "this" subform.<br /><br />And also, this code you prvided:<br /><br />>var coll = xfa.resolveNodes("xfa.form.form1.#subform[*].TextBox[*]"); <br /><br />will not give me a collection of all Required Fields (such as Text Field and Radio Button Fields and all others).<br /><br />Perhaps the question should be:<br /><br />1. How to get a collection of (or be able to loop through) all required fields (all Labels and any field that has a caption, placement, and alignment) in all pages and all subforms and the nested subforms ???<br /><br />2. With regards to the direction issue, I was reading the Adobe_XML_Form_Object_Model_Reference.pdf for version 8.0 and it seems there is a Direction Tag for the subform but not sure if this will be useful for my requirement.<br /><br />Just to make sure you understand what I am talking about, imagine that I want to flip the PDF Layout horizontally, so that all objects that were located on the left side, should be relocated on the opposite side starting from the right. I was thinking I could use the x,y coordinates of the field object to relocate the position during runtime using javascript. But this requires some complex formula to calculate the relative dimension in relation to the parent object. Can you help me on this ?<br /><br />Any feedback will be appreciated.<br /><br />Tarek.

  • Report Internationalization and Localization?

    Is there a way to programmatically (or statically) set a report's language and culture at runtime, and then have the report load data from a resource file/database/etc?  Is there a best practices document about this?  We need to be able to display hundreds of reports in specific languages.  For example, in English the report would display "Baseball" in a label, but in Spanish the report would display "Béisbol".
    Thanks,
    Kyle

    Crystal Reports will not translate text strings for you.
    E.g.; For example, in English the report would display "Baseball" in a label, but in Spanish the report would display "Béisbol".
    If the label is a text string in English, it ain't going to come out as "Béisbol" just because you've set the report's language and culture at runtime. Your only option in this case would be to have a formula with all the different language strings and on culture condition, the string gets displayed.
    Setting Culture  Localization will show localized menus, even throw localized errors. But no translation of strings, labels or database fields.
    The process of how and what is possibly a bit different - depending on the version of CR, which I don't have...
    Also, knowing the version of .NET used will be good.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the SAP Idea Place

  • VS2010 Cannot pass Parameters Programmatically

    When I assign reports programmatically in VS2010, the box to enter parameters pops up.  I am using a simple .SetParameterValue statement. THis worked in VS2008.

    Hi,
    I also experienced this problem and managed to get passed it. I found the new property on the report viewer called 'ShowParameterPanelButton' and set it false however that did NOT solve my problem.  Remember too that property values are language specific if your form is localizable.
    It seems that Crystal has always had problems (well without going further, that about says it all but...) with resolving the server at run time if the server was not resolved at design time. For example, developer a report against a server, later open the report at design time where the server is no longer valid, close the report without resolving a new server, build and ship and it will probably fail to resolve the server at the customer installation. The moral is, if the report is opened at design time, the server configuration must have integrity. Go to the menu of the design time surface for the report, Select the menu Crystal.., Database, Set DataSource Location and make sure each object for the report is correctly set to a valid server. Then in the Main Report View tab of the designer, refresh the report and be sure that either the parameter selection window opens or the report displays data if there are no report parameters. While you are at it there is a check box at the top of this surface 'Save Data in Report'. I don't know what the deal is there, can't find an explanation in the docs but I unchecked it.
    Note that saving the report will cause a prompt to save in the NEW format which I assume is the new SAP sauce, Ok.
    After performing the above actions my reports again worked correctly while otherwise would simply ignore parameters and return huge data sets.
    I don't like black magic answers and I especially detest the 'I dunno it works for me' answers one so commonly finds in forums. Probably only second in annoyance to answers in the flavor 'rewrite it all this way and it should work'. What I presented above solved my problem, I hope it allows you to get passed one of the many mysterious trip points that makes Crystal such a 'joy'.
    My project is now about 7 years along and since I took the trouble to offer the above let me also indulge in a minor rant.
    My project is large and sophisticated but with all the analysis, design and coding, no problem consumed as much time, energy in terms of shear frustration, customer dissatisfaction in terms of unexpected behavior on their servers as Crystal Reports! It has been the bane of my experience on my otherwise extemely satisfying project. I have suffered through the product changing hands multiple times and yet never presenting more plainly documented or otherwise satisfying experience to the developer. I am not alone in my frustration as any developer with Crystal experience will agree even if they have been fortunate enough to benefit from someone elses knowledge.
    What was once the darling of the fledging VB community is, in my opinion, a quirky, difficult to code legacy product over shadowed by so many better products that have kept pace with modern development practices. Thankfully I need only keep existing reports working, not create new ones in Crystal Reports.
    Considering it is not open source, Crystal should present; clear documentation, good examples, clean library interfaces and great online problem resolution. In my opinion it has never stepped up to any of the above. I acknowledge the forums and I did manage to find and purchase one book over the years though frankly it was not useful.
    That is my rant against Crystal, it has been 7 years in coming. Good luck SAP. For the sake of all dependent developers I hope you do more than put a token of effort into the product and then sell it as your predecessors have done or extricated themselves from what is probably by this time, a nightmare of code under the covers.

  • Get column values from list of values programmatically

    hi all
    how i get column values from list of values programmatically in the
    returnPopupDataListener method

    If this answers your question , please close this thread by marking it as answered.
    Thanks

  • Error in Updating a Result Set Programmatically

    Could anyone please help me !
    Why the row is always corrupted after executing the following code.
    I am using JDK 1.4 , the default JDBC:ODBC driver from sun and MS Access 2000
    try
    rs.updateString(1,jtfCity.getText().trim());
    rs.updateString(2,jtfCountry.getText().trim());
    rs.updateInt(3,Integer.parseInt(jtfPop1995.getText().trim()));
    rs.updateInt(4,Integer.parseInt(jtfPop2015.getText().trim()));
    rs.updateRow();
    catch(SQLException sqle)
    System.err.println("Error in update row");
    System.err.println(sqle);
    System.err.println(sqle.getMessage());
    System.err.println(""+sqle.getErrorCode());          

    Thanks for replying
    This is what I get:
    java.sql.SQLException:[Microsoft][odbc Microsoft Access Driver]
    Let me give you more background information. I am new in JDBC and is learning it by going through the examples in "JDBC API Tutorial and Reference 2nd Ed." published by SUN. I am using sdk1.31 (and have also tried sdk1.4) with Microsoft Access 2000. The demo program I am working with is trying to update a ResultSet programmatically using updateXXX().
    scrolling and row deletion using rs.delete() are ok.
    Here are my connection statements:
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              connection = DriverManager.getConnection(sourceURL);
              statement = connection.createStatement(     ResultSet.TYPE_SCROLL_SENSITIVE,
                                                                ResultSet.CONCUR_UPDATABLE);

  • How to change the text in the legend of a graph programmat​ically in labview

    I have many graphs in one plot and want to show the legend the name of the graph (i.e. the filename). How do I change the text in the legend programmatically?

    Create a property node for your graph. Use the property node "Active Plot" to define which plot (or line) you want to rename. Then write the new legend label to the property node "Plot.Name". See attached.
    Tim
    Attachments:
    legend.vi ‏12 KB

  • Palm Missing Localization Information Display after Mac OS 10.4.6 Update

    Recently I installed the Mac OS 10.4.6 update after confirming that it should improve some minor issues with "Hot Synching".
    Previously I could "Hot Synch" with my Palm Mac Desk Top software 4.2.1 and also with my PC with no issues. My Palm is using Palm OS 4.5, I believe.
    Now I can still can "Hot Sync" on my Mac--with no issues. However, when I take the Palm out of the USB Cradle and try to access the Palm Display page with the featured icons, I get a very unusual error:
    "Application can not be launched because it is missing localization info file xxx--enUS.prc."
    I checked the Palm site and entered the error message and the response was returned that indicated "several applications with the Palm Tungsten T require overlay files to run properly. "Dialer, SMS, & WAP Browser" require and overlay "prc" file that determines which language the application displays on the device. If this "prc" file is missing, it will cause this message to be displayed."
    I was instructed to install the "xxx_enUS.prc" using the Palm Install tool.
    I installed all of the "xxx_enUS.prc" files on Disk 2 and have performed a "Hot Sync" again. A successful "Hot Synch" was performed.
    The above message is still displayed on the Palm screen even after that successful "Hot Synch".
    I can not use any of the screen icons to select any of the features or vprograms on the Palm.
    The face buttons can be depressed but the selection from the Palm hand held icons with the stylus can not be accessed as the "missing localization info, ect" is displayed.
    I have performed soft resets to no avail.
    I still can not get this issues resolved.
    Recently I instlled iSynch and the problems still occur.
    Anyone out there have any suggestions.
    POWER MAC G-4 (933 MHz QuickSilver) Mac OS X (10.4.6) iSite
    POWER MAC G-4 (933 MHz QuickSilver)   Mac OS X (10.4.6)   iSite

    When I do Command-I, I see that I have read/write access for the local drive - depending on the machine I am sitting at - and the other networkeded drives allow read only.
    I guess the question is - how does the system know a user with the same username and password are actually the same person?
    Robert

  • How to set different view parameter programmatically in the same task flow

    Hello everyone,
    I have a view activity A that calls another view activity B with a link. In this link the action is set to a method (I use JSFUtils class: http://jdeveloper-adf.googlecode.com/svn/trunk/TGPrototype2/ViewController/src/com/tgslc/defaultManagement/utils/JSFUtils.java):
    public String goToB() {
    String paramToPass = "someParameterTakenInSomeWay";
    JSFUtils.setExpressionValue("#{pathToViewB_pageBPageDef.paramName}",paramToPass);
    return "openActivityB";
    where openActivityB is the control flow case to call B.
    In the B pageDef file I have set a parameter "paramName" without any value:
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="11.1.1.59.23" id="pageBPageDef">
    <parameters>
    <parameter id="paramName"
    value=""/>
    </parameters>
    <executables/>
    <bindings/>
    </pageDefinition>
    But at running time I have a oracle.jbo.expr.JIEvalException:
    JBO-25077: Name paramName not found in the specified object: pathToViewB_pageBPageDef.
    The question is: how can I set the parameter programmatically from the view activity A?
    Note that I use this method to set the parameter because in the real application I have many "view activity A" that will call B, but all of these have to set this parameter.
    I use JDeveloper 11.1.1.4.
    Thanks in advance,
    Baduel

    Hi,
    this is because PageDef B represents a binding container that is not active to the time you try to call it. The binding container becomes available when navigating to the page but not before. Instead:
    1. define a managed bean in pageFlowScope and expose a setter/getter method to hold the value to pass on
    2. Reference the managed bean in pageFlowScope from the attributebinding NDValue property using EL
    3. Set the managed bean value before navigating to view B
    Frank

  • Administração de boletos em  Localização Brasil

    Prezados,
    O SAP Business One precisa se adaptar à localização brasil a que se refere a adminsitração de boleto.
    Dois pontos que notei:
    1 - Mudar data de vencimento quando o boleto estiver no status enviado gerado ou depositado. (esse primeiro já postei no SAP Business One Product Development Collaboration), pois aqui no Brasil é muito comum mudar data de vencimento por demora na entrega da mercadoria por exemplo. da forma como está no B1 tem que cancelar o boleto, alterar a data e depois gerá-lo novamente fazendo com que perca a referência do boleto.
    2 - Dar desconto ou juros no boleto com o boleto no status depositado viabilza, pois não precisaria fazer lançameto manual contábil para contas de maior ou a menor, pois é muito comum no brasil descontos até a data de vencimento, mas não da forma como o SAP B1 faz (na condição de pagamento no Brasil não funciona).
    Se a SAP fizer issoficará mais fácil , agil e interessante na criação de relatórios como o de comissão por exemplo.
    Se eu cancelar o boleto e criá-lo novamente  como o desconto eu perco a referência e atraso o meu processo.
    Estas duas sugestões só seriam permitidas usar com autorização de usuário.
    Att,
    Lucidio Gandra Alves

    Dear,
    SAP Business One must adapt to the location Brazil referred to the Administration of billet.
    Two points I noticed:
    1 - Change the due date, when the billet is in the status sent generated or deposited. (I posted this first in SAP Business One Product Development Collaboration), because here in Brazil is very common to change the due date for delay in delivery of goods for example. how is the B1 has to cancel the ticket, change the date and then regenerate it causing him to lose the reference of the billet.
    2 - Give a discount or interest in the slip with the slip in status filed viabilza therefore do not need lançameto manual accounting for accounts more or less as it is very common in Brazil discounts to maturity, but not the way the SAP B1 is (provided that payment in Brazil does not work).
    If SAP makes it easy issoficará, agile and interesting in reporting as the commission for example.
    If I cancel the slip and create it again as the discount I lose my reference and delay the process.
    These two suggestions would be permitted to use only authorized user.
    Lucidio Gandra Alves

  • Localização Brasil - Preparação do ambiente

    Prezados,
    Gostaria de tirar uma dúvida sobre a preparação do ambiente para implementação da Localização Brasil.
    [Situação]
    Estou atuando em um projeto de rollout internacional e a equipe de TI deseja realizar o processo de preparação do ambiente para Localização Brasil.
    Passamos as instruções iniciais a seguir para prepação do ambiente, conforme links abaixo:
    Criação do client com cópia do client 000;
    Execução da transação O035 para alterar o template para Brasil;
    Execução das CATT de MM e SD;
    Comparar client 000 com novo client, para incluir objetos na request;
    Transporte para o ambiente DEV;
    Início da realização.
    É desta forma que trabalhei até o presente momento em projetos anteriores.
    No entanto, a equipe de TI ficou com algumas dúvidas sobre o processo e entrou em contato com a SAP Alemanha para obter maiores detalhes. Em reunião com a equipe SAP Alemanha, fomos informados que não se executa mais a transação O035 por esta transação alterar informações em diversas tabelas. Ao invés disto há outro processo, onde são selecionados objetos no client 000 e incluidos em uma request (como pricing de MM e SD, tipos de Nota Fiscal, tipo de item de Nota Fiscal, etc.) e transportados para o DEV. Neste contato, não haviam pessoas da SAP Brazil envolvidas.
    Informaram também que não é necessário copiar a empresa/centro 0001 para criar a estrutura organizacional para o Brasil, pode ser realizada a cópia de qualquer centro utilizado em outro país como referência.
    Não encontrei nenhuma documentação sobre este processo, e as documentações mais recentes que localizei recomendam a utilização o Country Installation Program (transação O035).
    [Dúvida]
    A SAP hoje sugere outra forma de preparação do ambiente para Localização Brasil, que não a descrita nos documentos abaixo? Em caso positivo, qual seria o caminho?
    Pesquisando em outros forums, verifiquei a informação que há um site da própria SAP onde é possível informar características do sistema (versão, suporte package, enhancement package, etc) e o site informa quais as notas requeridas para a implementação da Localização Brasil.
    [Informações adicionais]
    Nesta dúvida, não me refiro a notas específicas de processos, como CBT (1706309), MP135, CT-e, NF-e 3.10 etc. A dúvida em sí é sobre a preparação para início das configurações dos processos de negócio.
    [Links de referência]
    Seguem abaixo os links de referência:
    Brazil - SAP Library  (ECC 6.0 EHP 7)
    Quick guide for Brazilian Localization Installation
    Atenciosamente,
    Rafael

    Olá Rafael,
    Também entramos em contato com a responsável na Alemanha  sobre o installation guide para Brasil, mas não obtivemos resposta ainda.
    Na verdade você ainda poderia utilizar a O035 porém o esforço nas configurações seria um pouco maior.
    Assim que eu tiver maiores informações como link para documentação ou qualquer outra informação, posto aqui no SCN.
    Peço também que visite nosso blog de NF-e para outras atualizações.
    http://scn.sap.com/community/portuguese/sped-and-nf-e/blog
    ERP KBA: 2125859 - KBA [3.10] NF-e 3.10 Go-live checklist for SAP ERP
    ERP GRC NF-e: 2123768 KBA [3.10] NF-e 3.10 go-live checklist for SAP NF-e GRC
    Att,
    Adriel

  • Localização Portuguesa e Defir

    Bom dia,
    Relativamente às declarações peródicas do IVA no SAP 2007A, depois de preenchidos os campos da configuração do IVA na localização portuguesa (Sujeito_XX, Base_XX, Estado_XX), devemos ir a Relatórios -> Financeira -> Contabilidade -> Imposto -> Relatório de IVA e exportar para o Defir.
    O problema é que ao exportar para o Defir, ao ir a "Declarações periódicas do IVA", as declarações não apresentam qualquer tipo de valor. Há algum passo necessário além dos que referi?
    Alguém me pode ajudar com esta questão?
    Obrigado e cumprimentos,
    Pedro Santos

    Boa tarde Susana,
    Antes de mais, muito obrigado pela resposta. O problema penso que é mesmo não estarem os campos de IVA todos preenchidos com o "Sujeito_XXX", "Base_XXX", etc. Não sei se bastará isso para a declaração ser preenchida.
    Já agora, relativamente ao modelo22, sabe-me dizer quais os passos necessários para preencher automaticamente a declaração? Já encerrei o ano contabilistico e exportei o balancete para o Defir, mas também não tenho valores no modelo22.
    Desde já agradeço a atenção.
    Cumprimentos,
    Pedro Santos
    Edited by: Paulo Calado on Jun 15, 2009 7:53 PM
    Edited by: Paulo Calado on Nov 27, 2009 5:25 PM

  • How can I supress a Windows dialog box programmatically in LabView?

    I am trying to automatically supress or close a windows dialog box that appears when a LabView program crashes. I have a restart program that will automatically reopen the program and I don't want to have to click on the program error window that results from the crash. Does anyone know how to do this?
    Thanks so much for your time!

    The program rarely crashes - it is running in the background for the entire day and we just want to ensure that it is monitored and restarted in case of a crash. We also don't want the user to be bothered with the program error messagebox that pops up saying that an error log is being created. The program crashes when too many programs are running at the same time - so the problem isn't a huge one. I was just wondering if it was possible to stop this program error message from appearing by programmatically selecting the okay button or by suppressing the message entirely?

  • How to Change URL of BPA after clicking on Open Document in PO Notification for India Localization?

    In the Purchase Order Approval workflow notification , there are two links at the bottom of page under heading REFERENCES,
    - view PDF
    - open document
    So when we click on open document, the Oracle Forms loads and  purchase order screen will appear in the screen.
    In case of India localization, for standard PO the India local screen opens, where we can see the taxes by clicking on Taxes Button.
    But in case of blanket purchase agreements, when we click on open document link from the notification,we are routed to the application with the screen of global purchase order, instead it
    should go to Purchase Orders(Localization).
    We want to move to the India local po screen for BPA.
    So please let me know, where I can change the URL for Blanket Purchase Agreements.
    Regards
    Sandeep

    Hi kalyani,
    Please check my inbound plug code...tell me what changes wee need to do and where wee need to add this code...once again thanks for your reply..
    METHOD
    ip_inboundplug.
    **CALL METHOD SUPER->IP_INBOUNDPLUG
    ** EXPORTING
    ** iv_collection = iv_collection.
    DATA: lt_ivr_url_param TYPE tihttpnvp,
    ls_ivr_url_param TYPE ihttpnvp,
    lr_searchcustomer TYPE REF TO if_bol_bo_property_access,
    ls_searchcustomer TYPE crmt_bupa_il_header_search.
    CALL METHOD cl_crm_ui_session_manager=>get_initial_form_fields
    CHANGING
    cv_fields = lt_ivr_url_param.
    lr_searchcustomer ?= me->typed_context->searchcustomer->collection_wrapper->get_current( ).
    CHECK lr_searchcustomer IS BOUND.
    READ TABLE lt_ivr_url_param INTO ls_ivr_url_param WITH KEY name = 'sap-phoneno'. "'sap-phoneno'.
    IF ls_ivr_url_param-value IS NOT INITIAL.
    ls_searchcustomer-telephone = ls_ivr_url_param-value.
    CALL METHOD lr_searchcustomer->set_properties( EXPORTING is_attributes = ls_searchcustomer ).
    eh_onsearch( ).
    ENDIF.
    ENDMETHOD

  • How to set up the maximum number of messages on a queue programmatically

    Hi,
    I am using IMQ 3.5 to implement a message layer for one of my projects. I created a "Job Status Queue", which receives job status report from a java application every minute. But I just want to keep the most current status report instead of all the job running history. How can I restrict the maximum number of messages to 1 programmatically?
    Any suggestion or help will be appreciated.
    Xiaoyun Tang

    You can't limit the destination size programmatically, but you can do it administratively and associate a behavior to occur when the limit is reached. In your case it sounds like you want a queue, 1 message deep, and to discard the oldest message when the queue is full. When you create the physical queue on the broker you can specify these attributes (you can also update them on an existing queue). For example:
    imqcmd create dst -t q -n StatusQ -o maxNumMsgs=1 -o limitBehavior=REMOVE_OLDESTFor more information see Chapter 6 of the Message Queue Administration Guide. In particular the "Managing Destinations" section:
    http://docs.sun.com/app/docs/coll/MessageQueue_35_SP1
    Joe

Maybe you are looking for

  • SSRS report connecting SSAS 2014 cube not returning measure value

    Hi all Recently we migrated SSAS from 2008r2 to 2014 in Dev environment. when we are testing  SSRS reports which are connecting to that cube is having issue. the measure value is returning as [Measures].[LSM Count] instead of numeric value. when we c

  • 10.5.2 - Now I can't see MY network...

    My machine with 10.5.1 and my iPod Touch are still able to get onto my network (that's how I'm able to get online right now), but my machine that I just updated to 10.5.2 can no longer connect to the Wi-Fi in my house. It sees the neighbor's Wi-Fi ne

  • Mouse pointer hand lost on links

    There are a number of references to this problem (mouse pointer over a link momentarily turns to a hand before becoming the arrow again) all seem to be answered when the problem goes away. I have this problem and I know that if I close Safari and reo

  • Cannot close notification in workflow-Please help

    We had some notifications that got stuck for new hires and we manually processed them through IQS22 but we are not able to close the notification after processing those new hires! Does anyone happen to know any transaction/tables where I could go by

  • [SOLVED] Nautilus not showing metadata audio/video

    When I access to the audio file properties window through its context menu, I have observed that audio file details like bitrate, codecs, etc. are not being shown. Why? Any nautilus plugin missed? No tab is displayed for such info. Last edited by ton