Creating Transient EO attribute and Mapping it to VO

Hi all,
Pls suggest me the best approach/solutions.
Its to add a transient attribute to EO and update it by mapping it to a VO(using expert query) attribute.
Regards,
Santhosh.

Here is what I would do.
1. Create either a new, extended EO or modify the existing EO using the jDeveloper EO wizard and create the new, transient attributes through that wizard. This will automatically create EO setter and getter methods for the transient attributes. Since they are already in the EO they can use the other EO set and get methods to create the transient data. Since the new attribute is transient, the set method for it is probably not as important since transient attributes do not support DML as they are not attached to table attributes.
2. Next create a new, extended VO or modify the existing VO using the jDeveloper VO wizard adding the extended EO if one was created. At the SQL pane add the EO transient attributes to the select statement which will automatically create EO - VO mapping entries for the new fields. Be aware, jDeveloper will NOT create these properly. The VO xml will have to be edited because it will not correctly identify the EO entries in the VO xml. Shut down jDeveloper and open the VO xml using an editor. Locate your added attributes and, using an properly associated VO/EO attribute as a template, modify your VO xml so that the attributes properly match to the EO.
3. If you are using extended objects you will have to create a substitution for both the extended EO and the extended VO. At deployment you must deploy the new, extended objects and the substitution in order for everything to work properly.

Similar Messages

  • Error to create a new attribute and modify attribute retriever in weblogic

    Hi Experts
    I have intalled a weblogic server protected by Oracle Entitlements Server, this server contain a web app deployed, this app have policies to restrict the access to resources. For this policies i created an attribute retriever in weblogic console after, i did define an attribute to map this attribute retriever and used in a policy but, I have a problem when i try to create a new attribute or modify an attribute retriever, navigate to Home >Summary of Security Realms >"OES REALM" >Providers >ASIAuthorizationProvider clic on tab "attributes" and appears this errorr:
    Error opening /ext_jsp/security/providers/retrievers/CreateALESAttributes.jsp.
    The source of this error is:
    java.lang.NullPointerException
         at com.bea.retrievers.action.utils.BaseActionUtils.getNonALESAttributeRetrievers(BaseActionUtils.java:370)
         at jsp_servlet._ext_jsp._security._providers._retrievers.__createalesattributes._jspService(__createalesattributes.java:152)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:318)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:429)
         at org.apache.beehive.netui.pageflow.scoping.internal.ScopedRequestDispatcher.include(ScopedRequestDispatcher.java:119)
         at com.bea.netuix.servlets.controls.content.JspContent.beginRender(JspContent.java:552)
         at com.bea.netuix.servlets.controls.content.NetuiContent.beginRender(NetuiContent.java:365)
         at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:485)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
         at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:326)
         at com.bea.netuix.nf.UIControl.render(UIControl.java:582)
         at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:486)
         at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146)
         at com.bea.netuix.servlets.jsp.taglib.skeleton.Child.doTag(Child.java:63)
         at jsp_servlet._framework._skeletons._wlsconsole.__flowlayout._jspService(__flowlayout.java:175)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:429)
         at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:130)
         at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
         at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
         at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
         at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:326)
         at com.bea.netuix.nf.UIControl.render(UIControl.java:582)
         at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:486)
         at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146)
         at com.bea.netuix.servlets.jsp.taglib.skeleton.Child.doTag(Child.java:63)
         at jsp_servlet._framework._skeletons._wlsconsole.__gridlayout._jspService(__gridlayout.java:219)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:429)
         at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:130)
         at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
         at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
         at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:352)
         at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:326)
         at com.bea.netuix.nf.UIControl.render(UIControl.java:582)
         at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:486)
         at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146)
         at com.bea.netuix.servlets.jsp.taglib.skeleton.Child.doTag(Child.java:63)
         at jsp_servlet._framework._skeletons._wlsconsole.__twocollayout._jspService(__twocollayout.java:205)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:502)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:429)
         at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(JspTools.java:130)
         at com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender(JspControlRenderer.java:72)
         at com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender(PresentationControlRenderer.java:65)
         at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:481)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:518)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:529)
         at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
         at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
         at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:208)
         at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:162)
         at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:388)
         at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:258)
         at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:199)
         at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:251)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at com.bea.console.utils.MBeanUtilsInitSingleFileServlet.service(MBeanUtilsInitSingleFileServlet.java:47)
         at weblogic.servlet.AsyncInitServlet.service(AsyncInitServlet.java:130)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    My product versions are:
    Weblogic 10.3.2
    OES WLS-SSM 10.1.4.3 + CP4
    OES Admin 10.1.4.3 + CP4
    DB 11gR1
    Anybody can help me please.
    Regards

    You need to add attribute to User Extended Attributes its an configuration object. After changes you need to restart the App / Web server. Only after restart IDM will start storing the value into repository and you can use them as global.<<attr name>>
    Thanks
    MK

  • Transient entity attributes and clearing cache

    I have an entity with both queriable and transient attributes. One of the transient attributes uses the persistent primary key of the entity object as well as an attributes retrieved from another entity via an association in order to execute a CallableStatement. This transient attribute uses the following code:
    public Number getReflectallow() {
    if ((Number)getAttributeInternal(REFLECTALLOW) == null) {
    return getReflectAllowFromDB();
    } else {
    return (Number)getAttributeInternal(REFLECTALLOW);
    The getReflectAllowFromDB also sets the value in entity cache using the populateAttribute method.
    My problem is that this database value can change and there are certain points in the application where I would like to clear the cache and rebuild all new values for this attribute. I have tried using both getTransaction.clearEntityCache() and the clearCache() on the view object but neither affects this field. I also cannot loop through the view and reset that attribute to null because it dirties the transaction. I'm assuming that clearing the cache does not work because the attribute is transient. How can I clear the values from cache?

    Any help with this Shay?

  • Problem in Creating .wsdl file and mapping.xml with ant

    hi
    i am created my .wsdl file and mapping.xml file with wscompile tool but when i run this by ant tool it show a problem.
    the command runs on command prompt but when run throught ant file it shows a following error :-
    Execute failed: java.io.IOException: CreateProces: wscompile -define -mapping build\classes\META-INF\mapping.xml -d . -nd build\.................and so on
    so if anybody have any idea then plz help me asap
    thanx

    The following Ant snippet is the way I've defined my wscompile task. I'm creating a web application and it looks like yours might be an EJB endpoint, but you can adjust where necessary:
    <taskdef name="wscompile" classname="com.sun.xml.rpc.tools.ant.Wscompile">
         <classpath refid="compile.classpath" />
    </taskdef>
    <target name="init">
         <echo message="-------- ${appname} --------" />
    </target>
    <!-- This target compiles the server components using an existing WSDL as the driving document.
           The configuration file must use the <wsdl> element giving the location (local file system
           or URL) of the WSDL document.
           Note: the fork argument is needed to over come a bug when using the mapping argument. See
           http://forum.java.sun.com/thread.jspa?threadID=592994&tstart=0
      -->
         <target name="generate-server-from-WSDL" depends="init">
              <wscompile fork="yes"
                           keep="true"
                           base="${basedir}/WebContent/WEB-INF/classes"
                           import="true"
                           features="wsi"
                           xPrintStackTrace="true"
                           verbose="true"
                           mapping="${basedir}/WebContent/WEB-INF/jaxrpc-mapping.xml"
                           sourcebase="${basedir}/src"
                           config="${config.server.doclit.file}">
                   <classpath>
                        <path refid="compile.classpath" />
                   </classpath>
              </wscompile>
         </target>
         <target name="compile-server-from-WSDL" depends="generate-server-from-WSDL">
              <javac srcdir="${basedir}/src" destdir="${basedir}/WebContent/WEB-INF/classes" debug="${compile.debug}">
                   <classpath refid="compile.classpath" />
              </javac>
         </target>Just make sure that the named destination directories exist before you run the script.
    If you'd like more details on the wscompile Ant task, I found the following pages invaluable:
    https://jax-rpc.dev.java.net/whitepaper/1.1/index-part1.html

  • Help needed in creating user defined attribute

    Hi all,
    I want to create user defined attributes and make it available for all users in sun LDAP5.2,I have followed the below mentioned steps,
    1.Under configuration-schema i have created attribute named "ldapproducts"
    2.I have created new object class "userproducts" and made the parent to be "inetorgperson" and added my "ldapproducts" attribute in required attribute.
    Now,in directory tab,Iam trying to add the "ldapproduct" attribute for each user but my defined attribute i.e,"ldapproducts"is not available in the "Add Attribute"list
    please let me know do i need to do some steps or do i need to do any changes in DS files..
    waiting for ur replies...
    thanks in advance.

    Hi,
    I dont know the solution for this, but heres a work arround
    //create new label some where else in the excel sheet as shown below
    Label lblcmbdata;
    for(int i=0; i<1000; i++)
                 lblcmbdata = new Label(75, i, (i+1)+" satish", format);
                 sheet1.addCell(lblcmbdata);
    }//set the validation range as shown below
    writableCellFeature.setDataValidationRange(75,0,75,1000);
    Label cmb = null;
    cmb = new Label(0, 1, "Select",format);
    cmb.setCellFeatures(writableCellFeature);
    sheet.addCell(cmb);this will create a combo list with 1000 values
    also you can keep the data to be populated in the different sheet in same workbook by creating a named range as below
    workbook.addNameArea("cmbdata", sheet1, 0, 0, 0, 1000);
    // then fill the data in sheet1
    Label lblcmbdata;
    for(int i=0; i<1000; i++)
                    lblcmbdata = new Label(0, i, (i+1)+" satish", format);
                    sheet1.addCell(lblcmbdata);
    //set the validation named range as below
    writableCellFeature.setDataValidationRange("cmbdata");
    Label cmb = null;
    cmb = new Label(0, 1, "Select",format);
    cmb.setCellFeatures(writableCellFeature);
    sheet.addCell(cmb);Thanks and Regards
    Satish

  • Using populateAttribute to override transient VO attribute

    Hi,
    I want to use the 'populateAttribute' method to override a transient VO attribute but not having much luck.
    Error(61,7): method populateAttribute(<any>, java.lang.String) not found in class cas.oracle.apps.csi.installbase.webui.ChangeItemsCO
    I thought I could just put it in the controller with the following line:
    populateAttribute(Client, NewClient); --where Client is the transient attribute and NewClient is a text input value from the screen
    because I want to override only if the user presses the 'Change' button.
    Should I be putting it somewhere else? What am I missing?
    Thanks very much.

    Resolved.
    Didn't have to use populateAttribute at all. I just passed the text input fields using parameters from the controller to the AM where I was displaying the transient VO attributes and overrode the attribute there.
    Thanks.

  • Create, Load, & Assign Attribute using Notepad + Outline Load Utility

    Hi all, I have a requirement that I need to create a new attribute and then assign to many different members. Since there are so many members, I believe the best way to do this is to process this dynamically in notepad or wordpad through Outline Load Utility.
    This is the normal way how I would do it manually in Planning:
    1. Let's say this is my outline in Planning. "1000-X" is the base member where I will be assigning the new attribute to. And many more siblings to "1000-X" will be assigned with the same attribute:
    http://i.imgur.com/U6d1i.jpg
    2. So I changed the data type of "1000-X" to Stored. I highlighted "Entities". I created the new attribute named "Company".
    http://imgur.com/Kg2oe
    3. I have selected base member "1000-X" -> Edit -> then assign the new attribute to "Company". So that's done for a single member. However, keep in mind, I still have many more members to assign the new attribute to. I want to do this much quicker through dynamic way so I'm not sure if I have to go through this process. Maybe this could be alternated by creating it in notepad/wordpad?
    http://i.imgur.com/lg9G6.jpg
    Now, my question is, if I want to just type up everything in notepad/wordpad for assigning the new attribute "Company" to a massive amount of members. How would that structure look?
    I was reading this but I'm still a bit confused about how the structure should be formatted when it gets more complex:
    https://blogs.oracle.com/HyperionPlanning/entry/attributes_loading_and_assigning_attributes
    So basically there are 2 files: Attribute Load file and Entity Metadata Load file
    Now, this is my Attribute Load file. Can someone help me to verify my work?
    http://i.imgur.com/fnT8I.jpg
    =========
    Parent, Office
    Office,Office
    =========
    Next, here is the Entity Metadata Load file I created:
    http://i.imgur.com/wrSt9.jpg
    =============================
    Parent,Entity,Company
    "Total Non-Admin","Total Admin","Department XYZ - A & B & C", "Department X","TOtal Administration","USA","Operation XYZ","Operation X","1000-X"
    =============================
    Apparently, there's something wrong with it so correct me. Thanks for taking time reading this.
    - N

    I think Outline Load Utility needs .CSV files as the source files. See below format that loads fine.
    Parent,<Base Dim Name (Entity)>,<Data Storage>,<Alias: Default>,<Attr Dim 1>,<Attr Dim 2>,<Attr Dim 3>
    All Entites,Entity,Store,,,,
    Entity_1,All Entities,Store,,,,
    Entity_1_1,Entity_1,Store,,<Attr Dim 1_Member_1>,<Attr Dim 2_Member_2>,<None>
    Entity_1_2,Entity_1,Store,,<None>,<Atter Dim 2_Member_2>,<None>
    Note: Attribute assignments must be of the same level in the base dimensions. It may let you assign but will get error during the refresh.
    Thanks,
    KK

  • Creating Transient Attributes when query is in Expert Mode

    I wanted to share a recent challenge I encountered. I had created a transient attribute in my View Object and placed it on my .jspx page. When I would navigate to the page I would receive an error telling me, "oracle.jbo.AttributeLoadException: JBO-27022: Failed to load value at index 42 with java object of type java.lang.String due to java.sql.SQLException.".
    After switching my run configuration to include the java option -Djbo.debugoutput = console, I noticed my sql statement was getting modified. I inspected the view object sql and realized the calculation for my transient object was not present. After adding the calculation for the column in my sql, I was able to run the page with no errors.
    My problem was that I had my query in expert mode so I could utilize an outer join. When I added the transient attribute after putting the query in expert mode, JDEV would not automatically make the changes to my SQL.
    It would really help if JDEV threw an alert to the user letting them know that their query is in expert mode and changes cannot be made to the SQL or it would also help if I remembered what I read in the Dev Guide. Such as when a file is read only.
    (JDEV 10.1.3.4)

    When I added the transient attribute after putting the query in expert mode, JDEV would not automatically make the changes to my SQL.Really depends on what you meant by ' transient '.
    Did you really want a 'calculated' attribute - i.e. one that is backed by a query clause - for this you needed to check the 'mapped to column or sql' in the attribute properties and also provide an SQL expression..
    Otherwise, it's just a java 'transient' attribute and doesn't have to be part of the query...

  • PI 7.1 : Taking a input PDF file and mapping it to a hexBinary attribute

    Hello All,
    We have a requirement which involves taking in an input PDF file and mapping it to a message type with binary attribute and sending it to an R3 system.
    Can anyone please detail the steps or point us to the correct documents for setting up the scenario.
    The scenario is file to Proxy adapter. The part which we need assitance is pulling up the input pdf and mapping it to binary field.
    Thanks.
    Kiran

    Thanks Praveen,Mayank,Sarvesh and Andreas for your  valuable help with the issue.
    I was able to successfully pick up the binary PDF file from a file server , encode it using Base 64 and post it to R3.
    I used the following code snippet and added the mentioned jar files to create a new jar file which was used as java mapping in the operation mapping.
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.*;
    import com.sap.aii.utilxi.base64.api.*;
    import java.io.*;
    import java.util.*;
    public class Base64EncodingXIStandard implements StreamTransformation{
         String fileNameFromFileAdapterASMA;
         private Map param;
         public void setParameter (Map map)
              param = map;
              if (param == null)
                   param = new HashMap();
         public static void main(String args[])
              Base64EncodingXIStandard con = new Base64EncodingXIStandard();
              try
                   InputStream is = new FileInputStream(args[0]);
                   OutputStream os = new FileOutputStream(args[1]);
                   con.execute(is, os);
              catch (Exception e)
                   e.printStackTrace();
    public void execute(InputStream inputstream, OutputStream outputstream)
                   DynamicConfiguration conf = (DynamicConfiguration) param.get("DynamicConfiguration");
                   DynamicConfigurationKey KEY_FILENAME = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
                   fileNameFromFileAdapterASMA = conf.get(KEY_FILENAME);
                   if (fileNameFromFileAdapterASMA == null)
                        fileNameFromFileAdapterASMA = "ToBase64.txt";
              try
                   while ((len = inputstream.read(buffer)) > 0)
                        baos.write(buffer, 0, len);
                   str = Base64.encode(baos.toByteArray());     //buffer);
                   outputstream.write("<?xml version=\"1.0\" encoding=\"utf-8\"?><ROOT>".getBytes());
                   outputstream.write(("<FILENAME>" + fileNameFromFileAdapterASMA + "</FILENAME>").getBytes());
                   outputstream.write( ("<BASE64DATA>" + str + "</BASE64DATA></ROOT>" ).getBytes());
              catch(Exception e)
                   e.printStackTrace();
         byte[] buffer = new byte[1024*5000];
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
         int len;
         String str = null;
    I had to do the following configuration settings
    1)  Create a Sender Comm Channel with Adapter Specific message attributes and Filename checkbox checked.
    2) Use the Java Mapping in the Operation mapping.
    The scenario is working smoothly with out any issues.
    Thanks.
    Kiran

  • Extending VOs with attributes and creating new treetable columns

    Hi,
    I am relatively new to the ADF scene so please bear with if what I have in my mind is not even possible with ADF. I have searched hi and lo for a solution and now I thoughts it time to ask the community.
    Anyways this is what I want to do. I have a simple DB Table that has a hierarchy i.e Trees with roots much like the Employee hierarchy. Except this table has ids for items that come from external systems ( via Web Services in my case ) and / or ids to items in a table that resides in the local schema. So basically this structure table of mine only has relationships and the detail items need to be joined via an association ( in ADF terminology ) in the treetable component somehow.
    * Now creating the structure hierarchy is not a big issue. I have that part done already.
    * I have the VO from WS ready that gets the items that I might need to show as detail columns in the tree table.
    * Querying the local item Detail VO for detail rows might also be not that problematic.
    * Merging the above 2 columns to create a consolidated row set is also not that challenging whereby each column header is premapped to internal and external fields. This mapping is configurable to add more fields as required by a user to the treetable.
    What I am struggling with is that when I have this merged row set, how will I make it appear on the UI. The treetable seems to utterly not support this i.e. adding new columns at runtime. Following is what I have been able to establish till now.
    * The addDynamicAttribute methods on the View Object are not meant for this purpose. While they do add the attributes and you can set and get them after using this method, they do not render and I can't find a way to dynmically rendering them somehow for tree table.
    * Looked at the ADF dynamic components. They support only table and page. No go. Or do the whole tree thing somehow in the table component, Will look odd but might still work.
    * Looked at this article ( http://one-size-doesnt-fit-all.blogspot.com/2007/05/back-to-programming-programmatic-adf.html ) . I found a comment in the forum regarding this that this might not be all that efficient. Not to mention the fact that it uses the deprecated TreeModels class in 11g.
    ** Just regarding this apporach what are the new 11g recommended TreeModel classes to be used instead of the deprecated one. I have read the follow-up post but that just points to the location of where the deprecated classes moved to in 11g under the apache contribution. And makes the example work under 11g. What was this TreeModel class replaced with. Anyone knows ?
    ** How could I access my VO objects in the TreeTableApater ? Can I declare my merged View object wrapped in a TreeItem POJO object. Theoretically it is on the view layer right ?
    ** If this approach is inefficient has anyone another solution that might work ?
    Or just has anyone managed to extend the treetable in any different sort of way. Any tips/help pointers would be deeply appreciated.
    Best Regards,

    Hi,
    So I had some time to look at this problem again. I created a ChildPropertyTreeModel and binded it to my treetable component and moved the generation of the columns to the jspx page. I got it mostly working but the columns generation part mostly escapes me still.
    here is how the jspx page looks like that renders the treetable, and which works fine :
    <af:treeTable rowBandingInterval="0" id="dynTTbl" var="row" expandAllEnabled="true"
    binding="#{backingBeanScope.DynamicTreeTableBB.dynamicTreeTable}"
    value="#{backingBeanScope.DynamicTreeTableModel}">
    <f:facet name="nodeStamp">
    <af:column sortable="false" headerText="Node Stamp" id="c1">
    <af:outputText value="#{row.tableColumnVal[0]}" id="ot1"/>
    </af:column>
    </f:facet>
    <af:forEach begin="1" end="2" varStatus="status">
    <af:column>
    <f:facet name="header">
    <af:outputText value="#{status.index}"/>
    </f:facet>
    <af:inputText value="#{row.tableColumnVal[status.index]}"/>
    </af:column>
    </af:forEach>
    </af:treeTable>
    I want the forEach loop to look a bit differently like below :
    <af:forEach items="row.tableColumnVal" var="columnVal" varStatus="status">
    <af:column>
    <f:facet name="header">
    <af:outputText value="#{status.index}"/>
    </f:facet>
    <af:inputText value="#{columnVal}"/>
    </af:column>
    </af:forEach>
    This should work for a list or array but evidently in my case it is not. I have a suspicion that the "items" attribute is unable to recognize the row.tableColumnVal attribute of mine. I have no way of checking this out or finding out if I am doing something wrong.
    My sample project can be found here, if anyone quickly wants to run this on Jdev 11g
    http://rapidshare.com/files/438880281/TreeTableTest.zip
    P.S. I have tried to convert the tableColumnVal attribute to a List an array and a Map. The first forEach syntax works everytime but the second one fails always and I want the second one to work somehow.
    Regards,

  • Creating a new folder and drive map with Preferences

    So I am trying to set things up using GPP so that users of a particular security group get a U:\ drive at the following location:
    \\server\share\%username%
    I have set up the drive map preference & also a folders preference (to create the user's folder).  The problem is that it works BACKWARDS and the drive tries to map prior to folder creation and thus fails, THEN the folder gets created.  So
    that the 2nd time the user logs in they actually get the U:\ drive at the correct location.  The goal is to have the folder created and mapped to on the 1st try for the user.
    How can I get this working WITHOUT resorting to scripts, folder redirection, or manually setting the U drive on the AD Profile?  I just want that folder to be created for only users in the proper security group, and then have the drive map
    to it.
    # When I wrote this script only God and I knew what I was doing. # Now, only God Knows!

    > How can I get this working WITHOUT resorting to scripts, folder
    > redirection, or manually setting the U drive on the AD Profile?  I just
    > want that folder to be created for only users in the proper security
    > group, and then have the drive map to it.
    You cannot. The execution order of GPO parts (called Client Side
    Extensions) cannot be changed, so you're stuck with this error if you
    don't resort to a script :)
    Greetings/Grüße,
    Martin
    Mal ein
    gutes Buch über GPOs lesen?
    Good or bad GPOs? - my blog…
    And if IT bothers me -
    coke bottle design refreshment (-:

  • How to create a new cell attribute and add adorner to the cell

    Hi
    I am relatively new to InDesign and wanted to do the following
    I want to add a new boolean attribute to a selected table cell. When this attribute is set, I would want to draw one line vertical and one line across the selected cell ( kind of like a "Plus" sign over the cell). I am wondering how to go about doing this.
    PS: I read the snippet snpManipulateTableStyle and can see how to change a cell style using existing attribute (kcellAttrFillColorBoss). However in my case, i want to create a entirely new boolean attribute and based on it being true or false, I would want to draw the adornment on the cell
    Any help with this would be greatly appreciated..
    thanks!
    Sam

    I would create the new site first, then promote the new domain controllers and add them to the site. You can do this during the dc promote process.
    There's step by step guides already available for creating a site so I don't see any point reinventing one.
    Here's one:
    http://www.petri.co.il/create-active-directory-sites-windows-server.htm
    You may have to adjust the site links part since it looks like Site 3 will only be linked to Site 1.
    Of course, the IP addresses for the domain controllers in Site 3 have to be in the IP subnet configured for that site.
    Using the example above, you'll of course have to enter the information that makes sense for your netwrok.
    I doubt anyone will create a custom step by step for you using the information you provided  (they'd also have to know your subnets for one thing) but then, who knows. 
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

  • How to create mass users and map them to existing  hrms users

    Hi,
    Im running oracle ebusiness suite 12i . I want to create mass users , and map them to existing hrms users.
    The users I want to create exist in an excel spreadsheet with the columns employee id, user name. They will all be granted the same responsibility. I want to map them to existing hrms users using the employee id key.
    I have read about the package FND_USER_PKG.CREATEUSER and I can loop over it by using sql loader to create a temporary table, but I m lost on how to automatically map them to hrms users as part of the script.
    Any help.
    dula

    Thanks a lot Omka,
    I managed to create the users by running the script:
    declare
    Cursor C1 is
    select d.product_code,b.responsibility_key from FND_USER_RESP_GROUPS_ALL a,fnd_responsibility b,fnd_user c,fnd_application d
    where a.user_id = c.user_id
    and a.responsibility_id = b.responsibility_id
    and b.application_id = d.application_id
    and c.user_name ='JOCHIENG';
    Cursor employee is
    SELECT EMPLOYEE_ID,EMPLOYEE_NAME from eldoret_final;
    BEGIN
    for e in employee loop
    fnd_user_pkg.createuser
    x_user_name => e.EMPLOYEE_NAME
    *,x_owner => ''*
    *,x_unencrypted_password => 'welcome123'*
    *,x_start_date => SYSDATE - 10*
    *,x_end_date => NULL*
    *,x_description => 'CBK Employee'*
    *,X_EMPLOYEE_ID => e.EMPLOYEE_ID*
    fnd_user_pkg.addresp(upper (e.EMPLOYEE_NAME),'PER', 'CBK_EMPLOYEE_DIRECT_ACCESS','STANDARD', 'DESCRIPTION', sysdate, null);
    end loop;
    commit;
    end;
    I had first created the user JOCHIENG and assigned it the responsibility for Self service. So the script just assigns the responsibilities by copying from the one assgined to this user.
    Everything seems ok. However, when trying to log in as the new user, the login error: Login failed. Please verify your login information or contact the system administrator.
    is returned. But I can reset the password using the forms under Security > Define. Even with the correct password, the login doesn't go through.
    Any idea?
    dula

  • How to create a new attribute in OID and auto-populate it during sync from AD

    Hi,
          I'm new to OID and we are planning to set up AD to OID sync and we need to create an extra attribute in OID that we do not have currently in AD. We need to concat 4 attributes with "." in between and populate this new attribute.
    If anyone has done something like this, can you please give me the steps involved and/or any examples?
    Thank you

    I think you need to create a custom plugin to create the value of new attribute and populate it, may be post plugin in OID.
    Java Server Plug-in Developer's Reference

  • Using IMAQ create, set-up, acquire and windraw to save image without color map

    Hi,
    Attached is my VI (using labview 8.5) and am not sure where it is getting the color info from, but it saves the image as jpeg/bmp/tiff with colormap (confirmed by imread in matlab). Can someone help me save these images without colormap info.
    Thanks
    Attachments:
    HL Grab with two boards and SONY XC55_Images.vi ‏166 KB

    Hi Maverick269,
    I noticed that you posted this question over on the Machine Vision forums as well. That will definitely be a better place to get this question answered, so let's work on the issue over there :
    http://forums.ni.com/t5/Machine-Vision/Using-IMAQ-create-set-up-acquire-and-windraw-to-save-image/m-...
    In the future it helps us stay organized if we limit each issue to a single thread.
    Cheers,
    Andy C.
    Applications Engineer
    National Instruments 

Maybe you are looking for

  • Problem with back ground job

    Hello experts, I have one background job which generates a text file and place it in a FTP folder. When one user runs this job its working fine. But, When two users run <b>the same background job at same time,</b> then i get trouble with my output fi

  • How do you widen a column within a view

    Farm is SP 2010, upgraded from MOSS (and in some cases, pages upgraded from SP 2003 to MOSS years ago). The pages in question below are using the SP 2010 visual interface. I have a site admin who has been asked to widen a column within one of the All

  • Hacked again, going to new server

    Sorry if this is in the wrong forum, it seemed right at the time. Without going into any major details, our web/mail server has been hacked for the second time in 3 months and was being used to forward people to a PayPal phishing site. Anyway, I am g

  • Name of Syndicated XML file(MDM SS)

    Hi, Currently syndication server creates files with such names: "10002-10-1-04-01-09-10-33-11_090401-103314_000.xml". I Have three question:  1. How can I change names of syndicated files? 2. As I understand first part of the name "10002" shows numbe

  • Linux Design mode in Flex Builder?

    Is it available? thanks