[CS3] WLBCmpEyeballObserver::Update() - How to get NodeID?

How do you get access to NodeID (and hence the internal data) at user action on a widget in Node widget. WLBCmpEyeballObserver::Update() stops short at displaying an alert box.
void WLBCmpEyeballObserver::Update
     const ClassID& theChange,
     ISubject* theSubject,
     const PMIID &protocol,
     void* changedBy
     if(theChange == kTrueStateMessage) {
          // Then the button has been activated.
          do {
                    PMString dbgInfoString("WLBCmpEyeballObserver::Update() ");
                    dbgInfoString.SetTranslatable(kFalse);     // only for debug- not real code
                    CAlert::InformationAlert(dbgInfoString);
          } while(0);
I tried following so far:
void WLBCmpEyeballObserver::Update
     const ClassID& theChange,
     ISubject* theSubject,
     const PMIID &protocol,
     void* changedBy
     do
          InterfacePtr<IControlView> controlView(theSubject, UseDefaultIID());
          // Get the button ID from the view.
          WidgetID theSelectedWidget = controlView->GetWidgetID();
          if (theSelectedWidget == kWLBCmpListElementEyeballWidgetID
               && theChange == kTrueStateMessage)
               // 1st approach - Following returns null
               InterfacePtr<ITreeNodeIDData> nodeData(this, UseDefaultIID());
               TreeNodePtr<WLBCmpNodeID> nodeID(nodeData->Get());
               // 2nd approach - I do get the controller.
               // But its of no use since my row isn't selected
               InterfacePtr<IWidgetParent> widgetParent(controlView, UseDefaultIID());
               InterfacePtr<ITreeViewController> controller(static_cast<ITreeViewController*>(
                    widgetParent->QueryParentFor(ITreeViewController::kDefaultIID)));
               NodeIDList selectedItems;
               controller->GetSelectedItems(selectedItems);
               const int kSelectionLength =  selectedItems.size() ;
               if (kSelectionLength> 0 )
                    K2Vector<NodeID>::const_iterator iter;
                    for(iter = selectedItems.begin(); iter != selectedItems.end(); ++iter) {
                         const WLBCmpNodeID* oneNode = static_cast<const WLBCmpNodeID*>(iter->Get());
     } while (false);

Allright finally got it to work. Trick was to get panel control data > find node widget > get node data
void WLBCmpEyeballObserver::Update
     const ClassID& theChange,
     ISubject* theSubject,
     const PMIID &protocol,
     void* changedBy
     do
          InterfacePtr<IControlView> eyeballControlView(theSubject, UseDefaultIID());
          // Get the button ID from the view.
          WidgetID theSelectedWidget = eyeballControlView->GetWidgetID();
          if (theSelectedWidget == kWLBCmpListElementEyeballWidgetID
               && theChange == kTrueStateMessage)
               // Get parent of eyeball widget
               InterfacePtr<IWidgetParent> eyeBallWidgetParent(eyeballControlView, UseDefaultIID());
               // Get control view of parent - just in case they are different
               InterfacePtr<IControlView> nodeWidgetControlView(eyeBallWidgetParent, UseDefaultIID());
               // Get the panel control data of parent widget
               InterfacePtr<IPanelControlData> panelControlData(
                    (IPanelControlData*)(eyeBallWidgetParent->QueryParentFor(IPanelControlData::kDefaultIID)));
               ASSERT(panelControlData);
               if (!panelControlData) break;
               // find the node widget id from panel control data
               IControlView* parentWidgetControlView =
                    panelControlData->FindWidget(kWLBCmpListParentWidgetId);
               // Get the node data. This is not null
               InterfacePtr<ITreeNodeIDData> nodeData(parentWidgetControlView, UseDefaultIID());
               TreeNodePtr<WLBCmpNodeID> wlbCmpNodeID (nodeData->Get());
     } while (false);

Similar Messages

  • Pages has a free update; how to get it?

    The apple store said there was a free update of Pages; how to get it?

    If you had purchased iWork '09 applications from the OS X App Store prior to October 2013, or a new Mac in the last 12 months, you would qualify for a free Pages v5.5.1 update.
    Launch the OS X App Store application (in your Dock) on your Mac. Click the Updates button on the toolbar. If it does not present a Pages update there, sign in to the App Store with your Apple ID, and under Categories on the right, click Apps Made by Apple. Click the Pages icon, and see if it is offered for purchase, or free download/installation.

  • Update from CS3 to CS5, how to get my plugins?

    Greetings,
    I just updated to CS5 and have two questions.
    What happened with the CS3 extended Version that I had installed?
    My third party plugins are installed in company specific folder in applications, such as Applications/NIK/Viveza2,or Applications/Genuine Fractals/, etc. In preferences I can only use one additional plugins folder, how do I get them all to work now?
    Thanks
    Georg

    Thank you Chris. I was not aware about that, as this is my first Photoshop Update, I started with CS3. So I have to make what they call aliases by right click and then copy them into the photoshop plugin folder.
    I just learned that my plugins are not 64 bit compatible, so this has to wait.
    Best
    Georg

  • CS3 software updates - how to check

    Hi all.
    Could someone please tell me how I go about checking for software updates with CS3?
    For instance its easy for Mac OSX, you just click on 'software update' in system preferences, but I'm not sure how to do it in CS3?
    Any help would be most welcome.
    Thanks,
    Kevin

    Many thanks Nini.
    I've just done the check and the updates are being downloaded.
    Much appreciated.
    K

  • Realtek hd audio driver doesnt get update, how to get this done?

    i m not able to update my realtek hd audio driver,cybelink power2go and cyberlink photodirector. Kindly help.

    Hi,
    To help us answer question quicker, please read this:
       http://h30434.www3.hp.com/t5/First-Time-Here-Learn-How-to-Post-and-More/bd-p/Hello
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • HT4759 I am unable to download ios5.1.1 and icloud on my ipad 2. itune store is showing error on click of download and update. how to get it?

    Please advise steps.

    Welcome to the Apple community.
    Try updating by connecting it to your computer and using iTunes.

  • [CS3-VBA/JS] How to get referense on para with pic

    i try to get para, previous for para with inline picture
    Set mPics = myDoc.Pages(4).PageItems(1).ParentStory.AllGraphics
    For Each mPic In mPics
    Set mPicPara = mPic.Parent.Parent 'para with pic
        Set mPara_1 = mPicPara.ParentStory.Paragraphs.PreviousItem(mPicPara) ' – writes "invalid parametr"
    Next
    by the way:
    Set mPara2 = mPicPara .ParentStory.Paragraphs.NextItem(mPicPara ) 'give reference on whole story
    Set mPara2 = mPicPara .ParentStory.Paragraphs.PreviousItem(mPicPara ) ' again – "invalid parametr"
    Where is mistake?
    Thanks

    Hi,
    Can you check is it para or not, then only it shows invalid parameter error.
    try this: msgbox mPicPara.contents
    sudar

  • My former Firefox Profile and bookmarks are missing after a Firefox 29 update - how to get them back?

    I've tried all the Mozilla support articles without success.
    Where are my bookmarks/passwords/etc. saved in my Mac desktop computer?
    Help!!!

    It is possible that there is or has been a problem with the profiles.ini file that registers all profile and that a new default profile got created.
    *http://kb.mozillazine.org/profiles.ini_file
    If you sue the Time Machine on your Mac then you can try to recover files that way
    *http://www.apple.com/support/timemachine/
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Recovering_a_missing_profile

  • Updated - How to get a licence file for older versions of JRockit products.

    Follow the steps in the topic above, but the file can be found at this location instead.

    Hello,
    For Electronics Workbench 5.x you don't need a Release Code, only your Serial Number. If you need the installer please send the request to [email protected], include your Serial Number and contact information.
    Have in mind that we no longer support version 5, the installer could fail depending on your operating system.
    Regards,
    Fernando D.
    National Instruments

  • I need CS3 to update on new computer running mavericks. How?

    I need CS3 to update on new computer running mavericks. How?  I keep getting a message that the updater quit, but the installation went well.  No photoshop file opens correctly... there are just a lot of colored lines. But I cannot afford a new Photoshop suite at this time.  Any ideas?

    The new Sync version uses the Firefox account and stores the login data (username/email and password) under the https://accounts.firefox.com site heading in the Password Manager and use the signedInUser.json file in the profile folder to store the credentials once connected to the account to avoid having to enter the master password on each start.

  • I cant update nor download any applications. My password was always invalid. And other username is prompted richardca0521@yahoo.ca which is not my account. How to get rid of this apple id and use my account for download? I have registered this to itunes.

    I can't update nor download any apps in itunes. Prompted invalid password, upon checking the apple id was not mine. The id was [email protected] whic is not mine. Pls. Help how to get rid of this. Thank you.

    try and delete the apps and re-add them

  • I am unable to open Calendar on my iMac - this occurred after installing Security Update 2015-002.  I don't know if related.  A message pops up after several minutes saying Calendar quit unexpectedly (but it never really opens). How do get Calendar b

    I am unable to open Calendar on my iMac - this occurred after installing Security Update 2015-002.  I don't know if related.  A message pops up after several minutes saying Calendar quit unexpectedly (but it never really opens). How do get Calendar back?

    Hi Magsrobby,
    Welcome to the forum and thanks for posting. I'm really sorry to hear you've had so many problems. I can look into this for you if you wish. Drop me an email with the details. You'll find the "contact us" form in the about me section of my profile. Once I have the details we'll take it from there.
    Cheers
    David
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • My macbook's safari wont open. At first it got deleted and so i got it back by bluetooth and now t wont open because of the update. Any ideas on how to update it or get safari back? it got deleted :/

    my macbook's safari wont open. At first it got deleted and so i got it back by bluetooth and now it wont open because of the version of mac OS X update. Any ideas on how to update it or get safari on my mac? It got completly deleted i checked everywhere including applications but its gone. it got deleted :/

    Here it is : Safari 5.0.6 for Leopard

  • I downloaded updates to iphoto and computer erred on install. I cannot open iphoto. I decided to reinstall iphoto from app disk and now I get an error message"......iphoto may be damaged or incomplete"  Any suggestions how to get iphoto going again???

    I downloaded updates to iphoto and computer erred on install. A report went to Apple.
    I cannot open iphoto. I decided to reinstall iphoto from my app disk and now I get an error message"......iphoto may be damaged or incomplete"  Any suggestions how to get iphoto going again???
    My iphoto library still exists and I don't want to lose it.

    https://discussions.apple.com/community/ilife/iphoto

  • I have an iPOD mini library and now have a IPhone 4S.  I updated my library and synced my phone to the library but can not figure out how to get the music library to download to my  iphone

    I have an iPod mini library which I have update. I now have an iPhone 4S which I have synced to the library using a MS XP computer. I can not figure out how to get the library to download to my iPhone?

    Thanks,  This caused me to go back and try again since the solution seemed so simple.  What I did was when it started downloading, it started with the iphones apps to my computer.  I did not want the apps downloaded on my computer so I stopped it.  If I would have waited, the music was uploaded right after the apps were downloaded.

Maybe you are looking for

  • Iphone disabled not able to restore it

    hey i have an iphone 5 with ios 7 my iphone is disbled and i have never snyc with itunes i put it in recovery mode but when i m restoring then everytine an error occurs i dont know how to restore it plz help

  • Change of Source Structure for Partial Settled WBS elements - CJ02

    Hi As per standard SAP, the change of source structure under settlement perameters of WBS element is not supported when the settlement of WBS element is done either partial / full. However, the client needs this change by doing any Z-Development as o

  • TNS Listener Error During CE 7.2 Install Phase "Import Java Dump"

    Hi All, We are installing a new CE 7.2 system on AIX 6.1 with Oracle 10.2.0.4 (system name JDQ). We are receiving the following error during installation phase "Import Java Dump:" Oct 11, 2010 12:44:50 PM com.sap.inst.dbtools [Thread[main,5,main]] Fa

  • Eail (content of type html )parsing?

    Hi, I have to parse email content which is of type html. I have to take the reply message given and put that in database. Sometimes the reply message is put in DIV tags and some times in P tags. I want to know based on what parameters the content of

  • Regarding Removal of Excise

    Dear all,                            I have booked an A/R Invoice for a party....and all the excise has been booked .Now i have to do the A/R credir memo.........But it is crediting only the Temporary excise account . 1) What is the actual process to