Update an object in the XIR2 repository
One of my customers has a bad practice in place of having multiple copies of a same document in several folders.
I am trying in Java to take the latest version of the document and update all the old copies with it.
At this point, I have an IInfoObject with the source document and an IInfoObjects collection with all the target documents.
What method should I use to update all the targets with the source?
How you copy objects is type specific.
For example, with Crystal Reports you'd use the Enterprise SDK to get the rpt, update the file for the IReport and refresh its properties:
IReport report = (IReport) infoObjects.get(0);
IFiles reportFiles = report.getFiles();
IRemoteFile rptFile = (IRemoteFile) reportFiles.get(0);
rptFile.overwrite(newRptFilePath);
rptFile.commit();
report.refreshProperties();
infoStore.commit(infoObjects);
Sincerely,
Ted Ueda
Similar Messages
-
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 PHi,
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 -
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 -
Updated smart object clips the mask to the shape of the smart object
if i update a smart oject, the mask snaps to the shape of the smart object.
this is super inconvenient if i've masked a shadow or other feathered object, when the mask clips to the the shape, it peaks around the edges of the newly cropped mask. and i have to go back in and refine the mask further, but elegantly removing the hard line edge is a royal pain in the ***.
why does this happen?
this example is in CS5 on OS X. this same thing occurs in CC.
i can't believe this inconvenient flaw is still around. even further, i can't believe there are no other posts regarding this issue.
am i missing a preference that turns this "feature" off?
before update
after updatehttp://feedback.photoshop.com/photoshop_family/topics/changing_canvas_size_for_smart_objec t_with_mask_crops_to_bounding_box
-
Updating css in the CSS repository
Hi,
I have a problem with updating a css which is in the CSS repository. It seems that none of the updates has any effect on the page. Even if I delete the css from the CSS repository it seems to be still there. How can I update a css in the CSS repository??
Thanks, MarenI am experiencing the same situation and dont understand what is happening.
I have my own css which has been working fine.
When I edit the css in HTML with the edit button and press APPLY CHANGES it save it somewhere because when I edit again the change is there but I dont see the change in my application since the classes I changed are still showing with the old values.
If I press the link on the cssname I Download the css and I get the old version.
It seems that html updates css in one place and the css file is in another.
Can someone please give me an idea of what is happening.
Thank you.
Carlos -
View objects referencing the same entity
The behaviour occurs in every version of jdeveloper ADF BC i have tried so far (10g, 11g).
I have 2 updatable view objects referencing the same entity object. When i create a new record using the first view object and before commiting the data to the database i navigate to the second
view object. Suprisingly the second view object is populated with the same data that is posted on the first view object. It seems like both view objects are referencing the same entity object instance.
Is any way to overcome this strange behaviour.
ThanksAs Timo says think of the EO as a record cache. If you had 700 VOs all based on the same EO, it would be ideal to store the same record(s) 700 times in the midtier as it would consume vasts amount of memory. Thus the EO cache.
If you do want to separate the VOs, you've 3 options:
1) Use separate EOs for each VO (not ideal)
2) Expose each VO under their own root level Application Module - a separate EO cache instance for each VO will be created at runtime - however you need to be careful between the VO/EO pairs, you don't update the same record, as you'll get record locks/contention
3) If you're using task flows in 11g, use the Always Begin New Transaction option for each screen/fragment for each VO. This is the equivalent of 2 but from the task flow level - however again you need to be careful on record locks.
CM. -
Error while loading the runtime repository via HTTP
Hi Experts,
I am trying to delete an enhancement and when I enter the component name and the enhancement set in BSP_WD_CMPWB. I get the following error when right click the enhanced view and select delete : Error while loading the runtime repository via HTTP. How do I delete this enhancement?
Regards
Abdullah Ismail.if for some reason the runtime repository is not coherent, you get an error each time you try to read it (and this is the case when you open a component using the transaction BSP_WD_CMPWB)
this is because the XML file is interpreted by a CALL TRANSFORMATION statement, and any incorrect node will raise an uncaught exception
solution:
enhanced view is contained into BSP application you have created the first time you enhanced the component
go to SE80 and enter the BSP application where your objects are stored (the name you provided the first time)
there you can modify directly the objects, including the runtime repository which is stored under node "Pages with flow Logic"
once the correction is done, you can access again your component through transaction BSP_WD_CMPWB (and delete it properly if this is what you want to do) -
Problem in getting the function template object from the repository.
Hi all,
I have created a par file. I have a JCO connection in that. I am facing problems in getting the function template object from the repository. This thing is running successfully when i try to deploy it in Tomcat. But i am facing problems when i try to deploy it in SAP EP 6.0.
Below is statement which is giving error after being deployed to SAP EP6.
This is executing fine when executed in Tomcat Server.
// getting the object of function template
IFunctionTemplate functionTemplate =
aRepository.getFunctionTemplate("YADDNEWUSER");
Note : YADDNEWUSER is the name of the RFC which I am calling from my JAVA Code.
Thanks in advance,
DivijaThis sounds like a bug in the smart upload code. I have used this stuff before, but it's probably an older version, so maybe they broke something. Enumerations aren't usually guaranteed to keep things in any particular order. I would say for now, make a method to take the enumeration and a param name to find the value. And write to the JSPSmart people.
-
Price and Tax info is not update in the Order Repository
Hi All,
I just try to complete a check out flow with all details and submit the order .
But It's not updating few details like Price and Tax information in the Order repository.That's reason my order shows Incomplete status.
Can any help me to complete this flow.?
Regards,
Raj JaiswalHi,
Yes I am extending CreateCreditFormHandler and adding this code getPaymentGroupManager().addPaymentGroupToOrder(order, creditCardPaymentGroup); As you said previously.
This is the code I have written In my template.
User is filling credit card details from the UI.
Please validate the following approach.
<br>FirstName:<dsp:input bean="CreateCreditCardFormHandler.creditCard.billingAddress.firstName" beanvalue="Profile.billingAddress.firstName" size="30" type="text"/>
<br>MiddleName:<dsp:input bean="CreateCreditCardFormHandler.creditCard.billingAddress.middleName" beanvalue="Profile.billingAddress.middleName" size="30" type="text"/>
<br>LastName:<dsp:input bean="CreateCreditCardFormHandler.creditCard.billingAddress.lastName" beanvalue="Profile.billingAddress.lastName" size="30" type="text"/>
<br>EmailAddress:<dsp:input bean="CreateCreditCardFormHandler.creditCard.billingAddress.email" beanvalue="Profile.email" size="30" type="text"/>
<br>PhoneNumber:<dsp:input bean="CreateCreditCardFormHandler.creditCard.billingAddress.phoneNumber" beanvalue="Profile.billingAddress.phoneNumber" size="30" type="text"/>
<br>Address:<dsp:input bean="CreateCreditCardFormHandler.creditCard.billingAddress.address1" beanvalue="Profile.billingAddress.address1" size="30" type="text"/>
<br>Address (line 2):<dsp:input bean="CreateCreditCardFormHandler.creditCard.billingAddress.address2" beanvalue="Profile.billingAddress.address2" size="30" type="text"/>
<dsp:input bean="CreateCreditCardFormHandler.newCreditCardSuccessURL" type="hidden" value="co_confirm.jsp"/>
<dsp:input bean="CreateCreditCardFormHandler.newCreditCardErrorURL" type="hidden" value="co_confirm.jsp"/>
<dsp:input bean="CreateCreditCardFormHandler.newCreditCard" type="hidden" value="Enter Credit Card"/>
<dsp:input bean="AuctionPaymentGroup.order1" type="hidden" beanvalue="ShoppingCart.current.Id"/>
<dsp:input bean="AuctionPaymentGroup.AddPaymentDetailsToOrder" type="submit" value=" Continue -->"/>
<dsp:input bean="AuctionPaymentGroup.paymentGroupSuccessURL" type="hidden" value="co_confirm.jsp"/>
<dsp:input bean="AuctionPaymentGroup.paymentGroupErrorURL" type="hidden" value="error.jsp"/>
I have customized CreateCreditCardFormHandler and added below code.
public boolean handleAddPaymentDetailsToOrder(DynamoHttpServletRequest pRequest,DynamoHttpServletResponse pResponse) throws ServletException,
IOException {
String pOrder=getOrder1();
try{
OrderManager orderManager=(OrderManager)pRequest.resolveName("/atg/commerce/order/OrderManager");
Order order = orderManager.loadOrder(pOrder);
System.out.println("orderManager----"+order.getId());
PaymentGroupManager paymentGroupManager=(PaymentGroupManager)pRequest.resolveName("/atg/commerce/order/PaymentGroupManager");
System.out.println("paymentGroupManager----"+paymentGroupManager.getAbsoluteName());
//Create the PaymentGroup
PaymentGroup paymentGroup = paymentGroupManager.createPaymentGroup();
//Add the PaymentGroup to the Order
paymentGroupManager.addPaymentGroupToOrder(order, paymentGroup);
}catch(Exception ex)
ex.printStackTrace();
return true;
In the next templates I just want to display billing details which added by the user .
regards,
Raj jaiswal -
I was having trouble migrating the Master and Work repositories from my QA to my Prod environment. I was getting an error message that the internal id's were alike so I changed the internal id in my Prod Master repository. Then I tried to migrate the Work repository and was getting a similar error. I did a search on the internet for the error message and it recommended that I renumber the Work repository so I did. My concern now is how these changes affect the objects that are already in the repositories? Will those objects continue to run? Also do these changes take affect immediately or do you need to cycle the ODI agent?
Well I cannot completely assure you but so far I have not faced any issues after a renumber. It will affect the exist object only when you have imported the object in synonym_update mode. I believe you have the daily backup of your production repository.
Bhabani
http://dwteam.in -
Create new objects on the repository
Hi
I would like to know how to create or modify objects in the repository and whether by doing that they would be created or modified in the database or I have to do it on the database first.
thanksHi,
then you need to look into the code you are doing. thats a custom application which we have no knowledge about.
ingo -
Updating Connection object HOUSE_NUM1 in the system
Hi,
I need to update Connection object HOUSE_NUM1 IN THE SYSTEM.
Can you suggest me a function modjule fkor the same.
The standard function module ISU_S_CONNOBJ_CHANGE says coding for no dialog will be included if required.
Regards,
JyothsnaHi Jyothsna
I was a little bit surprised as well to see this comment instead of the necessary code for background processing.
However, it is not overly difficult to create your own function to do so (if you don't want to change the classification).
First have a good look through ISU_S_CONNOBJ_CREATE and create the new function with following calls:
ISU_O_CONNOBJ_OPEN
Here you have to populate the structures ADRC_STRUC and EHAU
ADDR_ACCEPT_REG_DATA_ERROR (optional)
ISU_CONNOBJ_CHECK
ISU_O_CONNOBJ_PREPARE_CLOSE
ISU_O_CONNOBJ_ACTION
ISU_O_CONNOBJ_CLOSE
If you only want to change address information you could use functions from the central address management, of course.
Yep
Jürgen -
How to update the MDS Repository with new structure over the older one
Hi,
I am working on the Oracle SOA MDS repository and I want to update the mds repository with new folder structure over the older one but I am not able to do this . I am able to update the mds in local system but not able to do this for remote server.
Please help me
SOA 11g : 11.1.1.5Welcome to the Apple discussions.
These discussions are user-to-user. Apple generally doesn't monitor the discussions.
My Turkish language skills are non-existant, however, you can use this to find an Apple store close to you: http://www.apple.com/uk/buy/locator/ (you choose your country in the locator) . It may be as easy as returning it to a local store. In some countries you have a short time period to return anything bought from Apple (for example, 14 days in the US). If that doesn't work, you want to contact Apple customer service. Unfortunately, this is where I was unable to maneuver through the Turkish Apple site, due to not knowing the Turkish language. -
How to update PL/SQL block/Specs in Repository without cut/paste ?
(cross-posted in METALINK form also)
Hello,
Question: How to quickly update PL/SQL block/specs in a package
Repository Object Browser? (without cut/paste)
Tools: Designer 9i, ROB 9.0.2.6
Detailed description of a problem:
-- there is no good pl/sql IDE working with ROB
(JDeveloper can not work with NOT PRIVATE repository workspace)
-- I use Toad and develop/generate pl/sql object
directly in database.
-- I have to synchronize my work with repository as often
as possible the following way (we do not use read-server model
because afraid of getting 1000s of atomik func and proc):
---- navigate to the pl/sql package
---- select properties
---- click on pl/sql block - get old code in editor
---- copy all new code from Toad into editor
---- remove CREATE OR REPLACE and last line
---- save
---- do the same with specifications
I am looking for some way to do this with some script or
one-button click...
For example, for text files it is possible to use command line
Repository Tool. But I did not found the possibility to make
a script like this:
checkout
update workarea/container/plsql_definition/package_name/body....
.....with new_package_body.txt
checkin
Thanks in advance for any help/advice,
Alex V.Hi Alex,
I just had an "Ah! I see!" moment. I now understand why you're having trouble and I can explain things so you can move on... I hope!
First it's important to understand that Oracle SCM is designed to support versioning of both files and Oracle Designer objects. Designer objects are stored as rows in specially structured tables that support that specific product. When you look at PL/SQL definitions in the RON you're looking at Designer definitions - not files. As I mentioned before, these are not the definitions of 'real' PL/SQL objects in the data dictionary, but definitions used by Designer (from which the real things can be generated - but that's another story).
If you're using TOAD you should probably avoid accessing the Designer objects. You need to work with files.
Here's a suggestion for a sequence of operations:
- In the RON check out & download the file (e.g. mypkg.plb)
- In TOAD load the package (from DB, or downloaded file), edit, update package in DB
- In TOAD save as mypkg.plb (overwriting the downloaded copy)
- IN RON upload mypkg.plb and check in
If you've not stored the file in Oracle SCM yet, jsut omit the first step.
You could even automate this to an extent using SQL to query the data dictionary views (e.g. USER_SOURCE) after making changes to get the code and edit/overwrite the file contents that way.
Does this help at all?
Keith. -
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
Maybe you are looking for
-
Upgrade RAC from 9.2.0.6 to 9.2.0.8
Hello All, I need to upgrade our oracle RAC from 9.2.0.6 to 9.2.0.8. is there any document could help me on that? platform is windows server 2003 Best Regards,
-
I forgot my security question answer and i need it to download an album
It ask me to put the answer cause is the first time I buy something in the app store with this iphone, but the problem is that i dont know what the answer is..
-
Basic Shapes - there were more in Cap 6 - where did they go?
Hi, I recently upgraded from Captivate 6 to Captivate 8. In Captivate 6 there were a lot of choices for smart shapes (the star shaped icon) including basic shapes, arrows, buttons, banners, Math. My favorite shape was square box with an arrow to th
-
Honestly, do you even use iPhoto?
I am used to just having all my pictures in their old folder and subfolders somewhere in My Documents or something on Windows OS, and that's what I've been doing on my Mac as well but obviously since I have this program I'm wondering if I should be u
-
I have a macbook pro 7.1 need to install icloud it doesnt have it?
i have a macbook pro 7.1 need to install icloud it doesnt have it?