Persist custom data in document / Is ASB-CSB, Command the only way?

I have a need to persist custom data set (PMString for now) in a document, say for example source URL. Basic Persist sample suggests using implementing suites and commands. I was wondering if there is a quick way of doing such a simple task. XMP may be?
Thanks

Hi Carl,<br /><br />What you need is the header file : 'IWFPParamaSerial.h'<br /><br />>#include "VCPlugInHeaders.h"<br /><br />>#include "IPMUnknown.h"<br />#include "WFPID.h"<br /><br />>class IWFPParamSerial : public IPMUnknown<br />{<br />public :      <br />     enum { kDefaultIID = IID_IWFPPARAMSERIAL };<br />     virtual void SetParams(const PMString &pmstrParams)=0;<br />     virtual void GetParams(PMString &pmstrParams) = 0;<br />};<br /><br />Then, the implementation :'IWFPParamaSerial.cpp'<br /><br />>#include "VCPlugInHeaders.h"<br />// Interface includes<br />#include "IWFPParamSerial.h"<br />#include "WFPID.h"<br />// General includes:<br />#include "CPMUnknown.h"<br />#include "K2Vector.h"<br />#include "IPMStream.h"<br /><br />>class WFPParamSerial : public CPMUnknown<IWFPParamSerial><br />{<br />public:<br />     /**     Constructor. */<br />     WFPParamSerial(IPMUnknown* boss);<br />     /**     Destructor.     */<br />     ~WFPParamSerial(){};<br />     virtual void SetParams(const PMString &pmstrParams);<br />     virtual void GetParams(PMString &pmstrParams);          <br />     void ReadWrite(IPMStream* stream, ImplementationID implementation);<br />private :          <br />     PMString m_pstrParams;<br />};<br /><br />>CREATE_PERSIST_PMINTERFACE(WFPParamSerial, kWFPParamSerialImpl)<br /><br />>WFPParamSerial::WFPParamSerial(IPMUnknown* boss) : CPMUnknown<IWFPParamSerial>(boss)<br />{<br />}<br /><br />>void WFPParamSerial::SetParams(const PMString &pmstrParams)<br />{<br />     if (pmstrParams != m_pstrParams)<br />     {<br />          PreDirty();<br />          m_pstrParams = pmstrParams;<br />     }<br />}<br /><br />>void WFPParamSerial::GetParams(PMString &pmstrParams)<br />{<br />     pmstrParams = m_pstrParams;<br />}<br /><br />>void WFPParamSerial::ReadWrite(IPMStream* stream, ImplementationID implementation)<br />{<br />     m_pstrParams.ReadWrite(stream);<br />}<br /><br />Of course, in the 'WFPID.h', declarations for interface & implementation IDs :<br /><br />>DECLARE_PMID(kInterfaceIDSpace, IID_IWFPPARAMSERIAL,     kWFPPrefix + 1)<br />DECLARE_PMID(kImplementationIDSpace, kWFPParamSerialImpl,     kWFPPrefix + 6)<br /><br />In 'WFPFactory.h' :<br />>REGISTER_PMINTERFACE(kWFPParamSerialImpl, kWFPParamSerialImpl)<br /><br />And in 'WFP.fr', add it to relevant boss (<br /><br />>resource ClassDescriptionTable(kSDKDefClassDescriptionTableResourceID)<br />{{{<br />...<br />AddIn<br />     {<br />          kDocWorkspaceBoss,<br />          kInvalidClass,<br />          {<br />               IID_IWFPPARAMSERIAL, kWFPParamSerialImpl,<br />           }<br />     },<br />...<br />}}};<br /><br />Then when you have a IWorkSpace interface, you can set or get it :<br /><br />>InterfacePtr<IWorkspace> iDocWorkSpace(iDoc->GetDocWorkSpace(), UseDefaultIID());<br />if (!iDocWorkSpace) return;<br />InterfacePtr<IWFPParamSerial> iParamSerial(iDocWorkSpace, UseDefaultIID());<br />if (!iParamSerial) return;<br />PMString strParams;<br />iParamSerial->GetParams(strParams);<br /><br />HTH (and I forgot nothing :-)<br /><br />J.

Similar Messages

  • Verizon is using the Elipsis tablets to steal data from their customers.  The only way to stop data from registering as cellular data is to pull the SIM card.  This occurs with wifi enabled and cellular,dara disabled.  If,you take your tablet to a Verizon

    Verizon is using the Elipsis tablets to steal data from their customers.  The only way to stop data from registering as cellular data is to pull the SIM card.  This occurs with wifi enabled and cellular,dara disabled.  If,you take your tablet to a Verizonstore they will upgrade your data plan to cover the overage and credit the upgrade.  You will then have to remember to downgrade your plan or continue to pay for more data.  Verizon, how would you feel if I walked into one of your stores and started filling my pockets with merchandise?  If cought can I just give the product back and say "oops, sorry"

    Today, my FCC complaint hit the same person working on the BBB complaint.  Jimmie has been very nice and seems willing to work with this problem.  We have been able to come to an agreement.  I paid the purchase price for the phone and he returned my upgrade and unlimited data plan.  This is what would have occurred if Verizon had given me correct information to begin with.  I am happy with this result.  He also brought quite a few instances concerning the handling of my transfer and upgrade that did not follow proper procedure.  I am also confident that I would not have resolved this without complaining to BBB and or FCC.  Verizon had no interest in solving the problem nor did they show any propensity to keeping a 20 year client.  Even though this last CSR was very polite and helpful, his sole job is to respond to formal Federal and State complaints.  He is required by law to address every complaint and report the reporting agency the agreed upon results - good or bad.  Again, I suggest - If you are not getting the proper customer service, complain to someone outside of Verizon.  Jimmie had not received any complaints registered with Verizon directly and I still have not had any contact with any other management representative that I was told would call.

  • My ipod starts voicing song data, artist data, and playlist data while I am listening to music.  Is this a feature or a defect?  I do not know why it occurs, but the only way to stop it is to stop the music then play the playlist again.

    My ipod starts voicing song data, artist data, and playlist data while I am listening to music.  Is this a feature or a defect?  I do not know why it occurs, but the only way to stop it is to stop the music then play the playlist again.

    To make sure voiceover is off, you need to go to summary screen then click the "Configure Universal Access" button. Then you will get a dialog where you can make sure voiceover is off. All of the boxes in the dialog should be unchecked.
    i

  • Is the only way to get your money back for unauthorised purchases to go thru the lengthy email customer support process?

    I want my money back and I want it now. Why doesn't apple have a phone number for urgent account problems? i got an overdrawn fee from my bank, I checked the transactions and found apple iTunes charged me 11 times in one day with the total amount being over $170.00!!!!! The only purchases I made that day were a few $1.29 inapp purchases. How do I get my money back??? And why don't they have a phone number you can contact. This is an urgent problem because not only have they charged me over $170 & Ive got a $30 overdrawn fee there are MORE transactions from apple on my bank account that are "pending". These transactions are of a similar amount & they are not for anything I have purchased! i have been forced to cancel my credit card to stop apple from doing anymore but I want my money back!

    Thanks but unfortunately I don't have that option (I'm im Australia) so this will be day 8 that apple have my money without authorisation. The amount has now increased due to the transactions that were pending prior to me cancelling my credit card. The total is now over $300 including the overdrawn fee. It is beyond comprehension that a company the size of apple doesn't have a *real* customer service dept that handle these types of *real* problems immediately via phone contact but I guess that's the point isn't it? If we want to use the apps they provide thru their services and devices we have no choice but to put up with their primitive third world service. I sent them an email via the link you provided 4 days ago. There is no excuse for me to be STILL waiting for this problem to be resolved - none whatsoever, it is disgusting. Thanks for responding I had a feeling that was the only way to get this resolved, only it is so unbelievable I had to make sure.

  • My ipod is disabled and it says connect to itunes. the only way i found to fix it is to restore it but i dont want to loose all my data. what should i do?

    My iPod is disabled and it says connect to iTunes. The only way i found to fix it is to restore it but i don't want to loose all my data. What should i do?

    You must restore it, losing anything you have failed to backup or store on your computer or cloud service.

  • IOS6 on iphone 4S. My phone keeps disconnecting from my wifi. I have to input the password each time. The only way i can keep wifi connected is to disable cellular data....what's with this????!!!!!

    I downloaded IOS6. The next day my iphone was not connecting to wifi. I reset network connections...put in my password and voila it worked!....But then it dosconnected again..and again...and again....my wifes iphone 4 is not having this problem and she also installed IOS6. The only way I can stay connected to wifi is if i disable my cellular data. What is going on???...Anyone?......

    Is it a BT Yahoo account? If so, there have been quite a few threads about Yahoo constantly rejecting passwords, with no clear fix.
    That said, I did see someone post that they'd resolved the problem by eliminating any capital letters from the password. After that it stopped asking for passwords and started working, apparently. One or two others tried the 'fix' and seemed to have the same success. At least they haven't come back to say it had gone wrong again.

  • HT201270 Is the iphone 4s capable of data tranfers using 4g or is 3g the only option?

    Is the iphone 4s capable of data transfers using 4g or is 3g the only option with this phone?

    The iPhone 4S supports HSPA+, which is defined as "4G" by the ITU. It does NOT support LTE as it lacks the hardware to connect to an LTE network.

  • Custom Data Model Document/Link MDM

    Hi Expert,
    We implement MDM in this year.
    we want create custom data model. Is any SAP document/link for custom data model and load data to custom data model?
    Need your response.
    Thanks and Regards

    Hello,
    To create Data Model, you can refer to MDM Console Guide, to download http://service.sap.com/installmdm71.
    To load data from an SAP System we have IDoc, and ABAP Proxies, for this we require an Middleware tech, SAP PI is recommended as it come with pre-delivered object that can be used.
    If you need more clarity, do post your query
    Regards,
    Abhishek

  • When I sync my iPhone 4S to my computer, where is the baseline data and documents coming from? Is the iPhone's set of apps and data the default set or are the apps and data on the computer (in the backup? in iTunes?) the default set?

    I am having a great deal of trouble with the upgrade to ios 7 on my 4S. The syncing and the software updates always leave generic icon apps that I have downloaded in the past but have deleted from my phone. But they keep reappearing. A restart of the phone fixes the icons but they are loaded not at the last page of the home screen but on completely random pages, screwing up my app and folder layout.
    I want to completely wipe the phone and restore the apps one by one, but I am concerned about whether the data and documents for those apps that I reinstall will be intact. Does the syncing for the apps on the phone retrieve the data from the last backup on the computer? If so, does it only sync the apps on the phone or does it try and reinstall all the apps that there is data for in the backup? In other words, does the resulting set of apps and data reflect the current state of the phone or the saved state of the backup?

    Apple guys are deleting posts. I have found my posts have been deleted. Apple should MUST let us downgrade at least to previous release from current which was working fine.

  • Is "Enter" the only way to let an ABAP OO editable ALV know data's changed?

    In the past two years, I've coded numerous ABAP OO editable ALV's, and once Uwe set me straight about how ti use the canned "handle data changed" methods,. it's been very straightforward.
    But here's my question.
    I have a modal dialog box in a MIGO dialog exit (yes, there is one although it's in a very odd function group - XQSM.)
    In the modal dialog box, I have an editable ALV and an OK pushbutton underneath it.
    If the user enters data into the ALV and then presses OK immediately afterwards (without pressing ENTER first), the ALV doesn't recognize that data has been entered.  So the underlying itab winds up empty.
    What is the right way to handle this?
    Is there a way of forcing the ALV to do its thing from within the PAI that handles the OK pushbutton?
    At my last client, the customers were willing to live with this as a training issue - tell the users to hit ENTER at least once before pressing OK.
    But surely, SAP must have something else in mind here that I'm not yet aware of.
    Thanks for any advice anyone can provide.
    djh

    Hi Vijay -
    Thanks for both answers!
    Regarding your first answer, here's my current code:
    class lcl_event_receiver          definition deferred.
    data:
      o_event_receiver                  type ref to lcl_event_receiver.
    class lcl_event_receiver definition.
    public section.
        methods:
          handle_data_changed
             for event data_changed of cl_gui_alv_grid
                 importing er_data_changed.
    private section.
    endclass.
    And this:
      call method o_grid->register_edit_event
                   exporting
                      i_event_id = cl_gui_alv_grid=>mc_evt_enter.
      create object o_event_receiver.
      set handler o_event_receiver->handle_data_changed for o_grid
    Are you saying that instead of mc_evt_enter, I should use "mc_evt_modified" ????
    Please clarify if you have the time.
    Thanks
    djh

  • What data does SNMP return and what is the best way to explore it?

    Hi All
    I have some queries about using SNMP on Cisco devices.
    1. What is the best way to get an idea of what data MIBs can return?
    I have entered the commmand "show snmp mib". However, the number of MIBs generated is huge!
    2. Can you enter a command on the Cisco device itself that returns snmp data?
    e.g. if I want to see what data a MIB entry returns, can I interrogate it on the Cisco device itself rather than having to rely on network management software?
    The reason I ask is that we are currently looking for Network Management Software. However, I have no idea what data SNMP can return, therefore don't know if what the Management Software offers is comprehensive or not.
    Any suggestions on how best to get an idea the data SNMP can generate plus any other suggestions are very welcome!
    Thanks
    John

    Generally speaking, snmp can query about any parameter of the system. An enterprise class device has almost all conceivable parameters instrumented thus. A device's inventory (chassis, cards, ports, power supplies, software image, etc.) and the state of its interfaces and traffic they are carrying are among the primary ones.
    You can query a device's snmp variables remotely "by hand" using an open source distribution of a tool like snmpwalk. You need to know what you're looking for - i.e., the exact oid (object ID) string or else you get a long reply like you alluded to. It also helps to have the actual MIB you are querying against locally so that the output you get will be human-readable. Otherwise you'll get long numeric strings (the snmp oid) followed by alphanumeric values which may or may not make sense at first glance depending on the oid being queried. A MIB's purpose is to add that abstraction layer / interpretation to make the output more useful to the operator.
    The purpose of an NMS (very generally speaking) is to give an even higher layer of abstraction to organize the querying and reporting of all these various data into a useful system with dashboards, graphs, reports etc.

  • In Finder in Documents i want to show the folders first and individual documents second and it is the other way at the moment. Cant seem to see where i would change this

    In Finder in Documents i want to have the folders show first and the individual documents second. At the moment it is the other way and i can't seem to find how to change it
    [email protected]

    Why do we have to install 2 add ins for something that should be built in? Please add this to the next version or an update to this one even. We should see the full path of a bookmark when we search for it. Show Parent Folder alone isn't enough if you have sub folders, so I installed Go Parent Folder as well in case of sub folders.

  • My computer is broken and I have a new one. I would like to update the software on my ipod touch but im afraid it will sync afterwards and i will loose all my data. Is this the only way?

    I have an ipod touch 4g 64gb currently running 4.2.1. I would like to update it to the latest available software without syncing my ipod with itunes as I am using a new laptop that doesnt have my music, photos, videos etc on its itunes library. And so I do not want to loose all my data on my ipod.

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • Is the only way to import large amount of data and database objects into a primary database is to shutdown the standby, turn off archive log mode, do the import, then rebuild the standby?

    I have a primary database that need to import large amount of data and database objects. 1.) Do I shutdown the standby? 2.) Turn off archive log mode? 3.) Perform the import? 4.) Rebuild the standby? or is there a better way or best practice?

    Instead of rebuilding the (whole) standby, you take an incremental (from SCN) backup from the Primary and restore it on the Standby.  That way, if, for example
    a. Only two out of 12 tablespaces are affected by the import, the incremental backup would effectively be only the blocks changed in those two tablespaces (and some other changes in system and undo) {provided that there are no other changes in the other ten tablespaces}
    b. if the size of the import is only 15% of the database, the incremental backup to restore to the standby is small
    Hemant K Chitale

  • 3GS cell data off is the only way to preserve battery, what is wrong?

    I turned off 3G, push data to once an hour, all location and notification services off, closed all applications, wi-fi off, and the battery drains 1% every 2-3 minutes. Only when I turn cell data off does the drain stop. I'm running the most recent OS as of last week. Any help/suggestions?

    There is something stuck in the send queue. You can try the following; one of these will probably work.
    Turn the phone off (Hold SLEEP until a slider appears). Then reboot - hold HOME and SLEEP until an Apple logo appears.
    Settings/General/Reset - Reset Network Settings
    Settings/General/Reset - Reset All Settings
    Restore the phone with iTunes

Maybe you are looking for