Update existing object with parsers

Hi,
I'seen on the Developer guide of IFS that :
"Parsers cannot be used to update existing objects" (page 76 of the pdf file)
I've also seen on the same document that :
"The aplication can use postOperation() to access the repository object that was created or updated by the parser" (page 91 of the pdf file)
I'm sorry, I don't understand if updating objects in the repository is possible or not with parsers.
does anyone know ?

Hi,
You have to remember that you are writing SQL building blocks, not code...
Also when you use @select(), yes that will only pull the contents of the Select box of that object.
To get the contents of the Where box, you need @Where().
These are separate because typically you are either building a select part (normal objects) OR a where part (filters).
So think out of the box and decide how you would write it in a sql statement if you did not have a universe,
then break it in pieces that make sense.
I'm not 100% sure of what it is you are trying to achieve, but you can do something like:
case @where(object2) when TRUE then @select(object2) end
Off course writing this in one go is just as valid, you don't have to reuse, only with big chunks or @prompt() stuff it makes sense to prevent typo's
Hope this helps,
Marianne

Similar Messages

  • Update J2ME Apps (Updating Existing jar with latest updates)

    Hi ,
    I am new to J2ME. I had created a jar(One J2ME App). I need to update the existing jar with some of my newly added & edited class file. I can do this for desktop apps "jar uf jar-file input-file(s)", there is an option to put all the updates in a batch file (.bat) and update the existing jar. I need same functionality need to be achieved in Mobile Apps (J2ME Jar). (Simply like, if i click a file(jar, exe, or etc) all the updates should go to the existing jar file). Kindly help me to find a way to solve this issue.

    Thanks for reply,
    So, if my jad application is installed in mobile, i don't want to reinstall it again, need update this installed jad itself, is it possible with this ?. Actually something like how Service Packs given by the windows(SP1, SP2..), Like that in Mobile i need to upgrade my jad application by giving my patch to it(additionally added classes).

  • How to display a continuously updating mesh object with the Labview 3D Picture Object

    I have a continously updating stream of 3D images that can be represented in a mesh (a 3D movie if you will). I want to display this in the 3D Picture object so that everytime I acquire a new 3D image it is displayed. Examples are scarce and I couldn't find anything that dealt with this specific issue.
    Currently (within a FOR/WHILE loop) for each iteration I create a scene object, set the geometry as a newly created mesh object, set the texture and eventually wire it to the 3D Picture. This implementation seems to leak memory (the taskmanager shows the used memory continously increasing and eventually processing speed will drop). I assume it's because I recreate the object for each iteration. Trouble is, I can't find anything that would let me release/delete the object once I'm done with the frame. All examples that I found only deal with creating the 3D object once and manipulating it.
    What's the appropriate way to code this? 
    Solved!
    Go to Solution.

    You just need to use the 'Close Reference" VI on the 3D Picture Reference as this code below. It runs inside the loop.
    Now, if you are dealing with mesh, then you should use the Set Mesh Parameters to change the points inside the loop and then, just closed the reference after the code is done. Look at this code below. The trick is to get the reference back from object using Typecast ( To More Specific Reference VI).
    Also, look at the shipping examples in:
    C:\nivs_dev\2013\InstallTo\ProgramFiles\National Instruments\LabVIEW\examples\picture\3D Picture Control
    and specially the Using Meshes.vi.
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • Updating Toplink objects with JSF

    I want to edit and update a client object obtained from TopLink so I do the following to obtain a UnitofWork:
    binding = Util.getValueBinding("#{ClientApp}");
    ClientApp clientApp = (ClientApp)binding.getValue(fcontext);
    uow = clientApp.getSession().acquireUnitOfWork();
    clientClone = (Client) uow.registerExistingObject(clientApp.getSelectedClient());
    In my JSF edit screen I have input fields with value bindings to clientClone like this:
    <af:inputText value="#{ClientDetailPage.clientClone.name}"/>
    At the bottom I have a save button with an action method like this:
    public String save()
    Integer i = clientClone.getRegistrationNumber();
    uow.commitAndResume();
    return "null";
    By placing a break point on the first line of the above function I can see that the changes I made in the name input field have not yet been applied to the name field in clientClone. What do I need to do to have the commit invoked after the changes have been applied (or force the changes to be applied before I invoke the commit)?
    I can't find any examples beyond the simple populating of a JSF screen from TopLink data (which I have working) and all of the TopLink documentation refers to explicitly calling the set methods of the clone which seems redundant.

    I received some example code from JJ and eventually tracked down my problem. It is a little embarrassing but I was storing my UOW in the page backing bean which was in request scope. Once I moved the UOW out to a session scope application bean everything worked as I expected.
    I am interested in discussing your "without any coding" comment and will contact you directly after you get back from the conference (I am working on a project for Industry Canada in Ottawa).

  • Updating JournalEntries object with more than one currency fails

    I'm using SBO 6.50 (exactly CEE version 7.60.014 SP:01 EF:08).
       I'm trying to update memo field of existing journal entries. Most of them works OK, but if I try to update entry with more than one currency, update fails with an error code -5002 and message:
       Transaction includes more than one currency [OCRN].
    Code (in C++) is quite simple:
    SAPbobsCOM::ICompanyPtr m_company = SAPbobsCOM::ICompanyPtr("SAPbobsCOM.Company");
    SAPbobsCOM::IJournalEntriesPtr pEntry = m_company->GetBusinessObject(SAPbobsCOM::oJournalEntries);
    long m_nId = 1;     // TransId field, any valid value
    try
         if (pEntry->GetByKey(m_nId) != -1)
              return;
         pEntry->Memo = _bstr_t("Memo");;
         if (pEntry->Update() < S_OK)
              throw(0);
    catch(...)
         long lError; BSTR bstrError;
         m_company->GetLastError(&lError, &bstrError);
    What's wrong? Using multiple currencies in journal entry is correct, it is possible to add them manually so it should be possible to update such an "safe" field as Memo is.

    Hi,
    I have the same problem, but if you go to Administration->System Initialization ->Document Settings, select "Per Document", and in Document, choose "Journal Entry", by default, the options are clicked, or "Blocked", this is why in DI yoy get this message.
    Try to unchecked and it will work.
    HTH,
    Ribeiro Santos

  • Updating existing PO with new line item

    Hi
    We are in ECS scenarion. I want to add a new line item to the already existing Po which was transferred to the R/3 system successfylly. I have user pd_po_update and pd_po_save . In pd_po_update I am getting changes = "X"  but in es_guid it seems i am getting the old guid . after executing the program when I go back a message popsup saying "update was terminated".
    Please let me know what should  i do in order to add a new line item to the PO.
    thanks
    sankar

    Hi Sankar,
    You must add a COMMIT WORK after having passed the BBP_PD_PO_SAVE.
    Regards,
    Laurent.
    Don't forget points if helpfull.

  • How can I update existing website with Iweb after hard disc crash?

    I created my website on iweb and published it (but not at mobile me). Unfortunately my hard disc crashed, before I saved my webpage. Now I bought a new web and want to update my published website. How do I open it in my new Iweb 9 to update it?
    Thanks for your help,
    orisu

    Your iWeb data is stored, not in your actual published html files, but in a file called Domain.sites which is stored in your Home/Library/Application Support/iWeb folder. If you want to work on your site on another computer, copy this file to a thumb drive to move it around.

  • Entity Framework : A short way to copy one object with it's child to a new object ?

    Hello !
    I'm using entity framework 6.
    Sometimes I need to copy an existing object with all its childs to a new object and to save to database.
    I'm using a standart way by creating a new object , copy one by one it's properties from existing object ( except the ID ) , after I create new object for every child and copy one by one each properties except the ID and Parent id......
    But of course this is a hard way to do especially when the object have a lot's of properties.
    I want to know is there any short way  ( built in) to do this ?
    Thank you !

    Actually , I'm using this extension :
    Imports System.ComponentModel
    Imports System.Collections
    Imports System.Data.Entity.Core.Objects.DataClasses
    Imports System.Runtime.Serialization
    Imports System.IO
    Imports System.Reflection
    Module Extensions
    <System.Runtime.CompilerServices.Extension> _
    Public Function Clone(Of T As EntityObject)(source As T) As T
    Dim ser = New DataContractSerializer(GetType(T))
    Using stream = New MemoryStream()
    ser.WriteObject(stream, source)
    stream.Seek(0, SeekOrigin.Begin)
    Return CType(ser.ReadObject(stream), T)
    End Using
    End Function
    <System.Runtime.CompilerServices.Extension> _
    Public Function ClearEntityReference(source As EntityObject, bCheckHierarchy As Boolean) As EntityObject
    Return source.ClearEntityObject(bCheckHierarchy)
    End Function
    <System.Runtime.CompilerServices.Extension> _
    Private Function ClearEntityObject(Of T As Class)(source As T, bCheckHierarchy As Boolean) As T
    If source Is Nothing Then
    Throw New Exception("Null Object cannot be cloned")
    End If
    Dim tObj As Type = source.[GetType]()
    If tObj.GetProperty("EntityKey") IsNot Nothing Then
    tObj.GetProperty("EntityKey").SetValue(source, Nothing, Nothing)
    End If
    If Not bCheckHierarchy Then
    Return CType(source, T)
    End If
    Dim PropertyList As List(Of PropertyInfo) = (From a In source.[GetType]().GetProperties() Where a.PropertyType.Name.Equals("ENTITYCOLLECTION`1", StringComparison.OrdinalIgnoreCase) Select a).ToList()
    For Each prop As PropertyInfo In PropertyList
    Dim keys As IEnumerable = CType(tObj.GetProperty(prop.Name).GetValue(source, Nothing), IEnumerable)
    For Each key As Object In keys
    Dim childProp = (From a In key.[GetType]().GetProperties() Where a.PropertyType.Name.Equals("EntityReference`1", StringComparison.OrdinalIgnoreCase) Select a).SingleOrDefault()
    childProp.GetValue(key, Nothing).ClearEntityObject(False)
    key.ClearEntityObject(True)
    Next
    Next
    Return CType(source, T)
    End Function
    End Module
    But the problem is that when I try to use like this :
    Dim litm, newitm as MyObject
    For Each litm In itemlist
    newitm = litm.Clone()
    newitm.ClearEntityReference(True)
    context.MyObjects.Add(newitm)
    Next
    context.SaveChanges()
    I get an error :
    Public member 'Clone' on type 'MyObject' not found.

  • Unable to update this object because the following attributes associated with this object have values that may already be associated with another object in your local directory services

    Getting this error from DirSync
    Unable to update this object because the following attributes associated with this object have values that may already be associated with another object in your local directory services: [UserPrincipalName
    [email protected];].  Correct or remove the duplicate values in your local directory.  Please refer to
    http://support.microsoft.com/kb/2647098 for more information on identifying objects with duplicate attribute values.
    Quick eyeball and couldn't see the cause in the user account so used the script here:
    http://gallery.technet.microsoft.com/office/Fix-Duplicate-User-d92215ef
    And got these outputs:
    PS C:\Windows\System32\WindowsPowerShell\v1.0> Export-OSCADUserPrincipalName -UserPrincipalName "[email protected]" -Path .\outputs.csv
    WARNING: Cannot find objects with specified duplicate user principal name
    [email protected]
    Found 0 user(s) with duplicate user principal name.
    Where to from here?
    Richard P

    Hi,
    Did you talk about the Microsoft Azure Active Directory Sync tool ?
    If yes, this issue occurs if one or more of the following conditions are true:
    An object in the on-premises Active Directory has an SMTP address that's the same as the SMTP address of the object that's reporting the problem.
    An object in the on-premises Active Directory has a mail attribute that's identical to the object that's reporting the problem.
    An object already exists in your organizational account and has the same SMTP address or mail attribute as the object in the on-premises Active Directory
    More detail information, please refer to:
    http://support.microsoft.com/kb/2520976/en-us
    [Troubleshooting] Unable to update this object because the following attributes associated with this object
    http://blogs.technet.com/b/aadsyncsupport/archive/2014/05/20/troubleshooting-unable-to-update-this-object-because-the-following-attributes-associated-with-this-object.aspx
    Regards.
    Vivian Wang

  • Recordset - updating 2 tables with 1 recordset using application object update record

    I have a recordset that uses a field from 2 different tables
    with a select statement where clause that joins a userid. I can
    display the field’s data just fine. Now I want to use the
    Application object “update record” so I can modify
    either of the fields. The problem is the Application object
    “update record” only allows you to update one table.
    How does Dreamweaver mx 2004 allow me to update 2 tables with one
    recordset and 1 submit button? Currently using php.
    Example of where:
    Where member.userid = member_detail.userid
    I tried creating the one form with the field from the first
    table and that works just fine. I added the other field from the
    other table into the form but ofcourse there isn’t any code
    that will update the second table so it won’t work.
    My application requires me to update alot of fields between 2
    tables at the same time.
    Does anyone know a way using Dreamweaver mx 2004 to do this?
    I don’t have much php experience.

    jon-rookie wrote:
    > DreamerJim,
    >
    > I am sorry but I don't think you are correct. I just
    can't believe that with
    > all the powers to be at Macromedia and now Adobe can't
    figure out how to update
    > two tables at once. There are millions of db's out there
    that require this. I
    > spent several hours today perusing lots of posts on the
    internet. It seems I
    > am not the only one out there that has asked this
    question. Unfortunately
    > there are no good answers yet to my surprise.
    >
    > I did find a Dreamweaver extension that does exactly
    what I myself and many
    > others want. The problem is it is no longer available
    unless you purchase a
    > bundle of software from Adobe.
    >
    > I have not looked into it in detail so I am not 100%
    sure that is accurate!
    >
    > Still, alot of php programmers do this all the time
    without much trouble. I
    > just want to know if Dreamweaver mx 2004 has the
    capability if a person knows
    > the right steps.
    >
    > Hopefully a Dreamweaver expert will post something to
    let us know for sure.
    > Until then I am stuck.
    >
    Not even CS3 has this built in, you will either have to code
    it yourself
    or buy the extension you have found. Dreamweaver gives you
    basic
    features to help you develop applications, but if you want to
    do
    anything really clever you have to do it yourself.
    One thing to consider is maybe creating an SQL view that is
    can be
    updated. I am pretty sure it exists, then you use the view
    instead of
    the table in the update behaviour. I have never done it
    myself, but I am
    sure it can be done.
    Steve

  • I want to update iCloud account with new apple id but don't know password for old apple id.  Plus can no longer receive email at old apple id.  How can I delete the current iCloud account on my iPhone if the previously stated conditions exist?

    I want to update iCloud account with new apple id but don't know password for old apple id.  Plus can no longer receive email at old apple id.  How can I delete the current iCloud account on my iPhone if the previously stated conditions exist?

    If the old ID is yours, and if it is an earlier version of your current ID, go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • I have an iPhone 3gs and will be getting a new iPhone 4s. Once I have updated my existing 3gs with iCloud and backed up to my computer, will I be able to transfer my existing data to my new 4s using iCloud or will I need to do this from my iMac.

    I have an iPhone 3gs and will be getting a new iPhone 4s. Once I have updated my existing 3gs with iCloud and backed up to my computer, will I be able to transfer my existing data to my new 4s using iCloud or will I need to do this from my iMac.
    Thanks

    The Apple genius at the Apple store told me this would work. It failed. Basically, updating your iPhone 3GS to iOS5 wipes your 3GS of its data so you can't really do this. Some data worked. Music, photos etc didn't work at all.
    I suggest avoiding iCloud completely for a few weeks until Apple gets it working.

  • BI Platform: Parameter object with the name "URL_PARAM"... does not exist

    Hi,
    I'm facing this issue with only one dashboard in BI4 Platform. When trying to view it through the BI Launch Pad, I get the following error:
    "Parameter object with the name "URL_PARAM" and the index "0" still does not exist in the parameter 1[...]".
    I've seen this thread where a similar thing was reported with NetWeaver platform.
    My client as well as server versions are Release 1.4 SP0 Patch2 (14.0.5).
    Also, although some of the pictures referenced in the dashboard are not in the Public Folders on BI4. Could it be that it's not able to reference the images and hence not be displaying the whole dashboard?
    Please let me know if anyone has a solution to this.
    Thanks!
    - Sakshi Dhakad

    Hi,
    So here are the versions we currently have:
    SAP BO Design Studio (64 bit) - 14.1.0
    SAP BO Design Studio 1.4 for BI Platform - 14.1.0.349
    And on checking on Central Management Console, I get this:
    SAP BO BI Platform 4.1 Support Pack 5 Patch 2
    Version: 14.1.5.1568
    Also, I'm not sure if I installed an add-on or the patch. Based on these versions, could you tell me how to fix the issue ?
    Thanks!

  • Change view angle of 3D grid with existing objects

    Hello,
    I am new to the perspective grid in Adobe Illustrator and would really appreciate some help. I have created a simple room interior with a 2 point perspective and a view angle of 45 degree. I would now like to display the same room with a view angle of 60 degree. Is it possible to change the view angle of the 3D with existing objects in it or do I have to re-create the room with a different view angle each time? I can change the numbers in the define perspective setting and the grid changes but the room doesn't seem to change with it. 
    Thanks, Conny

    the perspective grid is just a load of fancy guidelines. it can't affect what you draw after the fact any more than a similar grid drawn on paper could.
    Wrong. The Perspective Grid is essentially an envelope distortion, and it is live. Otherwise, objects wouldn't automatically reshape as you move them on the plane to which they are attached.
    Is it possible to change the view angle of the 3D with existing objects in it or do I have to re-create the room with a different view angle each time?
    Even in pre-CC versions, pressing Shift while moving a perspective plane handle moves the attached objects also. Pressing Alt duplicates the objects as they move with the plane.
    By the way, though, it's not "3D". Couching your question in the terms of 3D will suggest to some you're talking about 3D Effect.
    JET

  • Changing view angle of 3D grid with existing objects

    Hello,
    I am new to the perspective grid and would really appreciate some help. I have created a simple room interior with a 2 point perspective and a view angle of 45 degree. I would now like to display the same room with a view angle of 60 degree. Is it possible to change the view angle of the 3D with existing objects in it or do I have to re-create the room with a different view angle each time? I can change the numbers in the define perspective setting and the grid changes but the room doesn't seem to change with it.  
    Thanks, Conny

    NO. You fundamentally misunderstand. It's a drawing aid like any other guide, not a real 3D space. You need to draw from scratch.
    Mylenium

Maybe you are looking for