How to localize labels in customized forms in SCSM?

Hi,
when customizing SCSM forms I add label controls with the Authoring Tool. This results in a XML like this:
          <AddControl Parent="StackPanel499" Assembly="PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Type="System.Windows.Controls.Label"
Left="63.5" Top="39.0357407407408" Right="0" Bottom="0" Row="0" Column="0" />
          <PropertyBindingChange Object="Label_1" Property="Content">
            <NewBinding Enabled="False" />
          </PropertyBindingChange>
          <PropertyChange Object="Label_1" Property="Content">
            <NewValue>Requested by:</NewValue>
          </PropertyChange>
The content of the label is hard coded within the XML and therefore is always the same, independently from the chosen language of the console.
The question is: How can I refer/bind the Content property to a DisplayString from the LanguagePacks section of the Management Pack?
I tried something like this in my Management Pack:
Defined a FormStrings section:
        <FormStrings>
          <FormString ID="formTestString">$MPElement[Name="dhTestString"]$</FormString>
        </FormStrings>       
Defined a new binding to the form string (googled from different souces):
          <PropertyBindingChange Object="Label_1" Property="Content">
            <NewBinding Enabled="True" Path="Strings[formTestString].Value" Mode="Default" BindsDirectlyToSource="False" UpdateSourceTrigger="Default" />        
          </PropertyBindingChange>
Defined a string resource:
    <StringResources>
      <StringResource ID="dhTestString" />
    </StringResources>
Defined the display strings in the LanguagePacks section of the MP:
        <DisplayString ElementID="dhTestString">
          <Name>Hello World</Name>
        </DisplayString>
But after importing the MP, restarting SCSM service and console, the label is not visible in the form, its content is blank.
Can somebody help me?

I have no proof otherwise, but I don't believe it is possible to localize a value from within a form extension.
Label localization uses a RelativeSource binding.
http://blogs.technet.com/b/servicemanager/archive/2010/02/25/localizing-forms-service-request-example.aspx (note: this blog post talks about localizing labels on custom forms, not form extensions)
The <NewBinding> and <PropertyBindingChange> capability is a feature of the SCSM console framework and, as far as I can tell looking in the code, it doesn't support the creation of a RelativeSource binding.
By the way, you're not the only one to have asked this question..a couple people have asked in the forums in the past, but I never saw an answer. In fact, the only other references I can find to localizing labels and such revolves around custom forms or
correctly applying label values to copies of existing forms (but not applying values to new labels).
Hopefully I'm wrong and it can be done, but I personally don't know how.
An admittedly complicated work-around, however, would be to create your own custom XAML control and add it to your form..then you could use the relative source binding on the labels. But creating a custom control requires some experience with Visual
Studio and C#.
http://blog.scsmsolutions.com/2011/08/create-custom-user-control-for-scsm-2010/

Similar Messages

  • How to View Output From Customized Form

    I have developed a new customized form and attach it in Receipt Form Menu. I have added a button of Print Receipt on the form by name Print Screen.I have added code behind the Print Receipt Button that when it would be clicked report of receipt would be generated.When i click Print Receipt Buttton Request is submitted to Concurrent Manager and i have to view it from Concurrent Request Window.My requirement is when i click Print Screen Button output would be generated and viewable at that place and i dont need to go in concurrent request window to view and print that output.Is there any solution please suggest me.I am thankful in advance to all.

    Hi;
    Please check [this |http://forums.oracle.com/forums/forum.jspa?forumID=129] and see it helpful
    Also see:
    How to view the output submitted by other user
    How to customize look of a view
    Regard
    Helios

  • How to edit label in custom UITableViewCell?

    Hi, I'm a newby in iPhone programming, I have created a custom UITableViewCell with 3 labels and I have populated an UITableView with some rows. I need to change the text of one of the labels when the user select the cell.
    I wrote this:
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    static NSString *CellIdentifier = @"Cell";
    UITableViewCell *theCellSelected = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    theCellSelected = [theTableView cellForRowAtIndexPath:indexPath.row];
    UILabel *theLabelToEdit = (UILabel *)[theCellSelected viewWithTag:1];
    theLabelToEdit.text = @"Some Text..";
    ..but nothing happen to the label, the text doesn't change..
    What's wrong?
    Thank you!
    PS: sorry for my english, I'm italian and I don't speak it very well..

    Hi Zoodany, and welcome to the Dev Forum!
    zoodany wrote:
    I wrote this:
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    theTableView = tableView;
    // remove --> static NSString *CellIdentifier = @"Cell";
    UITableViewCell *theCellSelected;
    // remove --> = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    theCellSelected = [theTableView cellForRowAtIndexPath:indexPath]; // <-- remove '.row'
    UILabel *theLabelToEdit = (UILabel *)[theCellSelected viewWithTag:1];
    theLabelToEdit.text = @"Some Text..";
    Assuming your @interface, xib and DataSource methods are consistent with the above, the only thing stopping your code from working would be the 'indexPath.row' arg as commented. The lines which dequeue a cell won't prevent your code from running, though if any cells are actually in the queue, you'll have a memory leak there.
    However, I doubt the code you posted is the same as the code you tested. If you actually coded cellForRowAtIndexPath:indexPath.row, you should have gotten a warning since 'row' is an int instead of a pointer. And if you had ignored that warning the program would have crashed at that line. This kind of mixup often happens when the programmer keys code into the forum instead of pasting it directly from the source file. Please copy and paste when posting your code here (also see the alert about formatting code, the first topic of the forum), ok?
    If indeed 'indexPath.row' is a red herring, I think we need to look elsewhere in your project for the problem.
    I have created a custom UITableViewCell
    This contradicts your code somewhat. If you subclassed UITableViewCell, you'd normally add ivars with matching @properties to the custom cell so you could access the subviews as cell.label1, cell.label2, etc. Using viewWithTag to find one of the labels suggests that you simply added the labels to vanilla UITableViewCell objects rather that subclassing (adding the labels without subclassing is probably the best choice if no further customization is required).
    So please let us know whether or not you actually defined a subclass of UITableViewCell. Assuming you didn't, here's an example of how to add labels to your cells (only two labels are added below to simplify the example):
    // Customize the appearance of table view cells.
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    static NSString *CellIdentifier = @"Cell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
    cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault
    reuseIdentifier:CellIdentifier] autorelease];
    // make label 1
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(20, 3, 140, 38)];
    label.text = @"Label 1";
    label.backgroundColor = [UIColor lightGrayColor];
    label.font = [UIFont boldSystemFontOfSize:20];
    label.tag = 1;
    [cell.contentView addSubview:label];
    [label release];
    // make label 2
    label = [[UILabel alloc] initWithFrame:CGRectMake(160, 3, 140, 38)];
    label.text = @"Label 2";
    label.backgroundColor = [UIColor yellowColor];
    label.font = [UIFont boldSystemFontOfSize:20];
    label.tag = 2;
    [cell.contentView addSubview:label];
    [label release];
    // Set up the cell...
    return cell;
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    UITableViewCell *theCellSelected = [tableView cellForRowAtIndexPath:indexPath];
    UILabel *theLabelToEdit = (UILabel *)[theCellSelected viewWithTag:1];
    theLabelToEdit.text = @"Some Text..";
    Note that 'tableView' is used in the delegate method instead of an instance variable such as 'theTableView'. The 'tableView' parameter will always be set to the address of the table view which is calling the delegate method, so there's no need to use an ivar in this case. In fact, 'theTableView' could also be the cause of your problem. For example if you made the table view in IB, you might have forgotten to connect the 'theTableView' outlet of the controller (or File's Owner) to the UITableView object. So you might also check that connection, though the code above doesn't depend on it.
    Hope that helps!
    - Ray

  • How to localize labels in WhiteBoard component

    Hello,
    I would need to localize some labels in the whiteboard components.
    Looking at the source code, it looks like you are using a private class "com.adobe.coreUI.localization.Localization".
    How can I work around it to set my own resource bundle?
    Cheers,
    Xavier

    Hi Xavier,
    The basics here are pretty easy - essentially, we have a static accessor,
    Localization.impl, which is an instance of ILocalizationManager. Here's the
    interface :
        public interface ILocalizationManager
            function getString(p_inStr:String):String;
            function formatString(p_inStr: String, ...args):String;
    The default implementation just returns the input string - essentially does
    nothing. For the whiteboard, all the strings you'll need are processed by
    "getString", so your formatString doesn't need to do anything.
    To insert your own localization, simply make your own implementation of
    ILocalizationManager, then assign it :
    Localization.impl = new MyCustomLocalizationManager();
    I know that this doesn't conform to the resourceBundle approach Flex uses,
    but we have to live across non-Flex and Flex frameworks. Still, it should be
    trivial to take a resourceBundle and build an ILocalizationManager which
    draws its strings from it, if that's what you'd like to do.
      hope that helps!
      nigel

  • How to close a custom form from CUSTOM.pll

    Dear Friends,
    We need your help on the following issue related to Oracle Apps Forms.
    We have a requirement to show a popup message (message should remain open and user should be able to continue working in the order entry form. User use this message as a reference while entering order details) when user enters a customer name or number in the order entry form . This is similar to the Stock Availability form which gets opened automatically when control enters into Order Entry Lines form, where the stock availability form remains open while entering line details.
    To fullfil the requirement, we have designed a custom form with a single text field in which the message text (some customer information) will be shown.
    We are using custom.pll to call this custom form (thru FND_FUNCTION.EXECUTE) when the control leaves customer number field. User could leave this custom form open and continue with entering order details. Till this point we could achieve what we want. i.e. we could show the popup message in the custom form after user enters a customer number.
    The problem is, after the custom form is opened, when we enter a new order for different customer, we need to close the custom form (which is opened for the previous customer) if the customer is not qualified.
    we could not achieve this. We tried using CLOSE_FORM, CLOSE_WINDOW, but did not help.
    Any body have any suggestions on achieving this... Basically, we need your help to know how we can close the custom form from CUSTOM.pll.
    Thanks,
    Uma

    I thing you haven't any (supported) option to close a form via custom.pll.
    For a long time, we have search a solution for the same problem without any result.

  • How to display custom forms or reports on portal pages?

    Hi friends
    I am new to Portal. I knew that we can create forms and reports in portal.
    But how can i display a custom form ( ex: employee.fmb) on a portal page?
    Thanks
    Ravi

    Are you meaning Oracle Forms Module and Oracle Reports?
    If so
    please check the following
    Reports
    http://download-uk.oracle.com/docs/cd/B14099_15/bi.1012/b14048/pbr_conf.htm#sthref494
    Forms (you can only invoke forms using the SSO)
    http://download-uk.oracle.com/docs/cd/B25016_02/doc/dl/web/B14032_02/security.htm#sthref42
    Otherwise you can create your custom HTML form and report using the following technologies:
    http://download-uk.oracle.com/docs/cd/B14099_15/portal.1014/b14135/pdg_matrix.htm#CHDJIEIH
    Please refer also to:
    http://download-uk.oracle.com/docs/cd/B14099_15/portal.1014/b14135/pdg_understand.htm#sthref35
    Hope this helps
    Cheers
    Diego

  • Fax Custom Form

    I have designed a custom Outlook form for the prupose of RightFaxing but I am having difficulties finding the necessary VBA code to actually have the form fax. Currently, the form only comes through with the standard cover page, including the Subject line,
    and that's it. Any suggestions on how to get the actual custom form to fax?

    Hi,
    This forum is for general questions and feedback related to Outlook. If you need assistance regarding VBA in Outlook, you can post in the Outlook for Developers forum:
    https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=outlookdev
    The reason why we recommend posting appropriately is you will get the most
    qualified pool
    of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding. 
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to Call  fnd_submit.submit_program  in a custom Form ?

    Hi,
    Im creating a custom form based on TEMPLATE.fmb in Oracle EBS R12.
    I want to call a concurrent program (called: RVCTP) through trigger WHEN_WINDOW_CLOSED or WHEN_BOTTON_PRESSED whatever..
    I'm using this function: fnd_submit.submit_program
    How i can call it through the trigger ?
    I tried :
    declare
    con bolean;
    begin
    con:=fnd_submit.set_request_set('PO','TEST');
    con:= fnd_submit.submit_program('PO','RVCTP',NULL,'BATCH',NULL,89);
    commit;
    end;
    Nothing happening!
    Please advise!
    PS. i used fnd_submit.set_request_set because in Oracle Apps Developer's Guide it says i have to use it before fnd_submit.submit_program.

    Thank you,
    Check This in (20-30 Oracle Applications Developer's Guide R12 ) :
    Example Request Submissions
    /* Example 1 */
    /* Submit a request from a form and commit*/
    :parameter.req_id :=
    FND_REQUEST.SUBMIT_REQUEST (
    :blockname.appsname,
    :blockname.program,
    :blockname.description,
    :blockname.start_time,
    :blockname.sub_req = 'Y',
    123, NAME_IN('ORDERS.ORDER_ID'), 'abc',
    chr(0), '', '', '', '', '', '',
    IF :parameter.req_id = 0 THEN
    FND_MESSAGE.RETRIEVE;
    FND_MESSAGE.ERROR;
    ELSE
    IF :SYSTEM.FORM_STATUS != 'CHANGED' THEN
    IF app_form.quietcommit THEN
    /*form commits without asking user to save changes*/
    fnd_message.set_name('SQLGL',
    'GL_REQUEST_SUBMITTED');
    fnd_message.set_TOKEN('REQUEST_ID',
    TO_CHAR(:PARAMETER.REQ_ID), FALSE);
    fnd_message.show;
    ELSE
    fnd_message.set_name('FND',
    'CONC-REQUEST SUBMISSION FAILED');
    fnd_message.error;
    END IF;
    ELSE
    DO_KEY('COMMIT_FORM');
    IF :SYSTEM.FORM_STATUS != 'CHANGED' THEN
    /*commit was successful*/
    fnd_message.set_name('SQLGL',
    'GL_REQUEST_SUBMITTED');
    fnd_message.set_TOKEN('REQUEST_ID',
    TO_CHAR(:PARAMETER.REQ_ID), FALSE);
    fnd_message.show;
    END IF;
    END IF;
    END IF;
    I'm still getting an error "Wrong Number of types or arguments in call to 'SUBMIT_REQUEST' "

  • How do you add a custom label to dates in contacts.....

    How do you add a custom label to dates in contacts- I have multiple birthdays in contact group and want to change label through customise to add additional birthday- unless another way to add second birthday to contacts and identify each one?????? or way to link contacts with same address phone number etc but id birthdays?????

    You have some contacts with more than one birthday?
    To add a custom label for a date, select Edit for an existing contact. Select Add Field. Select Date. Scroll up with the Info window above the date selection and select Other for the new date selection. Select Add Custom Label and then select this label for the new date field for the contact.
    As far as linking dates with multiple contacts, the answer is no to that.

  • How to initialize org in a custom form in R12 upgrade

    Hi,
    We are migrating a custom form from 11i to R12. But the form and LOVs in the fields dont return any values in R12. The custom views attached to these LOVs, return values in toad when the org is set. We think that the issue is that the org is not initialized in the form.
    Can anyone help on how to resolve this?
    Would it help if we used "MO_GLOBAL.SET_POLICY_CONTEXT('S',fnd_global.ORG_ID);" in the when new form instance trigger in the form.
    Thanks

    Use following code in when-new-form- instance form level trigger
    FND_ORG.CHOOSE_ORG;
    :PARAMETER.ORG_ID:=FND_PROFILE.VALUE('org_id');
    then insert following in pre-insert block level trigger
    :ORG_ID := :PARAMETER.ORG_ID;

  • How to set org in a Oracle custom form

    Hi,
    We are migrating a custom form from 11i to R12. But the form and LOVs in the fields dont return any values in R12. The custom views attached to these LOVs, return values in toad when the org is set. We think that the issue is that the org is not initialized in the form.
    Can anyone help on how to resolve this?
    Would it help if we used "MO_GLOBAL.SET_POLICY_CONTEXT('S',fnd_global.ORG_ID);" in the when new form instance trigger in the form.
    Thanks

    YOu should ask your question in an ebusiness-suite related forum.

  • How to Locate the Custom Form Name  in Oracle Apps

    Hi hussein,
    We had a migration project from 11.0.3 NT to 11.5.10.2 AIX, and it include
    1 form I guess. The client user is showing me the navigation tree where the customized form was located.
    She opened the NT Oracle Apps 11.0.3 and it is showing the following:
    Cash Management Responsibilty
    + Other
    Enter Adjustment >> this is the customized form that she showed me
    When the form opened, i shows a block with parent table "AP_BANK_ACCOUNTS_ALL" and a child table
    "CEC_ADJUSTMENT_RECON".
    My question is, based on the navigation, how do I know which is the location of the forms.fmx? of what
    module was it registered to?
    ==============
    I tried to navigate to the custom form and open it, then click "Help --> About"
    from the menu bar, but it does not show you the form name and the forms executable location path,
    (not like the standard forms of oracle where it shows the form name),
    the "help" being shown is the help of the runtime form in a normal default oracle form window.
    so I assumed that the custom form has been registered but not following the standard procedure.
    ==============
    How do I reverse locate it? base on the "tree" > Enter Adjustment
    Thanks a lot

    Hi,
    Please see (Note: 176852.1 - Integrating Custom Applications with Oracle Applications Release 11i), Step 10-f.
    For the (Help > About) issue, please see if (Note: 556755.1 - Forms Version Not Showing On 'About Oracle Applications' Form From Help Menu) helps.
    Btw, I guess we had a similar discussion before in this EBS 11i Customized Oracle Forms and Reports.
    Regards,
    Hussein

  • How to make a custom form, buttons etc... please...

    I mean, how to make a form (for example, JFrame) with arbitrary form (geometry, for ex, round, oval, star like etc). I think you understand what i mean.
    Of course, i think i can use winApi, but it's only for windows. It doesn't suit for Java in this problem solution.
    That question also about cusomizing form of buttons, fields.. etc..
    i think, everything.
    What can java allows to cusomize and what not.
    Thanx!!

    I am just a learner and so i can just suggest you a strategy to implement Customized forms in JAVA. However i am sure that in practice it will work as far as Windows OS are concerned. Here is it:-
    The basic IDEA is to declare a native function in JAVA that makes JNI calls which will be further processed by Win32API and processed output will result into an elliptic or any polygonal shaped forms.
    To achieve declare some function as follows:
    public native void createEllipticalForm(formName formRefrance);
    create a Win32 Compiled DLL that manages this function as follows:
    (Mindwell, i havent stated what you call as pure-code but just a pseudo-code to the actual implementation)
    public native void createEllipticalForm(formName formRefrance)
    /* Search for the below stated Functions in Win32 API and work on
    them. I see a ray of success if you work with these functions properly.
    Further-more I assume that you are aware with concept of HANDLES */
    createEllipticRegion(); //WINDOWS.H
    showWindow(handleToTheForm); //WINDOWS.H
    Search for "createEllipticRegion() or showWindow()" on the GOOGLE to get the pure win32 API Code for Creating Customized Forms.
    Reply me in case any of you people get a solution based on my idea.
    [by VISH]

  • How to register a custom form under "LEASE -- TOOLS"?

    Hi,
    This is my first form development in Oracle Apps.
    I have a requirement of building a custom form and to display it under LEASE -- > TOOLS.
    I could register the form under a menu by the following steps:
    1. Application Developer --> Forms : Enter the custom form name
    2. Register a new form function
    3. Attaching the form function under a menu
    How do I register this form under Lease--> Tools?
    Thanks and Regards
    Ruma

    Hi,
    I could register the form under a menu by the following steps:
    How do I register this form under Lease--> Tools?I believe you could follow the same steps but attach the form function to the submenu (instead of the menu itself).
    From the Application > Menu, query the main menu to get the submenu, then query the sub-menu and attach the form function.
    More details can be found in the "Developer Guide" which can be found at:
    Applications Releases 11i and 12
    http://www.oracle.com/technology/documentation/applications.html
    Regards,
    Hussein

  • How to use Key Flex Fields in Custom Form

    Dear Members,
    I have developed a custom form.
    In my form there is a search criteria for location.
    When ever user wants to query based on the location ,I want to display Asset Location Key Flexfield so that user can choose the respective segements and search the assets.
    Can any one please tell me what is the procedure to be followed to display Key Flex Fields in the custom forms?
    Your inputs will be of great help to me.
    Thanks in advance.
    Best Regards,
    Arun Reddy.

    Hi,
    Please see the note:730068.1 - How To Invoke a DFF from a custom form
    Thanks,
    Ajikumar G

Maybe you are looking for

  • How to create multi-frame window

    What I want to do is to create a regular application window that has three frames, all divided by shared borders. To further explain what I need, please envision your typical mail client. You have a folder-tree pane, an email list pane, and an email

  • HP 6500a Plus cannot connect wirelessly

    Hi, Just bought the HP6500a Plus and understand that this printer is having problem with the constant wireless connection. I am having the same problem and changing the IP address occasionally solve the problem but not alway and it also create proble

  • Goods receipt indicator is PO is not set for Stock -item

    Hi Gurus, I have created PO for a raw material but it is so strange that the Goods receipt indicator in Delivery tab is not set (it is greyed out also). Then, I cannot do Goods receipt for PO anymore. Normally, this Goods receipt indicator is set aut

  • WD My Book Studio FireWire 800 External Hard Drive & Mountain Lion

    I just recently purchase a 2 TB WD My Book Studio FireWire 800 External Hard Drive (model #WDBC3G0020HAL-NESN) to perform backups of my 1TB iMac which currently is running OS X Lion 10.7.5.  The packaging says the external hard drive is compatible wi

  • JColorChooser hangs event thread on Linux x64

    I am finding that repeatedly displaying a JColorChooser, picking a color, and clicking "OK" will hang the event thread in 64-bit Ubuntu 9.04 (Java 6 Update 13). Usually it takes between 2 to 20 launches of the JColorChooser before the color chooser w