Code to get the data in the child table in composite SOA using the IOM APIs

Hi all

I am a new bie to IOM. I have a query related to obtaining data in the child table using the API of the IOM in the task of embeded java SOA composite.

I've created a workflow that has a form of child of providing service of slef. I created a composite SOA custom also approval. In the composite approval I have embedded java code and I want to get the values entered in the child form using the API IOM inot the java code embeded in composite SOA.

I tried gettting the child form data by using getChildAttributes(), but I'm getting the following exception.

The local Exception stack:
Exception [EclipseLink-7242] (Eclipse - 2.1.3.v20110304 persistence Services - r9073): org.eclipse.persistence.exceptions.ValidationException
Description of the exception: an attempt was made to navigate a relationship using indirection that had a null Session. This often happens when an entity has a relationship of LAZY not instantiated is serialized and this lazy relationship is crossed after serialization. To avoid this problem, instantiate the LAZY relationship before serialization.
at org.eclipse.persistence.exceptions.ValidationException.instantiatingValueholderWithNullSession(ValidationException.java:994)
at org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder.instantiate(UnitOfWorkValueHolder.java:218)
at org.eclipse.persistence.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:83)
at oracle.iam.request.vo.RequestBeneficiaryEntityAttribute.getChildAttributes(RequestBeneficiaryEntityAttribute.java:100)
to com. CASApproval.main (CASApproval.java:137)

Please suggest me if I'm following the correct procedure of the child form data or if we can use another approach.

Can we get the data using formInstanceOperationsIntf.getProcessFormChildData ().

Thanks in advance for the help.

Thank you
PT

When you're in approvals, there is no form of process data. Process form data would come only when approvals are completed. If you want to read data from the child form of the DataSet (i.e. the form object as in OIM9.x) you can use the RequestService on the id of the request and read the data. Or another approach would be to the child the dataset data value in the payload of the request and read the XML payload in the composite.
Let me know if you need more information about the second approach. As for the first approach, search through the forums here and you should find my previous posting on how to reach child dataset values using the ask service API.

-Marie

Found these for you:
OIM11G: Way to get values from dataset of the application for approval
Re: How to get the value of the AD details of payload of SOA user group

Tags: Fusion Middleware

Similar Questions

  • I tried to acivate the code to get the license for photoshop cs6 extended student and teacher edition for mac and it says that the code has not been activated

    I tried to acivate the code to get the license for photoshop cs6 extended student and teacher edition for mac and it says that the code has not been activated. Am I missing a step?

    Using redemption code

    http://helpx.Adobe.com/x-productkb/global/redemption-code-help.html

  • Hi bought first 14 elements I used the activation code to get the serial number, but when I type the SN it says we cannot validate serial number

    Hi bought first 14 elements I used the activation code to get the serial number, but when I type the SN it says we cannot validate serial number

    any help

    http://helpx.Adobe.com/Creative-Suite/KB/error-serial-number-valid-product.html

  • How to get the IOM Director of resources in the SOA

    Hi Experts,

    I use IAM_11.1.2.1.0 and SOASuite_11.1.1.6.0, I develop a Composite of SOA, have first approved is Manager of lime and second approves is Administrator of the resource. My problem is that I can't load form to the administrator of the resource role.


    Can someone help me to understand. In R1, we use java code to make this type of operation, in the case of R2 what process. If one that solves this problem please help.


    Thank you

    Tamim Khan

    The resource administrator has nothing to do with the payload.  Usually everything you have found is the name of the resource in the application.  You will need to use the IOM APIs to retrieve information about the resource using the tcObjectOperationsIntf.  It might be especially in the catalog entry although if you completed the approval value.

    -Kevin

  • How to get the IOM Admin roles for a user using API

    Hi all

    I'm trying to get the roles of administrator to a user by using the API. I'm using the code below, but it is returning null, even if the user has two Admin roles...

    private void getUserAdminRoles (String userID)
    {
    Ars AdminRoleService = oimClient.getService (AdminRoleService.class);
    The list < customer > a = ars.getAdminRolesForUser (userID, null);
    System.out.println ("*" + a.size ());
    }

    Thanks in advance

    Ars AdminRoleService = oimClient.getService (AdminRoleService.class);
    List = ars.getAdminRolesForUser (userID, null);
    System.out.println ("*" + a.size ());

    Go to take instead of the user name.

  • Compilation of the composite SOA using Ant Scripts

    Hello

    I'm trying to compile composite SOA via ant script using the following command. (Build does not work correctly when the fact using Jdeveloper)

    Ant f C:\Oracle\Middleware\jdeveloper\bin\ant-sca-compile.xml-Dscac.input=C:\Oracle\Test\Test\composite.xml

    The build fails with the following error message.

    18 November 2015 15:11:30 oracle.adf.share.ADFContext getCurrent

    WARNING: Initialization automatically a DefaultContext of getCurrent.

    The caller must ensure that a DefaultContext is suitable for this purpose.

    Memory leaks or unexpected behavior may occur if the automatic initialization completed successfully.

    This message can be avoided by doing initADFContext before using getCurrent().

    For more information please activate logging for oracle.adf.share.ADFContext at the level of the BEST.

    18 November 2015 15:11:31 oracle.mds

    NOTICE: Customization layer "adfshare" of component MDS mds-file config configuration. XML has been merged with the customization layers defined in the adf file persistence-config - config.xml requests.

    18 November 2015 15:11:31 oracle.mds

    NOTIFICATION: PManager instance is created without support multitenancy as indicator "oracle.multitenant.enabled" of the JVM is not set to enable multitenancy support.

    15:11:32 Oracle.MDS 18 November 2015

    NOTICE: Customization layer "adfshare" of component MDS mds-file config configuration. XML has been merged with the customization layers defined in the adf file persistence-config - config.xml requests.

    15:11:32 Oracle.MDS 18 November 2015

    NOTIFICATION: PManager instance is created without support multitenancy as indicator "oracle.multitenant.enabled" of the JVM is not set to enable multitenancy support.

    15:11:32 Oracle.MDS 18 November 2015

    NOTICE: Customization layer "adfshare" of component MDS mds-file config configuration. XML has been merged with the customization layers defined in the adf file persistence-config - config.xml requests.

    15:11:32 Oracle.MDS 18 November 2015

    NOTIFICATION: PManager instance is created without support multitenancy as indicator "oracle.multitenant.enabled" of the JVM is not set to enable multitenancy support.

    15:11:32 Oracle.MDS 18 November 2015

    NOTICE: Customization layer "adfshare" of component MDS mds-file config configuration. XML has been merged with the customization layers defined in the adf file persistence-config - config.xml requests.

    15:11:32 Oracle.MDS 18 November 2015

    NOTIFICATION: PManager instance is created without support multitenancy as indicator "oracle.multitenant.enabled" of the JVM is not set to enable multitenancy support.

    18 November 2015 info from com.collaxa.cube.CubeLogger 15:11:34

    INFO: validation of 'ApprovalProcess.bpel '...

    18 November 2015 15:11:34 oracle.integration.platform.blocks.FabricConfigManager < clinit >

    WARNING: JRF is unable to determine the current application server platform.

    18 November 2015 15:11:34 oracle.integration.platform.blocks.WLSPlatformConfigurationProvider < clinit >

    WARNING: JRF is unable to determine the current application server platform.

    oracle.fabric.common.FabricException: error getting stream input XML: oramds:/soa/shared/workflow/TaskServiceInterface.wsdl: oracle.mds.exception.MDSException: MDS-00054: the file is loaded there is no such thing as oramds:/soa/shared/workflow/TaskServiceInterface.wsdl.

    at oracle.fabric.common.metadata.MetadataManagerImpl.getInputStreamFromAbsoluteURL (MetadataManagerImpl.java:280)

    at oracle.integration.platform.common.MDSMetadataManagerImpl.getInputStreamFromAbsoluteURL(MDSMetadataManagerImpl.java:616)

    at oracle.fabric.common.metadata.MetadataManagerImpl.getDocumentAsInputStream (MetadataManagerImpl.java:159)

    at oracle.integration.platform.common.MDSMetadataManagerImpl.getDocumentAsInputStream(MDSMetadataManagerImpl.java:478)

    at oracle.fabric.common.wsdl.WSDLManager.loadWSDL(WSDLManager.java:253)

    at oracle.fabric.common.wsdl.WSDLManager.loadWSDL(WSDLManager.java:332)

    at oracle.fabric.composite.model.CompositeModel.loadImports(CompositeModel.java:432)

    at oracle.fabric.composite.model.CompositeModel.getWSDLManager(CompositeModel.java:201)

    at com.collaxa.cube.lang.compiler.ComponentCompilationModel.getWSDLManager(ComponentCompilationModel.java:61)

    at com.collaxa.cube.lang.compiler.BPELComponentCompilationModel.lookupPartnerLinkType(BPELComponentCompilationModel.java:147)

    at com.collaxa.cube.lang.compiler.bpel.BpelParser.assertPartnerLink(BpelParser.java:4570)

    at com.collaxa.cube.lang.compiler.bpel.BpelParser.parsePartnerLink(BpelParser.java:1317)

    at com.collaxa.cube.lang.compiler.bpel.BpelParser.startElement(BpelParser.java:572)

    at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:491)

    at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:498)

    at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:498)

    at com.collaxa.cube.lang.compiler.bpel.BpelParser.parse(BpelParser.java:454)

    at com.collaxa.cube.lang.compiler.bpel.BpelParser.parse(BpelParser.java:401)

    at com.collaxa.cube.lang.compiler.bpel.BPELValidator.validate(BPELValidator.java:65)

    at com.collaxa.cube.lang.compiler.BPEL1Processor.validate(BPEL1Processor.java:329)

    at com.collaxa.cube.lang.compiler.BPEL1Processor.process(BPEL1Processor.java:153)

    at com.collaxa.cube.lang.compiler.CubeParserHelper.compile(CubeParserHelper.java:47)

    at oracle.fabric.bpel.bpelc.BPELComponentValidator.validate(BPELComponentValidator.java:40)

    at oracle.soa.scac.ValidateComposite.validateComponentTypeServicesReferences(ValidateComposite.java:1038)

    at oracle.soa.scac.ValidateComposite.doValidation0(ValidateComposite.java:502)

    at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:481)

    at oracle.soa.scac.ValidateComposite.run0(ValidateComposite.java:206)

    at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:187)

    at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:179)

    Caused by: java.io.IOException: oracle.mds.exception.MDSException: MDS-00054: the file is loaded there is no such thing as oramds:/soa/shared/workflow/TaskServiceInterface.wsdl.

    at oracle.mds.internal.net.AbstractOraMDSURLConnection.getPDocStream(AbstractOraMDSURLConnection.java:459)

    at oracle.mds.internal.net.AbstractOraMDSURLConnection.getPDocStreamWithRetry(AbstractOraMDSURLConnection.java:292)

    at oracle.mds.internal.net.AbstractOraMDSURLConnection.getInputStream(AbstractOraMDSURLConnection.java:184)

    at oracle.mds.internal.net.OraMDSURLConnection.getInputStream(OraMDSURLConnection.java:81)

    the impossible (unknown Source)

    at oracle.fabric.common.metadata.MetadataManagerImpl.getInputStreamFromAbsoluteURL (MetadataManagerImpl.java:276)

    ... 28 more

    Does anyone have an idea on how to compile with ant_scripts

    Thank you

    Hello 934887,

    The issue seems to be related to the validation of the scac - not being able to find the MDS repository.

    What you have in the adf-config files. XML (look at that C:\Oracle\Test\.adf\META-INF\adf-config.xml vs that of C:\Oracle\Test\Test\SCA-INF\classes\META-INF\adf-config.xml)?

    JDeveloper will use C:\Oracle\Test\.adf\META-INF\adf-config.xml, while ANT will use C:\Oracle\Test\Test\SCA-INF\classes\META-INF\adf-config.xml.

    So if the compilation runs from JDeveloper, you must verify that the adf-config. XML to C:\Oracle\Test\Test\SCA-INF\classes\META-INF exists and contains the same content that is located in C:\Oracle\Test\.adf\META-INF\adf-config.xml.

    In addition, you must set the -Dscac.application.home parameter when you compile using Ant.  Try using the following commands:

    -------------------------------------------------------------------------------------------------------------------------------------------------------------

    C:\Users\user1 > PATH=C:\Oracle\Middleware\modules\org.apache.ant_1.7.1\bin;%PATH% value

    C:\Users\user1 > cd C:\Oracle\Middleware\jdeveloper\bin

    C:\Oracle\Middleware\jdeveloper\bin > ant f ant-sca-compile.xml-Dscac.input=C:\Oracle\Test\Test\composite.xml-Dscac.application.home=C:\Oracle\Test

    Hope that helps,
    Amy
    -----
    When closing a thread as answered don't forget to mark the messages correct and useful to make it easier for others to find.

  • Define the process shape and available resources using the IOM APIs

    Hello

    I'm provision the resource in the IOM with the APIs of the IOM. I know that the API to use is provisionObject (long plUserKey, long plObjectKey). The problem is that I have some data to be set manually on the form of courses, so I have to send it via the API.

    Please guide me how can I set the shape of process data and then provide a resource of IOM with the APIs.

    Thank you.

    Rahul

    You can do it in both directions.
    1. you can use adapter pre-population.
    2. you can use the API.
    http://docs.Oracle.com/CD/E21764_01/apirefs.1111/e17334/Thor/API/operations/tcFormInstanceOperationsIntf.html#setProcessFormData_long__java_util_Map _

    extract the information from the object put into service

    http://docs.Oracle.com/CD/E21764_01/apirefs.1111/e17334/Thor/API/operations/tcUserOperationsIntf.html#getObjects_long _

    That
    prntPrvsndPrsInsKey - retrieves the Instance.Key process for provisioned resource object
    hashPrntData - a card that conatins keys as process form column name / value in the form of data.

    tcforminstanceoperationsintf.setProcessFormData (prntPrvsndPrsInsKey, hashPrntData);

    Thank you.
    Kuldeep

  • Examine the properties of system outside the IOM/API

    Hello

    following an alleged error in the system properties of the IOM (11 g Rs PS2, BP04) that prevents the IOM to start properly, I'm trying to find a way to look at all the properties of the system. However, I don't know where to look for them.

    From my understanding, they cannot be in the DB (which schema, what table?) or the MDS, otherwise they would not accessible in a clustered environment.

    Are there clues about that?

    Thank you

    C

    The IOM system properties appear in the table the user XXX_OIM PTY.

    There are other properties for the application server that are in the MDS repository in the location /file/oim-config.xml which are also accessible from the Enterprise Manager console in time grain system run.

    -Kevin

  • IOM Login authentication fails when the IOM API call

    Hello

    We have a small custom application written to make the update of some attributes of the user on OIM. This app works great on the development system, as well as the test system. However, when you run the program on the live system, it generates the error below. Please note that we use the IOM 11.1.1.5, test and production are under linux, while the development system is running windows 7. The test system is a single instance, while IOM in a production environment is clustered. Quick response will be very useful.

    We checked the path provided for authwl.conf and that's okay. Here is the thrown error:

    oracle.iam.platform.utils.NoSuchServiceException: java.lang.reflect.InvocationTargetException
    at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:197)
    at oracle.iam.platform.OIMClient.getService(OIMClient.java:174)
    at oracle.iam.platform.OIMClient.loginSessionCreated(OIMClient.java:209)
    at oracle.iam.platform.OIMClient.login(OIMClient.java:136)
    at oracle.iam.platform.OIMClient.login(OIMClient.java:129)
    at com.infotech.tra.organization.RoleAssignment.updateUserAttributes(RoleAssignment.java:274)
    at com.infotech.tra.organization.RoleAssignment.main(RoleAssignment.java:73)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at oracle.iam.platform.OIMClient.getServiceDelegate(OIMClient.java:193)
    ... 11 more
    Caused by: oracle.iam.platform.utils.NoSuchServiceException: javax.naming.AuthenticationException [Root exception is java.lang.SecurityException: user: weblogic, could not be authenticated.]
    to oracle.iam.platformservice.api.ClientLoginSessionServiceDelegate. < init >(Unknown Source)
    ... 16 more
    Related: javax.naming.AuthenticationException [Root exception is java.lang.SecurityException: user: weblogic, could not be authenticated.]
    at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:42)
    at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:788)
    at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:682)
    at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:469)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:376)
    at weblogic.jndi.Environment.getContext(Environment.java:315)
    at weblogic.jndi.Environment.getContext(Environment.java:285)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
    at javax.naming.InitialContext.init(InitialContext.java:223)
    to javax.naming.InitialContext. < init > (InitialContext.java:197)
    at org.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:114)
    at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:86)
    at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:130)
    at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:155)
    ... more than 17
    Caused by: java.lang.SecurityException: user: weblogic, could not be authenticated.
    at weblogic.common.internal.RMIBootServiceImpl.authenticate(RMIBootServiceImpl.java:116)
    at weblogic.common.internal.RMIBootServiceImpl_WLSkel.invoke (unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
    to weblogic.rmi.internal.BasicServerRef$ 1.run(BasicServerRef.java:522)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    There was incorrect values in the jndi.properties file causing problems. After the correction of the connection of IOM file worked properly.

  • I need to reinstall a clean vista 32-bit, but after you have entered the activation code I get the error from a previous version of windows

    Because the two system restore points are corrupt, I need to reinstall vista, but I get an error message using the previous operating system after I entered the activation code, is there a work around? (lost in moving to the new apt disk backup)

    Hello

    you sitting not what type of disc you are using

    you start from the DVD drive to do a clean install

    to boot from the dvd drive to be able to you will see a way to get into the bios Setup at the bottom of the screen or command menu start

    It would be F2 or delete etc to enter the BIOS or F12 etc. for the start menu

    Change boot order it do dvd drive 1st in the boot order

    http://helpdeskgeek.com/how-to/change-boot-order-XP-Vista/

    and read this too

    http://www.theeldergeek.com/Vista/vista_clean_installation.html

    and here are the different ways to reinstall vista

    Contact the computer manufacturer and ask them to send you to vista recovery disks to reinstall the operating system back as it was when you bought it

    they do it for a nominal cost of $

    also ask them if you have a recovery partition on your hard drive to get back to the way you bought

    you would normally press F8, F9, F10 or F11 or Alt + F10 or 0 to start to start the recovery process according to the manufacturer

    Ask them of the exact key sequence

    or borrow a vista microsoft dvd; not a HP, Acer recovery disk etc

    Make sure that you borrow the correct 32-bit or 64-bit microsoft dvd to your computer

    they contain all versions of vista

    This is the product key that determines which version of vista is installed

  • Why is code to get the center of the image does not?

    Hey there. I'm trying to set up the center of the imags that load so that I can put them in the center of the stage. I do this each image is a different size.

    Here is the code that I learned to work before, but its doesn't now and I've been searching for what I've done wrong with no luck. : (

    Would watch you over and maybe you'll see what I'm doing wrong?

    public function placePicture(e:Event = null):void {
         rawImage = imageData.image[imgNum].imageURL;
         lastImageIndex = imageData.*.length() - 1;
                        
         imageLoader = new Loader;
         imageHolder = new Sprite;
         imageLoader.load(new URLRequest(rawImage));
                                  
         imageLoader.x -= imageLoader.width/2; //this should set the image to the center no?
         imageLoader.y -= imageLoader.height/2;
         imageHolder.x = 640; //this is the center of the stage
         imageHolder.y = 100;
         imageHolder.addChild(imageLoader);
         masterHolder.addChild(imageHolder);     
    }
    

    The result when I publish is the image comes on stage, but the upper left corner goes to 640 instead of the center of the image to 640.

    I tried several variations of this all with the same result:

    imageLoader.x = - 1 * imageLoader.width / 2;

    I tried to use setRegistrationPoint with the following tutorial: http://flashscript.ca/set-registration-as3.php

    and I tried to do all this by inserting the charger in a sprite and then in applying the code to the sprite and then adding only another sprite sprite and put to 640 and inserting is not in another sprite and trying to right set up the existing 640 sprite (I hope that all the senses). And I tried to put width/3 and nothing else happens.

    If you have other ideas or you can see what I am doing wrong I would be really gratefull for some tips! : )

    Thanks for any help!

    Oh, and I'm getting no errors on it.

    width and height of the image are not available until the loading is complete.  That is to say, use a Headphone/Earphone full function.

  • I need to change "where I'm from" and my zip code to get the payment. How?

    He says I'm in the United States, but its supposed to be "Norway". How can I change this?

    Please see this FAQ: How can I change the country associated with my Adobe ID?

  • How to get verified data rows in a table?

    Hai
    To display a check box my table on page jspx, I created a transitional attribute, the salt and the type select as Boolean.Then when I drag and drop my page jspx viewObject. The table cantain id, name, designation, salary, salt
    Then I deleted the link in the column of salt and drop a checkbox select Boolean to this column. Then in the property inspector, I bind the value # {row.sel} for box...
    Suppose that there are 5 lines in my table... I checked only 3 of them. When I pressed a button, the corresponding to the id must be extracted and checked lines in the table and I want to show more details corresponding to this id of in another table in the jspx page. I use jdev 11

    Hello

    So if I find correct this time, you do not want to select the lines by clicking on the row in the table but rather by selecting the check box that you created. Fix? Sorry, previous confusion is because of me "thinking in Trinidad. Anyway, you can then set the rowSelection of the table as zero, as you select the line in this way. Try the code below.

    public String doSomething() {
        List rows = getAllRows(getTable1());
        for (Row row : rows) {
            if ((Boolean)row.getAttribute("sel")) {   // Check if it's true which (should) indicate the checkbox as being selected
                System.out.println(row.getAttribute("id"));   // Your selected id based on the checkbox you selected.
            }
        }
    }
    
    public List getAllRows(RichTable table) {
        List rowList = new ArrayList();
        Row row = null;
        FacesCtrlHierNodeBinding rwData = null;
        int total = table.getRowCount();
    
        for (int i = 0; i < total; i++)  {
            rwData = (FacesCtrlHierNodeBinding)table.getRowData(i);
            if (rwData != null) {
                row = rwData.getRow();
                rowList.add(row);
            }
        }
    
        return rowList;
    }
    

    A few points to note. The getAllRows method loops through the entire VO. So if you have 10,000 rows, shut up 10,000 times. If you are dealing with large records or who want to optimize the code, you will need to loop through the "displayed" only lines. To do this, you need to change the code.

    Kind regards
    Amélie Chan

  • How to get the device Pin code?

    Is Hello possible to get the BB device PIN in Android? Something similar to DeviceInfo.getDeviceid ()?

    Finally, I fixed all my problems.

    I had errors: TOO_MANY_REGISTRATIONS and SERVICE_NOT_AVAILABLE

    TOO_MANY_REGISTRATIONS is set by the phone factory reset. I seems that recording is not completely cleaned when I delete applications and restart the phone. Is there a solution to this? Some cleaning functions, I have not found in the software?

    SERVICE_NOT_AVAILABLE was inside the BlackBerry Simulator ever on the phone.

    Download the DevicePin:

    Use this 'Tutorial' https://developer.blackberry.com/developer/android/apisupport/creating_push-enabled_android_apps.htm... But download the GCM.jar with the Manager software development kit. To do this click "Obsolate" below and you will find the 'Google Cloud messaging for Android Library'. Put it in your make libs folder right click-> Add as library and put "compile files('libs/gcm.jar')' in your build.gradle

    If you now use the following code, you get the devicepin:

    GCMRegistrar.checkDevice(this);GCMRegistrar.checkManifest(this);GCMRegistrar.register(this, SENDER_ID); String regId = GCMRegistrar.getRegistrationId(this);
    
  • Getting the activity of contact data?

    Hi all

    In trying to get the ProcessedActivity of database entities, I always get 0 record.

    Should be a config change to record activities?

    Moreover, in trying to get the RESTful API activities, I send requests to each contact id and each type of activity of the 8 types (emailOpen emailSend, emailClickThrough, emailSubscribe, emailUnsubscribe, formSubmit, webVisit, campaignMembership).

    But each application would expire.

    When obtaining accounts and Contacts, it works well, and records of result would be returned in a few seconds.

    So, what should I do especially for activities?

    Any suggestions?

    Thank you

    Biao

    Extraction activities in bulk via SOAP by the ProcessedActivity only works if you have the internal queue previously activated for you, and you have the activity according to the internal events that log information that him. It will store data up to 45 days. So 0 results could mean it is not enabled, your internal events are disabled (or external calls in them have been deleted) or your date range is beyond the data you have, or simply the filter on your query returns no data. You can read more here:

    The queue of activity processed (AQP)

    And here:

    Eloqua API how: retrieve data of activity through the API

    To make queries through the REST, if you get HTTP500, try again with a shorter period of time and a small page to test. If you're pulling for one year (maximum) and contacts a large number of activities, the db simply may not have able to extract the data in time. To clarify on the levels of support for REST 1.0 - product compatible will address all the problems that you encounter with him and log defects or feature requests as needed. From there on, dev may specify what level of action, we can provide on this particular workflow or an end point. REST 2.0 is not supported because it is not contractually stable and may change between versions. If the behavior/feature you need is available at REST 2.0 and 1.0 not, then certainly, you can consider using it, but it is not recommended because of this reason.

    For activity in general, exports in bulk 2.0 export activity are available. They have the advantage to be more effective than the REST, which is 1 call per contact by type of activity, and support the date more 1 year ranges. During the SOAP/QIP method, there the advantage of not requiring installation and changes to your integration area, as well as no drop of data after 45 days.

Maybe you are looking for