How to read the Key value from the Message using the text value.. Urgent

I need to read the Key valuefrom the message pool using the text value for the Key.. Is it possible.. Please help me with sample code..
Thanks and Regards
Avijit

Avijit,
I got your requirement. I really dont know the scenario your working on but its possible to do it. There is no direct way to do so, but complexity is in getting to know the Keys dynamically from interface.
Here you go..
     try
          Class msgClass      = IMessageTestWDApps.class;
//Replace IMessageTestWDApps with IMessage<Your WD Component name>
          Field keys[]      = msgClass.getFields();
          IWDTextAccessor textAccessor = wdComponentAPI.getTextAccessor();
          if(keys != null)
               String key = "";
               for(int index=0;index<keys.length;index++)
                    key = keys[index].getName();
                    wdComponentAPI.getMessageManager().reportSuccess("Key= "+key);
                    if(textAccessor.getText(key).equals("My message text"))
                         //your logic.
     catch(Exception cnfe)
          wdComponentAPI.getMessageManager().reportException("Exe "+cnfe.getMessage(),false);
Regards
Abhilash
Message was edited by:
        Abhilash Gampa

Similar Messages

  • How can I drop the key board from my calendar. The normal lower right key stopped working

    How can I drop the key board from my calendar? The normal lower right key stopped working.

    You can install this extension to make it easier to edit userChrome.css:
    * ChromEdit Plus: http://webdesigns.ms11.net/chromeditp.html
    The file needs to have this code:
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #personal-bookmarks #bookmarks-menu-button { display:none !important; }</nowiki></pre>
    You can reach the profile folder this way:
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    The file userChrome.css needs to be in the chrome folder in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so if the chrome folder is missing then you need to create a folder with the name chrome.

  • How to get the job logs from sm35 by using the queue id and session name?

    hi all,
    can any one please let me know how to read the job log from sm35 by using the session name and queue id. i have the job name and job count but is it possible to download the job log by using the queue id and session name.
    FYI..
    i want to read this job log and i want to send it to an email id.
    -> i am using the job_open and submitting the zreport via job name and job count and then i am using the function module  job_close.
    but this is not working in my scenario i have the queue id and session name by using this two i want to get the job log is there any function module available or code please provide me some inputs.
    thanks in advance,
    koushik

    Hi Bharath,
    If you want to download it to the local file then you can follow the instructions in the below link.
    How to download Batch Input Session Log?
    Regards,
    Sachin

  • In Mail 7.3 on my Retina MacBook Pro on OS 10.9.4, how can I type from the keyboard into a mail message using the Apple Symbols font?

    In Mail 7.3 on my Retina MacBook Pro on OS 10.9.4, how can I type from the keyboard into a mail message using the Apple Symbols font?
    When I select the Apple Symbols font from the list accessed from under Format/"Show fonts"/collection-all fonts/Apple Symbol, and then continue typing, I get normal letters, if in a slightly different font.
    How can I type using the Apple Symbol font?  I want to use that font to include keyboard and cursor selections of actual screen symbols to help write easily understood explicit computer lesson emails to my 92 year-old mom from a few hundred miles away.
    Steve

    In Mail 7.3 on my Retina MacBook Pro on OS 10.9.4, how can I type from the keyboard into a mail message using the Apple Symbols font?
    When I select the Apple Symbols font from the list accessed from under Format/"Show fonts"/collection-all fonts/Apple Symbol, and then continue typing, I get normal letters, if in a slightly different font.
    How can I type using the Apple Symbol font?  I want to use that font to include keyboard and cursor selections of actual screen symbols to help write easily understood explicit computer lesson emails to my 92 year-old mom from a few hundred miles away.
    Steve

  • HT1277 I can recieve emails but I can't send them out.  The blue bar at the bottom left of the Mail page gets half way across and then the pop-up "Cannot send message using the server" comes up?  What do I do?

    I have my Yahoo Mail "poped" over to Apple Mail.  I can recieve emails but I can't send them out.  The blue bar at the bottom left of the Mail page gets half way across and then the pop-up "Cannot send message using the server" comes up?  What do I do?

    Your outgoing mail server is different than your incoming server. Usually the outgoing mail server will have smtp in it. I noticed yours said "cannot send message using the server mail.wavecable.com". That sounds like an incoming mail server. Try setting your outgoing mail server to smtp.wavecable.com
    I hope that helps.

  • How to calculate the value from prompt and use the value as filter

    Hi everyone,
    I am designing a OBI query. I want to write a query and one of it filters comes from the dashboard prompt. Say I want to make a query to pull out the record for 3 consective years and user wants to enter the last year # and omit entering the first 2-year code#.Thanks!

    Hi,
    if i understand your question
    you have a prompt for year.. and it's assigned with presentation variable, say: var_year
    And you are just entering value for only one year, say 2000.
    Then, the request (which is using that prompt value as filter) should display year values 2000, 2000-1 (i.e. 1999), 2000-2 (i.e. 1998).
    Is this your requirement?
    If then,
    Hope you are using edit box as control for year prompt and assign a presentation variable for that prompt.
    Now, in report go to filter of year prompt, click on advance > Convert this filter to SQL.
    write here... *Times.Year between @{var_year} and @{var_year}-2*
    And make sure that your var_year is integer, if not cast it to integer

  • How do I send a fax from my A210 using the internal modem?

    I have an A210 laptop with Windows Vista Home Premium and Office 2007 Professional and use the wireless network card to connect to our broadband modem.
    For my business I would like to be able to send faxes through the normal telephone line direct from my laptop, rather than buying a fax machine.
    There is a Toshiba Software Modem attached to COM3, but I can't work out how to use it to send a fax.
    On older computers I have been able to set up the fax modem as a printer driver and have sent faxes directly from Word using a print-to-fax option.
    I can't find anything in the general Windows help or Word help that shows me how to do this on my laptop.
    Any suggestions gratefully received.
    Gillian

    > {quote:title=GillianS wrote:}{quote}
    > Any suggestions gratefully received.
    > Gillian
    I may say that there is no need to buy a fax machine for Faxing sending purposes.As soon an you have a computer and internet connection go ahead and subscribe to Popfax.com Internet Fax Provider. Fax Provider . Low rates and a very professional Customer Care assistance.
    I use the The Zoom/Modem V.92 PC Card Plus on my Toshiba laptop - it is a 56K fax modem that plugs into the PCMCIA slot . Good performance and it has an on-board controller and Digital Signal Processor which is a nice feature. Also, has Modem on Hold so when you receive a fax or voice call, you don't lose your Internet connection. Hope this is helpful and good luck!

  • How do I take a picture from usb camera using the Windows Image Acquisition Automation activex control in LabWindows?

    Hy!
    I have a faculty project in wich I
    have to acquire image from a webcam in Labwindows
    8.1 and to take a picture and save it in a file and to display it.I managed to acquire
    image from the webcam using the WIA automation activex controll but I
    haven't been able to take a picture and save it and display it .So i ask of you to
    post a tutorial or something that would help me to take a picture and save it and display it using the WIA automation activex controll in
    LabWindows.
    OS: Windows XP Professional X86
    Please help me!!

    Unfortunetly I do not have any experience with Activex.This is one of the codes I tried so far:#include "wiaaut.h"
    #include <cvirte.h>        
    #include <userint.h>
    #include "camm.h"
    static int panelHandle;
       int cid,eroare;
       CAObjHandle objh;
       WIAObj_IImageFile result;
       ERRORINFO eror;
    int main (int argc, char *argv[])
        if (InitCVIRTE (0, argv, 0) == 0)
            return -1;    /* out of memory */
        if ((panelHandle = LoadPanel (0, "camm.uir", PANEL)) < 0)
            return -1;
        DisplayPanel (panelHandle);
        RunUserInterface ();
        DiscardPanel (panelHandle);
        return 0;
    int CVICALLBACK OkCallback (int panel, int control, int event,
            void *callbackData, int eventData1, int eventData2)
        switch (event)
            case EVENT_COMMIT:
               WIA_NewIVideoPreview(panelHandle,"Video",45,45,&cid,&eroare);
               GetObjHandleFromActiveXCtrl(panelHandle,cid,&objh) ;
                break;
        return 0;
    int CVICALLBACK QuitCallback (int panel, int control, int event,
            void *callbackData, int eventData1, int eventData2)
        switch (event)
            case EVENT_COMMIT:
                QuitUserInterface (0);
                break;
        return 0;
    int CVICALLBACK pozaCallback (int panel, int control, int event,
            void *callbackData, int eventData1, int eventData2)
        switch (event)
            case EVENT_COMMIT:
               WIA_NewICommonDialog(panelHandle,"poza",45,400,&cid,&eroare);
               WIA_ICommonDialogShowAcquireImage(objh,&eror,2,1,131072,"{B96B3CAB-0728-11D3-9D7B-0000F81EF32E}",VTRUE,VTRUE,VTRUE,&result);
                break;
        return 0;

  • I am having problems setting the gain programatically from Labview 6, using the Hardware Config vi, for a PCI6110E DAQ board.

    NB: This has also been posted to High Speed Digitizers forum.
    Changing the "gain" (part of the "alternate input limits" cluster) appears to affect the group settings, but when I pass a signal outside the supposed new voltage range, the signal doesn't clip as I would expect. This doesn't happen when I use MAX (where clipping is clearly visible), but unfortunately that is not an acceptable long-term solution. Any thoughts? I am only using allowable gain settings for the 6110E.
    Additionally, I am saving my data in hsdl format, and to get the actual true voltage from the binary numbers (after uncompressing and converting back to standard binar
    y format) I need to multiply the final number by the gain. Should this be correct? I thought the "scale multiplier" (part of "group settings cluster") compensated for "gain", but it doesn't seem to do so. Is this part of the same problem?

    Thanks Spencer. I do call Hardware Config.vi in several different places, so maybe its the multiple calls that is stuffing things up. I will investigate further.
    As for the multiplier, which bit sounds correct? The fact that I have to multiply by the gain, or that it should take this into account automatically and therefore not have to muliply by the gain (which is what the default hsdl code does). What do you do to convert from binary to real?
    Thanks for your help,
    Jo

  • Why is the content missing from my messages in the Mail app?

    Yesterday, because my email addresses are changing, I modified the settings to my accounts in the email application Mail so that they properly connect to the new email addresses and settings.
    Most of the accounts are working fine. However, in one of them, it appears the content of nearly all the messages (both received and sent) are missing or not displaying. The program sees that there are different messages and lists them properly in the Inbox and Sent sections but when I try to preview or open them, a blank white screen with the message "Loading..." appears where the message content should.
    I did not delete anything that would have affected these accounts in this way, yet this is happening. I tried restarting Mail but the same problem persists. Again my other accounts in Mail seem to be fine.
    BTW, I use Mac OS X v. 10.7.5 (Lion).
    What can I do to restore the messages?

    Would rebuilding the mailbox help? Or have people not had a good experience with that?

  • How do I stop my cursor from selecting things on the page? It shows up like I want to type something and when I press the down key it goes through all the words like its a word document.

    How do I stop my cursor from selecting things on the page? It shows up like I want to type something and when I press the down key it goes through all the words like its a word document.
    == This happened ==
    Every time Firefox opened
    == June 27, 2010

    You have '''caret browsing''' enabled - that preference appears as set in your Troubleshooting Information.
    http://kb.mozillazine.org/Accessibility.browsewithcaret
    Hit the '''F7''' key to disable '''''caret browsing'''''.

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Code for how to read an integer array from the command prompt...

    hello,
    Could anyone give me the code for how to read an integer array from the command prompt...its very urgent!..

    If you are using a recent version of Java (5 or later) you can use Scanner:
    http://java.sun.com/javase/6/docs/api/java/util/Scanner.html
    That page has some example code on it, too.

  • How do you log values from RT target to the computer?

    Hi,
    I am using sbRIO 9633. How do you log values from RT target to the computer?
    I created a shared variable on the RT target and used them on the log VI created under "My Computer", but I get error.
    I get this error..
     \\192.168.1.140\temp deployment failed (error: -1967357949, IAK_SHARED:  (Hex 0x8ABC8003) Unable to query Measurement & Automation Explorer for the Shared Variable Engine. Make sure the Shared Variable Engine exists on the RT target and check that the network connection is valid.).
    kdm

    What are your data rates?  If you are producing data "continuously", you might find that Network Streams are easier and more reliable than Network Shared Variables.  In any case, you need an "engine" on one side (Host or Target) or the other.  I'm streaming 24 channels of 16-bit data from a PXI controller to a PC this way, with three other streams handling two-way messaging and transmission of "occasional" time-stamped data to the PC.
    Bob Schor

  • Can we suppress the key figure from the filter values?

    Hi,
    I have one restricted key figure.
    1) Is it possible to hide the key figure for calender year 2009 and display it for year 2010. I mean can we hide the column dynamically?
    2) Can we grey out the key figure from filter criteia so that it cannot be checked for specific calender year?
    eg if i have 3 key figures as One , Two , Three.
    In filter , it will show One , two ,  three  and the checkbox . Is it possible to grey out the checkbox so that user will not be able to check it or tick it?
    Regards!

    Hi,
    1) I don't think we can hide it dynamically.
    2) I dont think we can give such a option in the query designer.can you explain what is ur exact requirement.
    Regards,
    Ravi

Maybe you are looking for

  • How to make columns in a table dynamic

    Hi, I want to make the columns of a table dynamic. At design time I dont know how many columns will be required. Rows are made dynamic by using the bean concept. Please help me in this reference(columns). Thanks Pooja

  • How to populate the RFC .Exception Message Type?

    Hi All, I am invoking an RFC synchronously from PI. I am using the RFC.Exception message type to capture the exception raised from the RFC. In the RFC, I have created a Non-class based exceptino anf raising it using the "Raise" command. But it is onl

  • Effect of appending  standard internal table to hashed one ?

    hi, in my main program i have an internal table called NAST which is hashed. i call a function module which returns an internal table called xNAST, whose records i append to NAST. since i dealt with TABLES tab of FM, i had to receive this xNAST of ty

  • Reinstalling Time Machine Backups?

    So my hard drive crashed suddenly and I had to reinstall OS 10.5.6. Fortunately, I had just backed up my files on time Machine to an external drive for just that purpose. I've managed to get all my software updated after a bit of work. The problem is

  • Subesequent credit memo became Credit Memo upon posting.

    Dear MM Gurus, We were trying to post subsequent credit memo for our PO that has price changed, but when we post and save it from miro, when we check in PO it became credit memo. That's why the qty was been affected. Any idea why upon posting it was