Passing parameter to the i18n text from xml view in fiori app

Hi,
Could somebody let me know how to pass parameter to get the i18n text inside xml view of a Fiori app.
For e.g. inside my i18n properties file i have a entry like:
PEC_ISSUE={0}issues of total{1}
inside xml i use it like {i18n>PEC_ISSUE}
but now how do i pass those 2 parameters to this ??
i know in javascript it works with , (comma) but does not work in xml. Any help...
Thanks,
Ashish

Hi Michele,
I found it. Below is the example from my coding.
<Text      text="{parts: [{path: 'i18n>PEC_to'}, {path: 'promoprocsteps>RetailPromotionSalesFromDate_E'},
                                                       {path:'promoprocsteps>RetailPromotionSalesToDate_E'}],
                                                       formatter: 'retail.promn.promotioncockpit.utils.Formatter.formatDatesString'}"  />
So you have to create a formatter and pass all the strings to the formatter and then do it inside JS.
In JS you do it in this way:
i18n.getText(i18String, [newString, string2]);
i hope this helps.
Regards,
Ashish

Similar Messages

  • Copy and/or Cut and Paste no longer works from within Firefox yet I can Paste to Notepad and yet again copy the same text from within Notepad or any app will not Paste back into Firefox, thanks

    I 'Copy & Paste' from within Firefox quite often but for some reason the function has stopped working when using some sites, even the menu item 'Paste' is greyed out, yet I can open Notepad and 'Paste'. I tried pasting into 'Notepad' then copying from Notepad and pasting back into Firefox, which I've found in the past sometimes works but today even that does not work. I accept it may not actually be a Firefox problem but I have noticed since upgrading to the latest version, I am having several problems with crashing and hanging exceedingly long execution of the browser.

    See:
    *http://kb.mozillazine.org/Clipboard_not_working

  • How do I pass parameter to different portlet regions from another page?

    How do I pass parameter to different portlet regions from
    another page?
    I have a page that with two regions. Each region has a report
    that uses the same information to generate its report.
    Individually running the reports, I can use p_arg_names and
    p_arg_values to get what I want. However, when I run the page
    that has both portlets, my .show is gone and I cannot get it to
    use the p_arg_names, etc. Do you have any idea how to overcome
    this? Thanks for any help.

    How do I pass parameter to different portlet regions from
    another page?
    I have a page that with two regions. Each region has a report
    that uses the same information to generate its report.
    Individually running the reports, I can use p_arg_names and
    p_arg_values to get what I want. However, when I run the page
    that has both portlets, my .show is gone and I cannot get it to
    use the p_arg_names, etc. Do you have any idea how to overcome
    this? Thanks for any help.

  • How to pass parameter to the Query String of the Named Queries'SQL

    Firstly to say sorry,I'm a beginner and my English is very little.
    Now I want to know
    How to pass parameter to the Query String of the Named Queries'SQL in the Map editor.
    Thanks.

    benzi,
    Not sure if this is on target for your question, but see #5 in the link below for some web screencasts that show how to pass an input text form field value to the bind variable of a view object. If you're looking for something different, maybe provide some more details such as what you are trying to accomplish and what technology stack you are using - for example, ADF BC, JSF, etc.
    http://radio.weblogs.com/0118231/stories/2005/06/24/jdeveloperAdfScreencasts.html
    Also see section 5.9 and chapter 18 in the developer's guide.
    thanks

  • How can I remove the 'Qty' text from individual product descriptions?

    I didn't know if this was possible or not... I've recently taken the reins of handling an ecommerce site that had been published before I got on board. My boss wants me to remove the 'Qty:' description from some products because the image shown for some products is a misleading description of the actual quantity available (i.e. there is a picture that shows a stack of conveyors parts, and it says 'Qty: 1' to represent one 'stack' of conveyor parts - this confuses customers into thinking there's only one individual conveyor part available however). To avoid any confusion he requested that I remove the 'Qty' text from similar images. I see that you can change the 'In Stock' amount of a particular product underneath the 'Inventory' tab of the 'Products' menu, but I didn't know if it was possible just to remove the quantity description altogether without just typing the quantity in at zero. This is likely a strange question but I didn't know where else to ask! I would appreciate any help or advice Thank you

    Hi ewhelhalu,
    I just figured out a way to do it, but it's a little weird and complex, and I have no idea what the consequences for editing this .plist string might be. I'm thinking it'll be OK, but you never know what might happen when you screw around with Apple's intentions.
    So if you have the Developer Tools on your install of OS X, you can use the Property List Editor to edit the Dock files. (If you don't have this program, you can use a program like [Pacifist|http://www.charlessoft.com> to selectively install stuff from your Leopard disk).
    The file you're interested in is within Macintosh HD > Users > Your Username > Library > Preferences, and it's called com.apple.dock.plist. Open that up with Property List Editor, and open the arrow drop-down next to "Root." The lines you're looking for are "persistent-apps" (the left side of your Dock) and "persistent-others" (the right side). If you open the drop-down arrows, you'll see there are numbers below each. The numbers correspond to your Dock items, from left to right.
    If you click on drop-arrows by the numbers, a sample hierarchy looks like this: 0 > tile-data > file-label. It's the "file-label" string that you want to edit. Just make it ("it" being the name of the icon under the "value" column) blank, save the file, go into Terminal and type "killall Dock" without the quotes, and your Dock icon should appear without a name. You'll have to do this for all of them.
    I should insert the usual caveats here about backing up beforehand and making sure that you have a copy of the .plist file before you start tweaking it so that you can replace it if things go wrong. And perhaps someone with more knowledge of Terminal or third-party apps than I have will come along and suggest a simpler solution. But that's the only one I have.
    Hope that helps!
    —Hazy

  • When I am on my home screen on the iPhone, swipe left to the search page. Put a letter in the search field. then scroll down. eventually you get to all your texts previously deleted or not. The are all there. How can I clear the entire text from the phone

    When I am on my home screen on the iPhone, swipe left to the search page. Put a letter in the search field. then scroll down. eventually you get to all your texts previously deleted or not. The are all there. How can I clear the entire text from the phone

    When I am on my home screen on the iPhone, swipe left to the search page. Put a letter in the search field. then scroll down. eventually you get to all your texts previously deleted or not. The are all there. How can I clear the entire text from the phone

  • Automatically copy only the unicode-Text from a Word-Document into FM8

    In my daily work I often have the problem to copy and paste text from a  Word-Document or other documents into my FrameMaker documents.
    The common way is to copy it in Word and "Special Paste" it in FrameMaker 8 as unicode. But this is not as confortable as to shortly hit Ctrl-v on the keyboard.
    I would like to have a new menuitem to special paste only the unicode text from the clipbopard. Is there a way to make such a makro and to put it in the menubar with a Key-Trigger?
    I read something like that in http://www.rzg.mpg.de/from_external/Frame6_Handbuch/Setting_up_FrameMaker.pdf (german), but I actually don't know what to chage for my case.

    Rather than create a new menu item (possible, I gather, but fiddly) I would recommendchanging the default “paste” behaviour.
    In the MAKER.INI file there is a line beginning
    ClipboardFormatsPriorities=
    Change this to put UNICODE TEXT as the first item.
    Ctrl-v will then paste Unicode text by default. You can still access the other options, should you need to, by using Paste Special.

  • HOW TO TRANSPORT THE STANDARD TEXT FROM ONE SERVER TO ANOTHER?

    After creating the standard text in SO10 transaction
    it will not ask for any transport request no while saving ,
    i want to transport the standard text from development to test server.
    how can we do that?

    Hi Riaz,
    To transport a Standard Text through a transport request , you need to attach the standard text through the transaction RSTXTRAN.
    After executing the report RSTXTRAN , you can enter first the task name then the Object as TEXT , then the name of the standard text , ID as ST, then the language as EN or something else .then execute.
    you cannot attach a standard text to an unassigned task.Firat you have to either activate a smartform or a script with that task then only you have to attach a standard text.
    I think your query is almost answered .
    Reward if you please.
    Thanks & regards,
    Ram

  • Need help in automating text from xml into illustrator

    I have seen some examples of automation script for filling text from xml into illustrator, need some help in this matter.
    Need script (currently working in mac OS)

    Firefox doesn't do email, it's a web browser.
    If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
    If your problem is with Mozilla Thunderbird, see this forum for support.
    [http://www.mozillamessaging.com/en-US/support/] <br />
    or this one <br />
    [http://forums.mozillazine.org/viewforum.php?f=39]

  • How to retrive the font color, style and size of the copied text from html

    I have requirement, where I need to retrive font size and style of the copied text from html page. Here copied text I mean, the text we select and copy using either windows copy command or using Ctrl+C.
    Please help me to get the solution for this req.
    Thanks in advance,
    Amodnk.

    You can also try this, especially if you've got the Text Inspector and the Color Picker open already.
    Select the text to be colored (note that if the text is already multiple different colors the swatch under Color & Alignment section of the Text Inspector still only shows one out of the several)
    Find the color you want in the Color Picker
    Click and drag from the Color Picker into the swatch under Color & Alignment in the Text Inspector
    That will also change all the selected text to the chosen color.
    Also, regarding web safe colors, that SHOULD come as a part of the Color Picker. With the Color Picker open, select the third icon at the top (If you mouse over it, it should indicate Color Palettes. Click the popup menu button and you should see Web Safe Colors as one of the choices. With this and the Text Inspector open, you can drag and drop your way to identical colors in no time!
    That same drag and drop trick works for text on the slide as well. If you just created a bit of text and you want to apply a color, scroll until you find the color you want, then drag and drop over to the text (it will highlight in blue showing you what you're about to color).

  • How to retrieve the item text from VL03 transaction .

    How to retrieve the item text from VL03 transaction .
    The requirement is like this, the item text thus retrieved should be printed in the script under the item.

    Jagadieshwar,
    Use <b>READ_TEXT</b> function module to get the proper item text of Delivery.
    <b>ID</b>: Probably you want 0002 (Item Note), but it depends which text you want Item Note, Material Sales Text ,etc..
    <b>NAME</b>: CONCATENATE Delivery Doc. Number + Delivery Item Number (e.g. 0080001729000010)
    <b>OBJECT</b>: VBBP
    <b>
    LANGUAGE</b>: sy-langu or whatever you want.

  • How to pass parameter to the method in EJB session bean from Managed Bean

    Hi,
    I need some guidance in accessing the EJB session bean methods from one of my backing Bean. I use EJB 3.0 Entity Beans and EJB Session Beans. I have to get value from my page and pass it thro the backing bean to the respective EJB session bean. I have no clue of how to do this,
    When i click a command link on the page, in its backing bean click method, i am able to get a value and store in a variable under its click action. But from there i am not knowing of how to pass it as a variable to the EJB session bean and hence execute the query(this is where we have to pass the variable as a parameter in its where clause) in the entity bean.
    I wanna know how to make a call to the EJB session bean and from there execute the Enitity bean.
    Guide me regarding this....
    Thanks
    ri

    Unfortunately dependency injection doesn't work for jsf backing beans, so you have to use a normal jndi lookup to find your session bean. The following example shows you how to find a session bean and call a method:
    public void commandButton_actionListener(ActionEvent actionEvent) {
    Context ctx;
    try {
    ctx = new InitialContext();
    helloWorldEjb = (HelloWorldEJB)ctx.lookup("HelloWorldEJB");
    hello = helloWorldEjb.sayHello(name);
    System.out.println(hello);
    } catch (NamingException e) {
    e.printStackTrace();
    }

  • Passing parameter to an xsl template from BI Publishe

    Hi,
    I have a requirement where I need to pass a parameter directly from BI Publisher to the xsl template.
    XML files are used as Datassource here. The requirement is that the user needs to pass on a value that is not present in this XML file for eg ( a word like "
    "Google" or "Yahoo" or "BIP" and I need to take that value and construct an url out of it. The url would be "www.google.com" or "www.yahoo.com" or "www.BIP.com".
    The parameter passed would in no way be used to filter out any data coming from the xml files, and is used only for building this url.
    I have used parameters to filter out data for report template where the datasource is Sql. The parameter passed would be used to filter out data . I donot know how we can pass a parameter value without filtering out the result set, but use it in the report.
    Basically I need my BI Publisher report to have 2 datasource,
    1) the xml data file and the template uploaded would use this to generate the report, and
    2) the value passed by the user declared as parameter in BI Publisher which would be used to generate the url.
    Please let me know if this is possible
    Regards
    Sujith

    Use data template, Check datatemplate, how to pass parameter. - search this forum, i have answered it many times.
    create parameter and say , include parameter as true. it will be added to the xml in the top.
    You dont have to use it necessarily in the sql query.
    The parameter will there in the xml, and you can use in any template type.

  • Importing text from XML file, "\n" not working

    Hi I'm currently trying to set up my game so it pulls in all text from an external XML file (to make switching between different languages easier). The problem is that on several occasions I need to use the special code "\n" to start a new line (for formatting purposes) but when I'm pulling the text in from the XML file this is not starting a new line any more - it is just appearing as normal in the text. (e.g "Here is some \n example game text") How do I get around this?
    Any help here appreciated, I'm supposed to be finished everything by tomorrow so I need suggestions asap haha Thanks.

    I don't see how I can be setting it wrongly, I have the exact line:
    XML.ignoreWhitespace = false;
    Before this I tried myXMLDocName.ignoreWhitespace = false; (before I realised it was a static function)
    This line is placed immediately after I have loaded my XML document and assigned it to a variable. e.g.
    private function XMLLoaded(e:Event):void
                trace("XML Loaded");
                MyGameGlobalVars.xmlDoc = new XML(e.target.data);
                XML.ignoreWhitespace = false;       //previously: MyGameGlobalVars.xmlDoc.ignoreWhitespace = false;
                xmlLoaded = true;

  • Flash Builder 4.5 SDK Problem while reading/saving Data/Text from XML

    Hi,
    I'm working on a FLASH BUILDER 4.5 Project. Previously I was working on FLEX 3 with SDK 3. Now I have shifted my Project to FLASH BUILDER 4.5 with SDK (Apache Flex 4.11).
    In this project, I have few links with me, clicking on which opens a TAB, and the respective Link data (XML DATA) loads into the Respective TAB. I'm using Flash Builder 4.5 currently and Apache Flex 4.11 SDK. When I use Previous Version of SDK (SDK 3), then the Data loads fine... but when I use higher version SDK (4.6 or 4.11), then the data starts to break, for instance:
    When I click on link, i.e. CLICK FOR THE VERY FIRST TIME, the Data Shows like:
    <P ALIGN="LEFT">Link 1 body text comes here</P>
    Again, when I click on the same link for SECOND time, the Data Shows like:
    <P ALIGN="LEFT">&lt;P ALIGN=&quot;LEFT&quot;&gt;Link 1 body text comes here&lt;/P&gt;</P>
    Again, when I click on the same link for THIRD time, the Data Shows like:
    <P ALIGN="LEFT">&lt;P ALIGN=&quot;LEFT&quot;&gt;&amp;lt;P ALIGN=&amp;quot;LEFT&amp;quot;&amp;gt;Link 1 body text comes here&amp;lt;/P&amp;gt;&lt;/P&gt;</P>
    I got stuck inot this issue very badly. Any help would be apreciated.
    Thanks in advance.
    IMAGE 1 (FIRST CLICK)                                                                                      
    IMAGE 2 (SECOND CLICK)
    IMAGE 3 (THIRD CLICK)                                                                                     
    IMAGE 4 (FOURTH CLICK)
    THANKS

    Hello everyone -
    Since I last posted an interesting update happened. I tested my  Flex application again, it is calling a Jetty Server that returns a JSON object, in different BROWSERS.  I disabled HTTPS for now, and the crossdomain.xml policy file is wide open for testing (ie. allowing every request to return data). So the app accessing the data using HTTP only. Browsers  -  IE, Opera, Firefox and Chrome. Each browser contained the SAME application, revision of the Flash Player (10.3.183.10 debugger for firefox, chrome, opera, safari PC; 11.0.1.129 consumer version in IE9,) take a look at the screen shot (safari not shown although the result was the same as IE and chrome)
    Note that Opera and Firefox returned successful values (i.e. successful JSON objects) using the same code generated from the Data Services Wizard. Chrome, IE and, Safari failed with an Internal error. So I am left wondering - WHY? Is it something with the Flash Player? the Browsers?  the Flex SDK? Any thoughts are appreciated. Again, the code is found in the original thread above.

Maybe you are looking for

  • How to use a Mac for broadcasting an internet radio station?

    Hi Have been toying with the idea of starting my own internet radio station. I have a new Macbook Pro and one Macbook from 4 years ago (updated to Yosemite though), and I have been wondering if Apple itself loads any capabilities into their hardware

  • I want to upgrade my hard drive

    I want to upgrade my hard drive. At the moment it is 160gb in a 2009 MacBook Pro. Do I just need a standard 2.5" sata hard drive? I was looking at this one     500GB Hitachi 2.5" Travelstar HDD, SATA, 5400rpm, 8MB Cache. Is this suitable.  Cheers, Je

  • Smart Playlists not working correctly

    Is anyone else able to reproduce this fault? I have added a smart playlist simply called music... with the options set as follows: Match (checked) ANY of the following rules... Genre is not Podcast Genre is not Lecture Live Updating is also checked..

  • 62 bit printer, 32 bit Windows 7

    I have a 32 bit windows 7 operating system and a used 64 bit HP Deskjet F2418 printer that was given to me. Can not download drivers from internet.  Does anyone have a solution to getting drivers that will work?  Thanks for your assistance.

  • Address Book Search

    Here's the thing .... say I need to find a contact within a particular company but I don't know the contacts actual name .... say I need to find the HR manager at Company X. I do a search on Company X .... I get a list of contacts that I have created