Etext templates using the API

HI All, I'm trying to create a Etext template using the API.
EFTProcessor processor = new EFTProcessor();
String template = TemplateLocator.getTemplateFullName(mergReq.getTemplateType(), mergReq.getTemplateName());
processor.setData(input);
processor.setTemplate(template);
processor.setOutput("c:\\test.txt");
processor.process();
This output looks like it creates the xsl and not the text file. Am I missing a step?
Any help would be greatly appreciated...
Thanks,
Matt
BI standalone 10.1.3.4

Hi,
IINM, user hooks are available in other modules (like Sales & Marketing, Asset Management, ..etc). If you are looking for certain module, and you cannot find the proper APIs, please log a SR.
Thanks,
Hussein

Similar Messages

  • While creating Projects Using the API, get two errors: 'Customer name must be passed' and 'class category is invalid'

    Hi
    While trying to Create Projects using the API, I'm getting two types of errors -
    The first is : 'API failed in one stage 1 Customer Name is a mandatory Quick Entry field. Value must be passed'
    The second is : '
    'API failed in one stage 1 Project: '<Project_Number>'
    The class category is invalid.'
    Both the messages are produced by our custom program. .. however I am not able to understand why the underlying errors occur.
    The first error ( Customer Name is a mandatory quick entry field), is caused by Projects that are to be created from Project templates where it is configured with Quick Entry Customer Name required. We are passing Customer Site number ( Party Bill to site number and Party Ship to side number). The site numbers being passed are also set as 'Primary'. Yet they are failing.
    For the second Error ( The Class Category is invalid), I rechecked multiple times, the Class categories for the Projects I am trying to create, with the Config in R12 and they are fine. Can't understand the reason for these two issues. Has anyone encountered such an issue ? If so how was it resolved?
    Regards
    Vivek

    HI All
    I resolved both the issues. In case there are others facing similar issues, following was the cause and resolution of my errors
    1. Error 1: Customer Name is a Mandatory Quick Entry field. Value must be passed.
    The cause was that the data loaded into our custom staging table was not in the right fields. This was because the data file values and the CTL were not in sync.
    Resolution:
    Corrected the data file to be in Sync with the structure defined in the CTL and  this loaded it successfully
    2. Error 2: The class category is invalid.
    The cause of this error was that  in the  Projects Template (used to create the project from), the Quick Entry setup had a Class Category set as required and I was not passing a value ( a class code value) for that Class Category.
    Hope this helps somebody else
    Cheers
    Turnbill

  • Preview of Fixed Position Based eText template displays the formatting

    Hi,
    I am trying to create an EFT template using the eText Fixed Position Based instructions. I copied an existing Fixed Position Based template and made the changes that were needed. When I hit the Preview link, it displays the payments in the formatted template, not in the output that I'm trying to create by using the template.
    Can anyone tell me what step I'm missing? I have created other types of templates and they preview fine.
    Thanks

    There is no difference between DELIMITER_BASED and FIXED_POSITION_BASED
    you can pick up the fixed and convert it into delimiter based,
    allowed columns are MaximumLength,Format,Data,Tag,Comments. delete the rest of the columns.
    And for DELIMITER_BASED templates,After every data field row,you have to insert a delimiter row and put appropriate field delimiters in separate rows between the fields.

  • Creating a mapping using the API

    Hi Brian, I am curious about this use case - what's the reason you are looking to do it using the API? You can create several objects using the API and the most typical use case we have observed is where mapping developers create a pattern or what we call as a "template" - which is a mapping with various properties parameterized. For example you can create a mapping with the filter parameterized, or define a very generic mapping with source, target and the field map between those all parameterized. Once you do that, you can create a "task" for this mapping (known as Mapping Configuration Task) - that can be done using our UI or using our REST API. If you choose the latter, you can pass on parameter values as part of the API request. Suggest you to take a look at our new Developer Portal, and specifically at the sections Templates and REST API there. Feel free to post any further questions here. If you sign up to the developer program there, you will get much more direct help.https://community.informatica.com/community/technology_partner_network Amol

    I was wondering about creating a mapping using the API. It clearly states in the Dev guide that this is possible, but when I perform a get mapping request, I don't see all the information given for a certain object.  For example, I don't see an expression in the mapping object (although one exists when I view the object in Cloud).   Has anyone else done this? Is it easy to create objects via the API?  Thanks!

  • How Do I Use the API to Abbreviate?

    How do I use the ACE API to limit the output field length and properly abbreviate the output field?
    Using the pwace command-line application, I get abbreviated output that looks like this for a 30 byte field:
    nnnnn GEORGE WASHNGTN MMRL HWY
    However, when using the API, I end up with a truncated field:
    nnnnn GEORGE WASHINGTON MEMORI
    This is from the PRIM_ADDR field.
    How do I use the API to get the same field value as the command-line application?
    Thanks,
    Rob
    Edited by: rriggs on Jun 30, 2010 11:36 PM

    Rob,
    The jobfile product has intelligent truncation built into the product.  However, with the API this would be up for the user to code around. 
    Thanks,
    Brandon

  • How can i add custom attributes to a new Class Object using the API ?

    Hello everyone,
    Here is my problem. I just created a subclass of Document using the API (not XML), by creating a ClassObjectDefinition and a ClassObject. Here is the code :
    // doc is an instance of Document
    ClassObject co = doc.getClassObject();
    ClassObjectDefinition cod = new ClassObjectDefinition(ifsSession);
    cod.setSuperclass(co);
    cod.setSuperclassName(co.getName());
    cod.setName("MYDocument");
    ClassObject c = (ClassObject)ifsSession.createSchemaObject(cod);
    Everything seems to be OK since i can see the new class when i use ifsmgr. But my question is : how can i add custom attributes to this new class ? Here is what i tried :
    AttributeDefinition value = new AttributeDefinition(ifsSession);
    value.setAttribute("FOO", AttributeValue.newAttributeValue("bar"));
    c.addAttribute(value);
    But i got the following error message :
    oracle.ifs.common.IfsException: IFS-30002: Unable to create new LibraryObject
    java.sql.SQLException: ORA-01400: impossible d'insirer NULL dans ("IFSSYS"."ODM_ATTRIBUTE"."DATATYPE")
    oracle.ifs.server.S_LibraryObjectData oracle.ifs.beans.LibrarySession.DMNewSchemaObject(oracle.ifs.server.S_LibraryObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.NewSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.createSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    void fr.sword.ifs.GestionDocument.IFSDocument.createDocument(java.lang.String)
    void fr.sword.ifs.GestionDocument.IFSDocument.main(java.lang.String[])
    So, what am i doing wrong ?
    More generally, are we restricted in the types of the attributes ? (for example, would it be possible to add an attribute that would be an inputStream ? Or an object that i have already created ?).
    Any help would be appreciated. Thanks in advance.
    Guillaume
    PS : i'm using Oracle iFS 1.1.9 on NT4 SP6 and Oracle 8.1.7
    null

    Hi Guillaume,
    you're welcome. Don't know exactly, but assume that ATTRIBUTEDATATYPE_UNKNOWN
    is used to check for erronous cases only
    and it shouldn't be used otherwise.
    Creating your own objects could be simply done via
    ClassObject ifsClassObject;
    DocumentDefinition ifsDocDef = new DocumentDefinition(ifsSession);
    // get class object for my very own document
    ifsClassObject = ClassObject.getClassObjectFromLabel(ifsSession, "MYDOCUMENT");
    // set the class for the document i'd like to create
    ifsDocDef.setClassObject(ifsClassObject);
    // set attributes and content for the document...
    ifsDocDef.setAttribute("MYFOO_ATTRIBUTE",....);
    ifsDocDef.setContent("This is the content of my document");
    // create the document...
    PublicObject doc = ifsSession.createPublicObject(ifsDocDef);
    null

  • Trying to create Invoice using the API,however i am not able to create the customer accounts in the front end

    when creating invoice using the API AR_INVOICE_AP_PUB.Create_Single_invoice Am Getting the below Error:
    Transaction type is invalid with current transaction date
    invalid transaction type
    either an inventory item description must be provided
    Kindly help me here

    Hi Team,
    I  tried creating the invoice and I got the above errors, however, when updated the batch source ID I am now getting this following error only, i am just left with the following Error only
    Either an inventory item or description must be provided.
    Please help me on this.

  • NO-DATA_FOUND while using the API hr_employee_api.create_employee.

    Hi All,
    I am using the API "hr_employee_api.create_employee", to create an employee.
    My call is as follows :
    hr_employee_api.create_employee
    -- p_validate in boolean default false
    p_hire_date =>sysdate
    ,p_business_group_id =>0
    ,p_last_name =>'Keerthi'
    ,p_sex =>'M'
    ,p_person_type_id =>6 --from the 'table PER_PERSON_TYPES'
    ,p_per_comments =>'Test Employee Creation'
    --,p_date_employee_data_verified in date default null
    ,p_date_of_birth =>TO_DATE('07-NOV-1981','DD-MON-YYYY')
    ,p_email_address =>'[email protected]'
    ,p_employee_number =>l_emplyee_number
    -- ,p_expense_check_send_to_addres in varchar2 default null
    ,p_first_name =>'Vijay'
    ,p_known_as =>'Vijay Keerthi'
    ,p_marital_status =>'S'
    -- ,p_middle_names in varchar2 default null
    -- ,p_nationality =>'US'
    -- ,p_national_identifier in varchar2 default null
    -- ,p_previous_last_name in varchar2 default null
    -- ,p_registered_disabled_flag in varchar2 default null
    ,p_title =>'MR.'
    -- ,p_vendor_id in number default null
    ,p_work_telephone =>'3033284497'
    -- ,p_attribute_category in varchar2 default null
    -- ,p_attribute1 in varchar2 default null
    -- ,p_attribute2 in varchar2 default null
    -- ,p_attribute3 in varchar2 default null
    -- ,p_attribute4 in varchar2 default null
    -- ,p_attribute5 in varchar2 default null
    -- ,p_attribute6 in varchar2 default null
    -- ,p_attribute7 in varchar2 default null
    -- ,p_attribute8 in varchar2 default null
    -- ,p_attribute9 in varchar2 default null
    -- ,p_attribute10 in varchar2 default null
    -- ,p_attribute11 in varchar2 default null
    -- ,p_attribute12 in varchar2 default null
    -- ,p_attribute13 in varchar2 default null
    -- ,p_attribute14 in varchar2 default null
    -- ,p_attribute15 in varchar2 default null
    -- ,p_attribute16 in varchar2 default null
    -- ,p_attribute17 in varchar2 default null
    -- ,p_attribute18 in varchar2 default null
    -- ,p_attribute19 in varchar2 default null
    -- ,p_attribute20 in varchar2 default null
    -- ,p_attribute21 in varchar2 default null
    -- ,p_attribute22 in varchar2 default null
    -- ,p_attribute23 in varchar2 default null
    -- ,p_attribute24 in varchar2 default null
    -- ,p_attribute25 in varchar2 default null
    -- ,p_attribute26 in varchar2 default null
    -- ,p_attribute27 in varchar2 default null
    -- ,p_attribute28 in varchar2 default null
    -- ,p_attribute29 in varchar2 default null
    -- ,p_attribute30 in varchar2 default null
    ,p_per_information_category =>'US'
    -- p_per_information_category - Obsolete parameter, do not use
    -- ,p_per_information1 in varchar2 default null
    -- ,p_per_information2 in varchar2 default null
    -- ,p_per_information3 in varchar2 default null
    -- ,p_per_information4 in varchar2 default null
    -- ,p_per_information5 in varchar2 default null
    -- ,p_per_information6 in varchar2 default null
    ,p_per_information7 =>'INCL'
    -- ,p_per_information8 in varchar2 default null
    -- ,p_per_information9 in varchar2 default null
    -- ,p_per_information10 in varchar2 default null
    -- ,p_per_information11 in varchar2 default null
    -- ,p_per_information12 in varchar2 default null
    -- ,p_per_information13 in varchar2 default null
    -- ,p_per_information14 in varchar2 default null
    -- ,p_per_information15 in varchar2 default null
    -- ,p_per_information16 in varchar2 default null
    -- ,p_per_information17 in varchar2 default null
    -- ,p_per_information18 in varchar2 default null
    -- ,p_per_information19 in varchar2 default null
    -- ,p_per_information20 in varchar2 default null
    -- ,p_per_information21 in varchar2 default null
    -- ,p_per_information22 in varchar2 default null
    -- ,p_per_information23 in varchar2 default null
    -- ,p_per_information24 in varchar2 default null
    -- ,p_per_information25 in varchar2 default null
    -- ,p_per_information26 in varchar2 default null
    -- ,p_per_information27 in varchar2 default null
    -- ,p_per_information28 in varchar2 default null
    -- ,p_per_information29 in varchar2 default null
    -- ,p_per_information30 in varchar2 default null
    -- ,p_date_of_death in date default null
    -- ,p_background_check_status in varchar2 default null
    -- ,p_background_date_check in date default null
    -- ,p_blood_type in varchar2 default null
    -- ,p_correspondence_language in varchar2 default null
    -- ,p_fast_path_employee in varchar2 default null
    -- ,p_fte_capacity in number default null
    -- ,p_honors in varchar2 default null
    -- ,p_internal_location in varchar2 default null
    -- ,p_last_medical_test_by in varchar2 default null
    -- ,p_last_medical_test_date in date default null
    -- ,p_mailstop in varchar2 default null
    -- ,p_office_number in varchar2 default null
    -- ,p_on_military_service in varchar2 default null
    -- ,p_pre_name_adjunct in varchar2 default null
    -- ,p_rehire_recommendation in varchar2 default null -- Bug3210500
    -- ,p_projected_start_date in date default null
    -- ,p_resume_exists in varchar2 default null
    -- ,p_resume_last_updated in date default null
    -- ,p_second_passport_exists in varchar2 default null
    -- ,p_student_status in varchar2 default null
    -- ,p_work_schedule in varchar2 default null
    -- ,p_suffix in varchar2 default null
    -- ,p_benefit_group_id in number default null
    -- ,p_receipt_of_death_cert_date in date default null
    -- ,p_coord_ben_med_pln_no in varchar2 default null
    -- ,p_coord_ben_no_cvg_flag in varchar2 default 'N'
    -- ,p_coord_ben_med_ext_er in varchar2 default null
    -- ,p_coord_ben_med_pl_name in varchar2 default null
    -- ,p_coord_ben_med_insr_crr_name in varchar2 default null
    -- ,p_coord_ben_med_insr_crr_ident in varchar2 default null
    -- ,p_coord_ben_med_cvg_strt_dt in date default null
    -- ,p_coord_ben_med_cvg_end_dt in date default null
    -- ,p_uses_tobacco_flag in varchar2 default null
    -- ,p_dpdnt_adoption_date in date default null
    -- ,p_dpdnt_vlntry_svce_flag in varchar2 default 'N'
    -- ,p_original_date_of_hire in date default null
    -- ,p_adjusted_svc_date in date default null
    ,p_town_of_birth =>'Denver'
    ,p_region_of_birth =>'Asia'
    ,p_country_of_birth =>'US'
    -- ,p_global_person_id in varchar2 default null
    -- ,p_party_id in number default null
    ,p_person_id =>l_person_id
    ,p_assignment_id =>l_assignment_id
    ,p_per_object_version_number =>l_per_object_version_number
    ,p_asg_object_version_number =>l_asg_object_version_number
    ,p_per_effective_start_date =>l_per_effective_start_date
    ,p_per_effective_end_date =>l_per_effective_end_date
    ,p_full_name =>l_full_name
    ,p_per_comment_id =>l_per_comment_id
    ,p_assignment_sequence =>l_assignment_sequence
    ,p_assignment_number =>l_assignment_number
    ,p_name_combination_warning =>l_name_combination_warning
    ,p_assign_payroll_warning =>l_assign_payroll_warning
    ,p_orig_hire_warning =>l_orig_hire_warning
    This gives me an Error No_DATA_FOUND. I went an debugged through the code, where in I found that
    the following cursor query (in the API: "hr_assignment.update_assgn_context_value") is returning no values.
    cursor csr_ass_data is
    select ass_attribute_category
    from per_all_assignments_f
    where business_group_id = p_business_group_id
    and person_id = p_person_id
    and assignment_id = p_assignment_id
    and effective_start_date = p_effective_start_date
    and primary_flag = 'Y';
    Also, I found out that an assignment_id is coming back after the call to the API "hr_assignment_internal.create_default_emp_asg" from within the API "hr_employee_api.create_employee".
    Now, my question, why is the above cursor query giving me a no-data-found.
    Is there any setup that I am missing like setting DFF or enabling a profile option etc.,
    Please let me know.
    Thanks in Advance,
    Vijay

    Hi Gaurav,
    Thanks for the reply. But I caught the issue.
    The issue is with the parameter "p_hire_date =>sysdate" and the code in the API hr_employee_api.create_employee.
    What it does is, it captures the date that we pass "p_hire_date" into a local variable "l_hire_date" as follows:
    l_hire_Date := TRIM(p_hire_date) and then passes the l_hire_date to the API "hr_assignment_internal.create_default_emp_asg". The API works fine and also returns us an assignment ID. Everything is fine till now.
    The problem begins with the call to the API "hr_assignment.update_assgn_context_value", where in the p_hire_date is passed, instead of the l_hire_date and hence the NO_DATA_FOUND comes up.
    What Happens ?
    1.The date that I passed has the time component in it.
    2.The assignment gets created with a date that has no time component (due to TRIM).
    3The query has a where condition on the date with the time component.
    Hence, it returns no rows.
    Solution: Pass the p_hire_Date as trunc(sysdate) than simply sysdate.
    Thanks,
    Vijay

  • Export with BiarEngine.jar works, using the API it throws an exception

    Hello,
    I'm using BiarEngine.jar to export from my CMS. it works fine.
    Now I want to use the API to get someting more handy, but I receive an exception (NoSuchFieldError) as if I had a mismatch between versions.
    I'm stuck with it, if somebody has an idea...
    Thanks a lot.
    Alain
    Here is the java code:
    IExportOptions oExportOptions = BIARFactory.getFactory().createExportOptions();
    oExportOptions.setIncludeSecurity(false);
    oExportOptions.setIncludeDependencies(true);
    oExportOptions.setCallback(
         new IExportCallback()
              public void onSuccess(int id)      {...}
              public void onFailure(int id, BIARException biarException) {...};
    BIAROutput oBIAROutput = new BIAROutput( oEntrepriseSession, "c:\myFile.biar", exportOptions );
    At this point it throws the exception:
    Exception in thread "main" java.lang.NoSuchFieldError: SI_MODELCUID_SET
         at com.businessobjects.sdk.plugin.desktop.deltastore.internal.DeltaStore.setupProperties(DeltaStore.java:188)
         at com.businessobjects.sdk.plugin.desktop.deltastore.internal.DeltaStore.unpack(DeltaStore.java:37)
         at com.crystaldecisions.sdk.occa.infostore.internal.al.continueUnpack(Unknown Source)
         at com.crystaldecisions.sdk.occa.infostore.internal.al.startUnpack(Unknown Source)
         at com.crystaldecisions.sdk.occa.infostore.internal.InternalInfoStore.queryHelper(Unknown Source)
         at com.crystaldecisions.sdk.occa.infostore.internal.InternalInfoStore.query(Unknown Source)
         at com.crystaldecisions.sdk.occa.infostore.internal.at.query(Unknown Source)
         at com.businessobjects.sdk.biar.internal.XSDManager$RepositoryXSD.retrieveXSDVersions(XSDManager.java:204)
         at com.businessobjects.sdk.biar.internal.XSDManager$RepositoryXSD.<init>(XSDManager.java:194)
         at com.businessobjects.sdk.biar.internal.XSDManager$XSDCache.getXSD(XSDManager.java:365)
         at com.businessobjects.sdk.biar.internal.XSDManager.<init>(XSDManager.java:55)
         at com.businessobjects.sdk.biar.BIAROutput.<init>(BIAROutput.java:73)

    >
    Just need to confirm if the ANT script can be run against individual OSB project than OSB configuration project?
    >
    It is possible. I'm going the same way here. However, I remember I needed to contact support because it was not a standard feature of the Ant task. They provided me with the patch that allowed me to use -configSubProjects parameter in export.
    >
    Can we have multiple OSB configuration projects on the OSB server ?
    >
    I don't think so.

  • Combining files in php using the api

    I am trying to automate the process of cobining multiple tiffs into pdfs using the iac api.
    I keep getting a call to member function on a non-object error if any of you could see why this error is happening or sugest a better way to solve the problem I would greatly appreciate it
    $AdobeApp = new COM("AcroExch.App");
    $AVDocument = new COM("AcroExch.AVDoc");
    $PDDocument = new COM("AcroExch.PDDoc");
    $file = 'c:/test.pdf';
    $create = $PDDocument->Create();
    echo $create . chr(10) . chr(13);
    $combo = 'c:/0013947320101071-705666408_4-97.tif';
    $insert = $PDDocument->InsertPages(0,$combo);
    echo $insert . chr(10) . chr(13);
    $npages = $PDDocument->GetNumPages();
    $combo = 'c:/0013947320101071-705666408_1-94.tif';
    $PDDocument->InsertPages($npages -1,$combo);

    I guess I missed that part of the documentation. I've gone through the documentation a good deal of times and can't find anything other than that that would be useful.  Do you have any suggestions? Have I missed something?  Is it possible to combine tiffs into a pdf using the api?

  • How do I create/update an Excel file using the API?

    Hi,
    I've successfully created a "Web Intelligence" document using the API (POST /raylight/v1/documents).  However, I need to do the same for an Excel file type and have been unable to do so.  Attached are the different steps needed to accomplish this with the UI.  I need to be able to do the same thing through the API.
    I searched through the docs but haven't found anything regarding this particular aspect.
    Does anyone have a clue? 
    Thanks

    Thanks for the link.  I'm using .Net and thought the process would be fairly similar.  It is indeed, however, I'm stuck with the following error when committing on the infoStore object:
    File Repository Server error :
    ErrorCode: -2147210678
    Here's the code I'm using:
    var folderID = infoStore.Query("Select TOP 1 SI_ID From CI_INFOOBJECTS Where SI_KIND='Folder' And SI_NAME='myfolder'")[1].ID;
    var infoObjects = infoStore.NewInfoObjectCollection();
    var infoObject = infoObjects.Add(CrystalDecisions.Enterprise.InfoStore.CeKind.EXCEL);
    infoObject.Title = "Book4.xlsx";
    infoObject.Files.Add("C:\\Users\\myuser\\Documents\\Book4.xlsx");
    infoObject.ParentID = folderID;
    infoStore.Commit(infoObjects);
    I know the problem is related to "infoObject.Files.Add" because when I omit this statement, it works but the file has no content.
    Any idea why???  It's driving me crazy

  • How to do frequency division to a external signal use the api with vc

    i use the api and vc do frequency division.
    and i choose the function DAQmxCreateCOPulseChanTicks
    the problem is the parameter of sourceTermianl in DAQmxCreateCOPulseChanTicks
    i just do not how to use it, please help me ,thanks

        I can`t see your VI cause i've a lower version. I hope this VI to do what you want. 
    But now i have one question: Somebody knows why i get this message when i enable the disable diagram of the this vi? The message is attached, version is 8.0, winxp.
    Paul
    Mechatronic engineer
    Lima-Perú
    Attachments:
    FOURIER_TIME_SCALING.vi ‏25 KB
    msg.JPG ‏31 KB

  • Creating LabVIEW module adapter TestStand Steps using the API without loading module prototype???

    Is it possible to programatically create a TestStand step (using the API), that calls a LabVIEW module, without loading the prototype of the module to get a reference to the Module Parameters.
    I want to specify a VI Pathname, but I dont want to use that pathname to load the prototype.  I want to programatically specify the name, type, representation etc. of each of the controls and indicators.
    My reason for attempting this is that I only want the VIs called by the steps to exist on the target hardware not on the numerous development machines running my application.
    Any thoughts greatly appreciated.
    Steve  
    https://decibel.ni.com/content/blogs/DailyCLAD

    Hi Steve,
    Unfortunatly it is not possible to do what you want within Test Stand but I am not sure why it is necessary, I think I am understanding your application incorrectly.  The only time you will need to load the prototype is if you are creating the step but if you are creating the step you will need the VI that the step calls so that VI will need to be present on the system.  If you are not calling the step then you shouldn't need to load the VI prototype.  If this is how you program funtions it may be a problem with your architecture but if not please could you correct my misunderstanding so that I can go about finding a suitable solution.
    Regards,
    Tom
    Applications Engineer
    National Instruments UK & Ireland

  • The notifications aren't update using the API of universal work list

    We use in the portal home a development iview  that works with de API of Universal Work List. This iview shows the number of notifications and tasks. While the number of tasks are updated correctly, the number of notifications are not refreshed. The only way to update the number of notifications is going and refreshing the Universal Work List iView provided by SAP.
    The API that we are using not support this case? Any suggestion?
    We haven’t found information about this.
    Our system version is 7.00 SP14
    We attachment the call that we‘ve used.
          try {
            notificaciones = tareas = 0;
            IUWLService uwlService =
              (IUWLService)PortalRuntime.getRuntimeResources().getService(
                IUWLService.ALIAS_KEY);
            UWLContext uwlContext = new UWLContext();
            IUser user = componentRequest.getUser();
            uwlContext.setUser(user);
            uwlContext.setAllowBackEndConnections(true);
            uwlService.beginSession(uwlContext, -1);
            IUWLItemManager itemManager = uwlService.getItemManager(uwlContext);
            QueryResult result =
              itemManager.refreshCacheAndGetItems(uwlContext, null, null, null);
            ItemCollection collection = result.getItems();
            for (int i = 0; i < collection.size(); i++) {
              Item item = collection.get(i);
              if ((item.isUnRead() || item.isNew())
                && item.getItemType().startsWith("uwl.notification")) {
                notificaciones++;
              } else if (
                (item.isUnRead() || item.isNew())
                  && item.getItemType().startsWith("uwl.task")) {
                tareas++;
            uwlService.endSession(uwlContext);
          } catch (UWLException e) {
            e.printStackTrace();
    Regards

    Thank you very much for your quick answer...
    But I think that you don't understand me. We can read notifications number but not in real time because they are not updated until we go to the UWL and we force there an update. We want to show in real time the number of notifications that a user has.
    Does anybody how to update/refresh this using the API?
    Thanks for your suggestions

  • Is it possible to make .dll file of .vi project then load it to CVI and use the APIs in the dll to CVI project

    Is it possible to make .dll file of .vi project then load it to CVI and use the APIs in the dll to CVI project?

    Hi Kumar,
    It is possible to make .dll from Labview and i think we can call the same from other programming application also.
    Pls refer the
    below link
    http://zone.ni.com/devzone/cda/tut/p/id/4038
    GAnesan KAni

Maybe you are looking for