Creating worksets via API

Hi all!
Is it possible to create and change worksets dynamically via API? I have found documentation how to read pcd objects and their properties but not how to edit pcd objects:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401
best regards
Michael

Hi Michael,
(1) To change workset attributes, get the IPcdContext object for the workset, then do something like this:
ModificationItem[] mods = new ModificationItem[1];
mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE,new BasicAttribute("com.sap.portal.navigation.MergePriority", new Double("75")));
myPcdContext.modifyAttributes("",mods);
(2) To create, you could simply bind a new context to the folder you want to place the workset, and set all the attributes (most important, object class and name). This is a little tricky, and there may be side effects I haven;t thought of.
For iView, you would use the IiViews semantic object to create the iView, and this object would take care of almost everything for you. But there is no workset object.
Hope this helps.
Daniel

Similar Messages

  • Create attribute via API

    I want to add atribute to Document programmaticaly but I get an exception:
    IFS - 30820 Unable to add attribute to class
    I have successfuly created new type of Document, now I want to add new attribute. I think that somehow I should set attribute DATATYPE?! how?
    Here is my code:
    ClassObject newco = (ClassObject)session.createSchemaObject(cod);
    newco.setBeanClasspath(co.getBeanClasspath());
    newco.setServerClasspath(co.getServerClasspath());
    newco.setSelectorClasspath(co.getSelectorClasspath());
    newco.setClassAcl(co.getClassAcl());
    newco.setDescription("To je testen tip documenta za Talum");
    AttributeDefinition attd = new AttributeDefinition(session);
    attd.setName("TestAtt");
    attd.setClassObject(newco);
    Attribute newAtt = newco.addAttribute(attd);
    ...in last line program throws an exception.
    Can anyone help me?

    You can determine which attributes are required when creating a new Attribute with the Oracle iFS Server Administration tool. Go to Development Tasks - SchemaObjects - Attribute. When you select Attribute, the tool will display all attributes on this class, as well as whether it is required or not.

  • Re-using Segments Created via API or Re-creating Every Time?

    Hi All,
    Wanted to get your thoughts on this...
    We have been able to create Segments via the API, however, which way to go:
    OPTION 1: Re-use Segment if there are no additions or deletions (changes) to the list? or
    OPTION 2: Re-create the Segment every time via API.
    In Option 1, we will still need to compare the existing list to the new list before deciding to re-use. However, the comparison will be done outside of Eloqua.
    In Option 2, we may create a new list even though there are no changes but we will have the historical data and it will be easier to identify lists.
    In both scenarios, data processing may affect performance.
    For those who have done this or are familiar, what would you recommend?
    Hope it's clear.
    Pinging: TJ Fields-Oracle, 1065474, freejung
    Thanks!!

    In simpler terms of creating assets and storage, creating new segments each time should not be a problem. That said, the asset choosers might end up being slow if you're blowing past 100k which will ultimately result in a poor user experience for the marketers. Please see:
    Eloqua Product Thresholds
    Beyond that, you should also consider:
    - Developers creating a process where segments and campaigns are being created automatically, and the campaigns being left active for a long time with segments are set to run every hour. For static lists, it wouldn't really result in heavy calculating but you can run into delayed contact entry into campaigns if you have hundreds of segments feeding hundreds of campaigns - each with heavy filtering. At best it would be pointless to run segments (on the canvas) hourly if the lists are static, and at worst you're making everything slower. That doesn't sound like a major concern here but something to keep in mind.
    - API tools automatically updating segments which are currently referenced in live campaigns (again, running hourly segments). This means if you re-use assets for new campaigns there is a risk that they're being referenced by a currently live campaign and you end up adding the wrong contacts to the wrong flow. Since segments share a relationship to campaigns as their primary contact feeder, the API tools should only be updating the same segment asset with new contacts if the intent is to add those contacts to an existing campaign.
    - Although keeping shared lists or segments untouched gives you some historical tracking, do not assume the contacts in those assets are exactly the same ones which were used when the campaign was launched. For example, if you delete the bouncebacks and unsubscribes after the campaign has run and go back to your segment, even if it is a simple segment with a local list, it will not contain the deleted contacts. For any serious auditing task, let the API tool archive what contacts were added to what segment. Then you can use Bulk 2.0 activity exports to keep a list of what contacts received what emails from various campaigns.
    Regards,
    Bojan

  • Creating an opportunity linked to a contact via API

    Hi,
    We are trying to create opportunity records against a contact but don't understand how to link the 2 objects via API as my development team can't find a direct link when looking in the WSDL.
    I can see in the UI that the primary contact can be stored against the object, would just like to know how to do this via API.
    Thanks for your help in advance.
    Leslie

    Hello Leslie,
    There are a number of ways to accomplish this. As you mentioned in your post there are often Id fields exposed on a parent object that allow one to associate to a record of a different type, in this case you can send a request for the parent object, in this case Contact and specify the ID of an existing Opportunity record.
    You can also use the child object structure to create an association. For example, if you are entering a new Contact and a new Opportunity you can use the <ListOfOpportunity> within a Contact Insert request to also insert a new Opportunity. I have attached a sample SOAP request below.
    I would recommend your team review the WS User Guide as well as the sample code provided at samplecode.oracle.com for further details. Please see the announcements at the top of the forum for additional links.
    I hope this helps.
    Thanks,
    Sean
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <ContactWS_ContactInsert_Input xmlns="urn:crmondemand/ws/contact/10/2004">
    <ListOfContact>
    <Contact>
    <ContactFirstName>Bruce</ContactFirstName>
    <ContactLastName>Wayne</ContactLastName>
    <ListOfOpportunity>
    <Opportunity>
    <OpportunityName>Capture the Joker!</OpportunityName>
    <CloseDate>04/10/2011</CloseDate>
    <Priority>High</Priority>
    <Status>Pending</Status>
    <SalesStage>Selected</SalesStage>
    </Opportunity>
    </ListOfOpportunity>
    </Contact></ListOfContact></ContactWS_ContactInsert_Input></soap:Body></soap:Envelope>

  • Create shortcut via batch loader or other API

    Does anyone know whether it is possible (and if so, how) to create shortcuts via batch loader?
    If this is not possible, is there an API which could do this?
    I will need to create a lot of shortcuts, so am looking for a way to do this in bulk, i.e. programmatically.
    Thanks,
    -paul

    (Please excuse if there is any mistakes. this is my first post)
    If you are using the FDM's Task manager for the Batch loading, Just have a lookinto that Script whcih you have scheduled for the Batch process. you will find below row in the script.
    Set BATCHENG.PcolFiles = BATCHENG.fFileCollectionCreate(CStr(strDelimiter))
    BATCHENG.mFileCollectionProcess BATCHENG.PcolFiles, CLng(lngProcessLevel), ,CBool(blnAutoMapCorrect)
    Assume you are loading Sigle file from "OpenBatch" folderwhen ever scheduler executes the script. If so replace the above as below.
    Set BATCHENG.PcolFiles = BATCHENG.fFileCollectionCreate(CStr(strDelimiter), File1)
    BATCHENG.mFileCollectionProcess BATCHENG.PcolFiles, CLng(lngProcessLevel), ,CBool(blnAutoMapCorrect)
    Where File1 = Path for the file name to be loaded. So that file will not be moved from the "OpenBatch" folder. then you can append below VB script to the existing script to rename the file name.
    Set FSO1 = CreateObject("Scripting.FileSystemObject")
    Set File1= FSO1.GetFile("<File Path>")
    File1.move ("New path")
    Where "File Path" = FDM Directory\FDM Application\Inbox\Batches\Openbatch\1_LocationA_WLACTUALS_Nov-2009_RR.txt
    "New Path" = FDM Directory\FDM Application\Inbox\Batches\Openbatch\1_LocationB_WLACTUALS_Nov-2009_RR.txt
    and use the Batch processing script Again.
    Set BATCHENG.PcolFiles = BATCHENG.fFileCollectionCreate(CStr(strDelimiter), File2)
    BATCHENG.mFileCollectionProcess BATCHENG.PcolFiles, CLng(lngProcessLevel), ,CBool(blnAutoMapCorrect)
    Here File2 is the path for new file (LocationB.)
    So that, You can get the Single file from the Source system and you can load to two locations at a time with in the Single execution of the script. and Also make sure to write a script to copy the new file from "OpenBatch" folder to backup location like Inbox or as required as this script will not move the file from the "OpenBatch" directory. (Move script as same as mentioned above)
    Reply me if you have any doubts....

  • In which table the initial balances will be stored when loading via api

    Hi all,
    I am doing initial balances migration...
    In which table the initial balances will be stored when loading though an api.. (pay_balance_upload.process).
    First I have loaded data in to pay_balance_batch_headers and pay_balance_batch_lines tables..
    Then called the api pay_balance_upload.process. and the data was reflecting correctly in front end.
    But we need to reconcile the loaded data.. for that, can anyone please tell me in which the loaded balances would be stored..
    I have identified two tables, pay_assignment_latest_balances
    and pay_latest_balances
    when I try to create a balance from frontend I can see the data in pay_latest_balances table..
    But when I load via api I am not able to find it in any of these tables..
    In addition to that can anyone please tell me when the data will be populated in pay_assignment_latest_balances and pay_latest_balances tables.
    Awaiting for your help and quick response..
    Thanks and Regards
    Kishore

    You have followed the correct process..As Vignesh said, you can use pay_balance_pkg.get_value to make sure you have the correct values uploaded but otherwise if you are able to see the values in the front end I wouldn't worry about the latest balances tables. These tables, as the name indicate, hold only the latest values and if a payroll (ran post the initial balance upload) has been rolled back, these are deleted since they are no longer available.
    You can refer the below Metalink notes for a detailed explanation:
    The Secret Life of Initial Balance Upload with Screenshots Example [ID 60057.1]

  • Accessing the password store (PSTORE) via API

    After having created portal users via API srcipt, we now would like to register users
    for an external application programmatically.
    I.e. we have a portal user and we know his account info ( user / passwd ) for the external application. Portal seems to store account infos for external applications in a "Password Store". So i am looking for an API to register portal users for external applications providing the known acount info,
    i.e. sth. like
    PSTORE.InsertExtAccount( PortalUser, ApplicationName, ExtUser, Extpasswd).
    I had a look at http://www-sso.us.oracle.com/
    but could not find API description or any hints when an API like that will go production.
    Can anyone help me with that issue ?
    Thanks a lot.
    null

    This is probably the wrong forum for this question - I would try the 9iAS Portal forum.

  • How to Link an Alternative Payee to a Supplier via API - R12

    Hi,
    I want to know how to link an alternative Payee to a Supplier via API.
    Below is the business scenario which we require,
    Supplier Creation:_
    Vendor Name: Supplier A
    Site1 : SITE 1
    Site2 : SITE 2
    Supplier Relationship Creation:_
    Relationship is set to for 'Supplier A', SITE2 with
    Remit To Supplier Name : Supplier A
    Remit To Supplier Site : SITE 1
    and marked as Primary.
    Invoice Creation:_
    Invoice Num: Tst_Inv_1
    Tst_Inv_2
    Tst_Inv_3
    Tst_Inv_4
    Scenario:_
    Before creating the relationship between SITE1 & SITE2,
    The payment for Invoice 'Tst_Inv_1' created under SITE 1 is made to SITE 1 as expected.
    The payment for Invoice 'Tst_Inv_2' created under SITE 2 is made to SITE 2 as expected.
    After creating the relationship between SITE1 & SITE2,
    The payment for Invoice 'Tst_Inv_3' created under SITE 1 is made to SITE 1 as expected.
    The payment for Invoice 'Tst_Inv_4' created under SITE 2 is made to SITE 1 as expected as the Remit-To Supplier name and Remit-To Supplier Site is set 'Supplier A' and SITE 1.
    Is there anyway to achieve this scenario via API.
    I found one API (IBY_EXT_PAYEE_RELSHIPS_PKG) which will just tell whether any relationship is existing between those two suppliers, But not to create new relationships.
    Regards,
    Mano Pratheep

    Hi,
    Creat the following internal table
    DATA: i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE.
    Pass the values to this internal table as follows
    i_reclist-receiver = '<give ur mail id>'.  "SAPoffice: Name of the recipient of a document (also ext.)
    i_reclist-rec_type = 'U'.                              "Specification of recipient type
    *U = INTERNET ADDRESS,
    *B = SAP USER,
    *P = PRIVATE DISTRIBUTION LIST,
    *O = SAPOFFICE USER,
    *R = SAP user in another SAP System
    *X = X400 ADDRESS
    *C = SHARED DISTRIBUTION LIST
    APPEND i_reclist.
    Pass the internal table to the Tables parameter of 'receivers'
    receivers = i_reclist
    Regards,
    Chandu

  • Bi publisher repository via api

    Hi,
    using BI Publisher 10.1.3.4.0, I have 4 reports that are basically the same but each one is getting data from different database,
    is it possible to create only one report and then dynamically call it and send database connection through url, also is it possible to send username & password for protected reports through url.

    There has been some succes in what I'm trying to accomplish,
    when I create Report in BI Publisher only two files are created (can be found on server) .xdo and .rtf. So I've manually downloaded them and I'm able to extract sql query & params from .xdo file run it throught data processor with desired jdbc connection (which is the most important thing for me) to create .xml file, then I run .rtf through rtf processor to get .xsl, and finally I use fo processor to create report from .xml and .xsl and everything works as expected.
    Now the only thing that I don't know is how to access the files on server through api, there's nothing in documentation regarding this, I don't want to use web services bpel wsdl or anything similar, I just want to be able to download them from my app.
    Ok just to sum up, I need to manage following somehow:
    FileInputStream fiS = new FileInputStream("http://ias.test.hr:7787/xmlpserver/~administrator/TEST/Z/Z.rtf");
    RTFProcessor rtfP = new RTFProcessor(fiS);
    or
    InputStream input = new FileInputStream(new File("http://ias.test.hr:7787/xmlpserver/~administrator/TEST/Z/Z.xdo"));
    I think this is not possible since I should be passing username & password, so just to make sure, is it anyhow possible to get to bi publisher repository via api or not.
    If anyone has any suggestions or advices I would be very thankful,
    thanks in advance,
    Tomislav.

  • How to populate Values in Value Set via API or Interface

    Dear frds:
    i need to know is there any API or interface available to load thousands of values in particular valueset via API or Interface. I know Dataload is the alternative but i don't want to use that as the data is too much so its not feasible.
    waiting for your response
    Thanks.

    There is no API for fnd_flex_values.
    You will have to do a direct table insert (or call FND_FLEX_VALUES_PKG which does nothing but a direct table insert).
    Sandeep Gandhi

  • Updating Requisition No while creating PO via FM-BAPI_PO_CREATE1

    Hi ,
    Our requirement is creating Po via FM BAPI_PO_CREATE1 and we are passing data from other Application through that BAPI. Tracking field of  the Application with SAP is only Requisition No.
    I want to know in  which field of that BAPI I'll make the entry to update Requisition  No. of PO?
    Thanks & Regards,
    Biswajit
    Edited by: Biswajit Das on Jan 11, 2009 8:36 PM

    Hi bisjwat.
    In the tabpi u have table paremeters.
    In that u chave poitem type BAPIMEPOITEM.
    with in the BAPIMEPOITEM u have the field 'PREQ_NO'.
    this is the field for the po requistion number.
    I think it will solve u r problem.
    Thanks

  • Open saved draft report via API/UI

    How could I open an saved Draft report via API/UI.
    I have draft an report via API/UI and now I would show this report on Desktop/SAP

    Sorry for my mismatched formulation of this problem
    I would open it via code
    z.B. application.forms.items("")
    because I get the Docnum of my before safed draft but It wouldn´t shown at the SAP now so I have to open it via code gg
    but also thx to you

  • Package Error when create package via Methods onTables

    Even though I am an APEX developer for 3 years, I just found out about Methods on Tables Utility in SQL Workshop from Dan McGhan's demo. I tried to create a package for about 7 tables in one package. When the package was created, it was invalid. I tried to compile it and it produced several errors. I noticed that the UPDATE table procedure was incomplete as it did not provide parameters even though the procedure uses them.
    I was able to replicate it in APEX.ORACLE.COM.
    WORKSPACE: RGWORK
    PACKAGE: CSRSR_DML
    USER : TESTER
    Password: test123
    Is this a bug? Is there a workaround? Did anyone else experience similar outcome?
    APEX 4.1
    Oracle 10g Rel 2
    Robert
    http://apexjscss.blogspot.com

    sect55 wrote:
    Come on APEX team and gurus, please help....As far as this "guru" is concerned, it's not something I'd ever use:
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:672724700346558185
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:25405782527721
    Given Tom's well-known opposition to this approach, I was more than a little surprised when this appeared in APEX as he also appears to have close links to the APEX team. I'd really rather have seen development effort invested elsewhere.
    I'd definitely advocate building applications based on PL/SQL APIs, just not on table-centric, row-by-row ones...
    I tried to create a package for about 7 tables in one package.Why?
    One of the main purposes of packages is to modularize an application. Sticking methods for all of the entities in one package defeats this and makes development, testing and maintenance harder. If you must use the flawed TAPI concept, create a separate API for each table&mdash;at most only combine those where there exist mandatory dependencies, e.g. an <tt>order</tt> package with methods for <tt>orders</tt> and <tt>order_items</tt>.
    As to the immediate problem, it appears to be due to the lack of primary key definitions on some of your tables. This means the generator is unable to identify which columns to use as unique row identifiers.

  • How to create a via from layer 1 to 3 on a 8 layer PCB?

    I'm working on a design for a 8 layer PCB with Multisim/Ultiboard v10. In Multisim under sheet properties i selected the PCB to contain 8 layers, which makes Ultiboard to create this board with 4 layer pairs and 0 top/bottom build-ups. In the PCB properties of Ultiboard i enabled micro vias and buried/blind vias but i noticed that i'm not able to allow vias between some combinations of layers.
    For example i can enable vias from top to the second layer (1st inner) and from top to the fourth layer (3rd inner), but not from top to the third layer (2nd inner).
    When placing a via, i can select top for the start and the 3rd layer
    for the end, but it will be created as via between top and the 4th
    layer, which will -of course- shorten several traces on the 4th layer.
    So my questions is: Why am i not allowed to create a via, that goes from the top layer to the third layer and how to enable all possible combinations of start and ending layers for the via?
    Thanks for your help
    fhn
    PS: sorry for my bad english :/ 
    Message Edited by fhn on 08-22-2008 04:39 AM

    I am not 100% sure about this, but what I see happening here is that you can only select certain combinations of pairs. Once that selection is made it will gey out other selections as not valid. You might want to carefully look at the options in the via selection and make sure of which layers you want vias to be on. I don't know about enabling all layers in this selection. I would assume this would not be legal from a design rules standpoint, but since most of my boards are either single or double sided I do not have the necessary experience with multi-layers to give a proper answer to that.
    This is the only thing I can advise as when I went through the process I was able tio select the vias for the layers you outlined in your post.
    I hope this helps somewhat as this is all can tell you.
    Kittmaster's Component Database
    http://ni.kittmaster.com
    Have a Nice Day

  • How to Get a Resource Id via API

    Hi,
    Is there any way to get the short id associated with a resource via API??
    I need to get an Id from a resource that it's unique for every one, so I can show an identifier for every document in a custom report...
    Thank you,
    Felipe Vieira

    Hi Valery,
    I mean a Portal Resource..
    Inside portal, when a go to properties  of a specific document, in tab "Access Link" it shows a "Short Id".
    I'd like to know via API how to get this Id, or any other Code that it's unique for every resource or document in portal.
    Thank you!

Maybe you are looking for

  • Mirroring Issue

    A friend of mine cannot get mirroring to work property from her iPad (not sure about her phone).  Airplay works fine, and it will mirror, but it does not show up on the screen for several minutes and when it does the lag is somewhat unbelievable.  I

  • Help - can't open .mpg file with Quicktime 7.3

    Hi folks, Just tried to open a .mpg file of a recent santa visit for my little boys and Quicktime indicated it couldn't open it saying it wasn't a movie. I upgrade to Quicktime pro but that didn't solve the problem. Any thoughts as regards possible s

  • CachedRowSet problem in Weblogic 6.1 and Oracle thin driver 9.0.1

    Has anyone used the CachedRowSet class successfully? (this classes are new and from the JDBC extension pack) I am experiencing "Not in a transaction" errors when executing cachedrowset.populate(resultset), even though I'm inside a correct ut.begin an

  • Cannot Sign Document!! Need help ASAP!

    I have adobe reader 9.  My new job just sent me i-9 employment availablity forms but for some reason I cannot select an option to sign it.  I created a signature appearance and a digital id and when I click the sign button in the top bar all of the o

  • Printing material-documents without flag (parameter NDR)

    Hello everybody, I've got a question regarding printouts of material-documents. Normally the printout is done via condition-technique. Now my customer asks for a printout even if the flag for the printing is NOT set (Parameter NDR) in the document-he