ADF:Dynamic viewLink for self referential dynamic ViewObject jdev11.1.1.6.0

Hi, I'm using jdeveloper studio version 11.1.1.6.0, because of my requirement I am creating a View Object programatically in the Application Module since I will not know how many colums will I have until the User has done some selections... Hence I am generating a Read only Dynamic View Object on the fly, I am able to display this in a table in ADF and do dynamic binding as well...
Now the problem is that the data is actually hierarchical data, and I have constructed a parent and children atributes in the View Object to basically sort this view and build the hierarchy, I am trying to change the way this is displayed from a Table to a TreeTable in ADF... And for that I need to create a ViewLink... now I read how to do this programatically but never against the same View Object, I did found some examples on how to do this but against two different View Objects, but I want to use the same View Object which has been created on the fly (at run time)
I have been trying to do this using createViewLinkBetweenViewObjects by passing the same VO as master and detail (self referential View Link), but it fails as the documentation says with
InvalidParamException which says : (1) if master or detail is null (2) if master and detail represent the same view object (circular view link is disallowed)
The odd thing here is that you can do this declaratively
http://docs.oracle.com/cd/E14571_01/web.1111/b31974/bcquerying.htm#CHDDEFCE
meaning you can create a View Link to the same View Object if you have a previously defined View Object at design time... (not at run time) using Expression Language... so I am puzzled to understand why this cannot be done programatically...
1. How could this be done programatically?
This is the code I was trying:
    public static final String DYNAMIC_BOM_VO_INSTANCE = "DynamicBomVO";
    public void createSQLBasedDynamicBomViewObject(){
        //Define the View Object Instance name
        inputElement[] inputElementsVO;
        inputElementsVO=populateInputString();
        int numberOfItems = inputElementsVO.length;
        System.out.println("Inside VO creation");
        ViewObject vo = findViewObject(DYNAMIC_BOM_VO_INSTANCE);
        //Check if view object exist and remove it if it does
        if (vo!= null)
            vo.remove();
        //Create view definition
        ViewDefImpl dynamicBomViewDef = new ViewDefImpl("com.CST.DynamicBomView");
        //Define names and types of atributes of the View
        dynamicBomViewDef.addViewAttribute("EffectAssemblyId", "EFFECT_ASSEMBLY_ID", Integer.class);
        dynamicBomViewDef.addViewAttribute("EffectCompId", "EFFECT_COMP_ID", Integer.class);
        for(int i = 0; i < numberOfItems; i++){
            dynamicBomViewDef.addViewAttribute("RollupId"+(i+1), "ROLLUP_ID"+(i+1), Integer.class);
        dynamicBomViewDef.addViewAttribute("RollupId", "ROLLUP_ID", Integer.class);
        dynamicBomViewDef.addViewAttribute("BomLevel", "BOM_LEVEL", Integer.class);
        //Define the SQL for th eview object
        String    querytoUse = createSQLJoin(inputElementsVO);
        //Assign query to VO
        dynamicBomViewDef.setQuery(querytoUse);
        dynamicBomViewDef.setFullSql(true);
        dynamicBomViewDef.setBindingStyle(SQLBuilder.BINDING_STYLE_ORACLE_NAME);
        dynamicBomViewDef.resolveDefObject();
        //Create an instance of the dynamic view definition
        vo = createViewObject(DYNAMIC_BOM_VO_INSTANCE,dynamicBomViewDef);
        AttributeDef[] parentAttrs = new AttributeDef[] {vo.findAttributeDef("EffectAssemblyId")};
        AttributeDef[] childAttrs = new AttributeDef[] {vo.findAttributeDef("EffectCompId")};
        ViewLink v1 = createViewLinkBetweenViewObjects("AssemblyLink", "Children", vo, parentAttrs, vo, childAttrs, null);
    }I also tried creating a second instance of the same view object, and adding a view criteria but it failed saying that:
Definition EFFECT_ASSEMBLY_ID of type Attribute is not found in DynamicBomVO, I tried using
The code was added after createViewObject
         vo = createViewObject(DYNAMIC_BOM_VO_INSTANCE,dynamicBomViewDef);
         ViewCriteria vc = vo.createViewCriteria();
         ViewCriteriaRow vcr1 = vc.createViewCriteriaRow();
         vcr1.setAttribute("EFFECT_ASSEMBLY_ID", "=-1");
        vc.add(vcr1);
        vo.applyViewCriteria(vc);
        vo.executeQuery();When I used
         vcr1.setAttribute("EffectAssemblyId", "=-1"); I got
ORA-00904: "EFFECTASSEMBLYID": invalid identifier
Please let me know if you know how could this be achieved so that I can use a treeTable once that viewLink has been stabled and the hierarchy can be constructed.
Regards,
Ivan
Edited by: user756323 on Jan 8, 2013 2:58 PM
Edited by: user756323 on Jan 8, 2013 3:03 PM
Edited by: user756323 on Jan 8, 2013 3:07 PM

Hi, I'm using jdeveloper studio version 11.1.1.6.0, because of my requirement I am creating a View Object programatically in the Application Module since I will not know how many colums will I have until the User has done some selections... Hence I am generating a Read only Dynamic View Object on the fly, I am able to display this in a table in ADF and do dynamic binding as well...
Now the problem is that the data is actually hierarchical data, and I have constructed a parent and children atributes in the View Object to basically sort this view and build the hierarchy, I am trying to change the way this is displayed from a Table to a TreeTable in ADF... And for that I need to create a ViewLink... now I read how to do this programatically but never against the same View Object, I did found some examples on how to do this but against two different View Objects, but I want to use the same View Object which has been created on the fly (at run time)
I have been trying to do this using createViewLinkBetweenViewObjects by passing the same VO as master and detail (self referential View Link), but it fails as the documentation says with
InvalidParamException which says : (1) if master or detail is null (2) if master and detail represent the same view object (circular view link is disallowed)
The odd thing here is that you can do this declaratively
http://docs.oracle.com/cd/E14571_01/web.1111/b31974/bcquerying.htm#CHDDEFCE
meaning you can create a View Link to the same View Object if you have a previously defined View Object at design time... (not at run time) using Expression Language... so I am puzzled to understand why this cannot be done programatically...
1. How could this be done programatically?
This is the code I was trying:
    public static final String DYNAMIC_BOM_VO_INSTANCE = "DynamicBomVO";
    public void createSQLBasedDynamicBomViewObject(){
        //Define the View Object Instance name
        inputElement[] inputElementsVO;
        inputElementsVO=populateInputString();
        int numberOfItems = inputElementsVO.length;
        System.out.println("Inside VO creation");
        ViewObject vo = findViewObject(DYNAMIC_BOM_VO_INSTANCE);
        //Check if view object exist and remove it if it does
        if (vo!= null)
            vo.remove();
        //Create view definition
        ViewDefImpl dynamicBomViewDef = new ViewDefImpl("com.CST.DynamicBomView");
        //Define names and types of atributes of the View
        dynamicBomViewDef.addViewAttribute("EffectAssemblyId", "EFFECT_ASSEMBLY_ID", Integer.class);
        dynamicBomViewDef.addViewAttribute("EffectCompId", "EFFECT_COMP_ID", Integer.class);
        for(int i = 0; i < numberOfItems; i++){
            dynamicBomViewDef.addViewAttribute("RollupId"+(i+1), "ROLLUP_ID"+(i+1), Integer.class);
        dynamicBomViewDef.addViewAttribute("RollupId", "ROLLUP_ID", Integer.class);
        dynamicBomViewDef.addViewAttribute("BomLevel", "BOM_LEVEL", Integer.class);
        //Define the SQL for th eview object
        String    querytoUse = createSQLJoin(inputElementsVO);
        //Assign query to VO
        dynamicBomViewDef.setQuery(querytoUse);
        dynamicBomViewDef.setFullSql(true);
        dynamicBomViewDef.setBindingStyle(SQLBuilder.BINDING_STYLE_ORACLE_NAME);
        dynamicBomViewDef.resolveDefObject();
        //Create an instance of the dynamic view definition
        vo = createViewObject(DYNAMIC_BOM_VO_INSTANCE,dynamicBomViewDef);
        AttributeDef[] parentAttrs = new AttributeDef[] {vo.findAttributeDef("EffectAssemblyId")};
        AttributeDef[] childAttrs = new AttributeDef[] {vo.findAttributeDef("EffectCompId")};
        ViewLink v1 = createViewLinkBetweenViewObjects("AssemblyLink", "Children", vo, parentAttrs, vo, childAttrs, null);
    }I also tried creating a second instance of the same view object, and adding a view criteria but it failed saying that:
Definition EFFECT_ASSEMBLY_ID of type Attribute is not found in DynamicBomVO, I tried using
The code was added after createViewObject
         vo = createViewObject(DYNAMIC_BOM_VO_INSTANCE,dynamicBomViewDef);
         ViewCriteria vc = vo.createViewCriteria();
         ViewCriteriaRow vcr1 = vc.createViewCriteriaRow();
         vcr1.setAttribute("EFFECT_ASSEMBLY_ID", "=-1");
        vc.add(vcr1);
        vo.applyViewCriteria(vc);
        vo.executeQuery();When I used
         vcr1.setAttribute("EffectAssemblyId", "=-1"); I got
ORA-00904: "EFFECTASSEMBLYID": invalid identifier
Please let me know if you know how could this be achieved so that I can use a treeTable once that viewLink has been stabled and the hierarchy can be constructed.
Regards,
Ivan
Edited by: user756323 on Jan 8, 2013 2:58 PM
Edited by: user756323 on Jan 8, 2013 3:03 PM
Edited by: user756323 on Jan 8, 2013 3:07 PM

Similar Messages

  • ADF dynamic ViewObject based on query. how to get attributes?

    hi.
    i have an read-only view object based on query like this:
    SELECT :func(:paramm) as EMP_SAL from dual
    and set :func & :paramm parameter by vo.setNamedWhereClauseParam(..) function.
    but i couldn`t get EMP_SAL attribute after executeQuery command.
    in another case i would set new whole Query by vo.setQuery(..) but the problem exists.
    please help me. how to get attribute in such vo objects!
    thanks!
    Morena!

    thanks to Quick reply!
    i seek into code and found a uninitialized Parameter in view object. error has gone after correct the problem!
    and now could get the attribute value.
    thanks so much!
    /\/\ o r e n a!

  • ADF Faces, BC and JDeveloper 10g: Rendering Dynamic ViewObjects at runtime

    I am trying to make a 10g version of Shay's example (http://www.youtube.com/watch?v=TwIKt7e4vEw).
    JSP code:
    +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"+
    +"http://www.w3.org/TR/html4/loose.dtd">+
    +<%@ page contentType="text/html;charset=windows-1252"%>+
    +<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>+
    +<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>+
    +<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>+
    +<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>+
    +<f:view>+
    +<afh:html>+
    +<afh:head title="runTest">+
    +<meta http-equiv="Content-Type"+
    content="text/html; charset=windows-1252"/>
    +</afh:head>+
    +<afh:body>+
    +<af:messages/>+
    +<af:form>+
    +<af:table value="#{bindings.DynamicVo.collectionModel}" var="row"+
    +rows="#{bindings.DynamicVo.rangeSize}"+
    +first="#{bindings.DynamicVo.rangeStart}"+
    +emptyText="#{bindings.DynamicVo.viewable ? \'No rows yet.\' : \'Access Denied.\'}"+
    +partialTriggers="make">+
    +<af:column sortProperty="Dummy" sortable="false"+
    +headerText="#{bindings.DynamicVo.labels.Dummy}">+
    +<af:outputText value="#{row.Dummy}"/>+
    +</af:column>+
    +</af:table>+
    +<af:commandButton actionListener="#{bindings.makeVo.execute}"+
    +text="makeVo" disabled="#{!bindings.makeVo.enabled}"+
    +id="make"/>+
    +</af:form>+
    +</afh:body>+
    +</afh:html>+
    +</f:view>+
    *PageDef:*
    +<?xml version="1.0" encoding="UTF-8" ?>+
    +<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"+
    +version="10.1.3.42.70" id="runTestPageDef"+
    +Package="view.pageDefs">+
    +<parameters/>+
    +<executables>+
    +<iterator id="DynamicVoIterator" RangeSize="10" Binds="DynamicVo"+
    +DataControl="AppModuleDataControl"/>+
    +</executables>+
    +<bindings>+
    +<table id="DynamicVo" IterBinding="DynamicVoIterator">+
    +<AttrNames>+
    +<Item Value="Dummy"/>+
    +</AttrNames>+
    +</table>+
    +<methodAction id="makeVo" InstanceName="AppModuleDataControl.dataProvider"+
    +DataControl="AppModuleDataControl" MethodName="makeVo"+
    +RequiresUpdateModel="true" Action="999"+
    +IsViewObjectMethod="false"/>+
    +</bindings>+
    +</pageDefinition>+
    *Application Module Implementation:*
    +package model;+
    +import model.common.AppModule;+
    +import oracle.jbo.ViewObject;+
    +import oracle.jbo.server.ApplicationModuleImpl;+
    +// ---------------------------------------------------------------------+
    +// --- File generated by Oracle ADF Business Components Design Time.+
    +// --- Custom code may be added to this class.+
    +// --- Warning: Do not modify method signatures of generated methods.+
    +// ---------------------------------------------------------------------+
    +public class AppModuleImpl extends ApplicationModuleImpl implements AppModule {+
    +/**This is the default constructor (do not remove)+
    +*/+
    +public AppModuleImpl() {+
    +}+
    +public void makeVo(){+
    +System.out.println("make vo");+
    +ViewObject vo = this.findViewObject("DynamicVO");+
    +if(vo==null){+
    +System.out.println("vo is null");+
    +}+
    +vo.remove();+
    +System.out.println("Vo removed");+
    +vo = createViewObjectFromQueryStmt("DynamicVo", "SELECT deptno from dept" );+
    +System.out.println("Vo created");+
    +vo.executeQuery();+
    +System.out.println("Vo estimated row count"+vo.getEstimatedRowCount());+
    +}+
    +/**Container's getter for DynamicVo+
    +*/+
    +public DynamicVoImpl getDynamicVo() {+
    +return (DynamicVoImpl)findViewObject("DynamicVo");+
    +}+
    +/**Sample main for debugging Business Components code using the tester.+
    +*/+
    +public static void main(String[] args) {+
    +launchTester("model", /* package name */+
    +"AppModuleLocal" /* Configuration Name */);+
    +}+
    +}+
    *Runtime before clicking button*
    http://i108.photobucket.com/albums/n23/zeoneozero/1.jpg
    *Runtime after clicking button*
    http://i108.photobucket.com/albums/n23/zeoneozero/2.jpg
    *Console*
    +1/11/09 11:26:44 make vo+
    +11/11/09 11:26:44 Vo removed+
    +11/11/09 11:26:44 Vo created+
    +11/11/09 11:26:44 Vo estimated row count7+
    *Error:*
    JBO-25003: Object DynamicVo of type View Object not found
    JBO-25003: Object DynamicVo of type View Object not found
    Will this work with 10g? If so, has anyone tried and succeeded? Any advice is appreciated.
    thanks,
    wes

    the example is in 11g and makes use adf dynamic forms.
    I don´t know if you can make this in 10g

  • Capture Close icon event for ADF dynamic UI shell

    I am using Oracle ADF dynamic TAB UI shell template to build
    the application.
    I have two option to close Employee TAB on right side , one
    is “Remove Tab” highlighted in Navigation pane and second is close icon in
    right most corner of tab page.
    Now while closing the tab page I want to invoke one method
    or task. In Remove Tab  I am able to do this by managed Bean (writing the
    method into bean and invoke that method in Command link of Navigation pane).
    But here the challenge is to invoke same method while
    closing the Tab by close icon. Therefore I want to capture the event and call
    this method.
    Please let me know if you can share any idea on this.
    When clicked on Remove tab I am getting popup message
    successfully while changing the name SMITHR from RITESH.

    Hi,
    In this thread you have some ideas
    UI Shell - how to allow ADF Library Bounded Task Flow to close itself

  • Help Using Navbar Find mode with dynamic viewobjects,

    What needs to be added to my coded to make the JUNavigatorBar QBE function in the "ADF Swing: Binding dynamically created ViewObjects to ADF Swing" example posted by Frank Nimphius on March 07, 2006. My table loads from the dynamic viewobject and the Navbar moves the cursor over each row in the table but when I go into Find mode ,the table row for entering the search criteria is not editable. I must be missing something basic here, but I am at a lost for the solution.

    Ok, I found this solution to make the dynamic view objects example 'searchable' from the NavigatorBar 'Find' button.
    I had to extend and replace the JUTableBinding class when creating a TableBinding which is then set as the model for my dynamic JTable using .setModel(); The rest of the example code works without modification.
    class MyJUTableBinding extends JUTableBinding{
    public MyJUTableBinding(javax.swing.JTable control,
    JUIteratorBinding iterBinding,
    java.lang.String[] attrNames){
    super(control, iterBinding,attrNames);
    public boolean isCellEditable(int row, int col) {
    return true;
    }

  • How to show the filter and sort capabilities in adf dynamic table

    hi
    how to show the filter and sort capabilities in adf dynamic table..
    Pls help me

    Hi
    Click on a colum in your table and go to the properties pallet
    make true the sortable property then you can sort the table according to that column
    Thanx
    Padma

  • Executing Dynamic ViewObject affects the actual Viewbject

    Hi all,
    Iam Using Jdeveloper version 11.1.2.0.0.
    I have created the Dynamic ViewObject (eg:- dynamicVo) during runtime based on the definitions of the ViewObject(EmployeesVO) which has created during design time.
    But when iam executing the Dynamic ViewObject(dynamicVo), the rows are getting displayed both in the DynamicVO as well as EmployeesVO.
    I don't want the EmployeeVO get disturbed when iam executing the DynamicVO .
    May i know the reason why it is happening.
    reg,
    bakkia.

    John,
    Dynamic ViewObject means viewObject which does not created during design time.Rather viewObject will created during runtime.
    This is the Code on how i created Dynamic ViewObject.
    String dynamicVoName = null;
    ViewObject baseVO =
    findViewObject("EmployeeVO");
    CustomViewObjectImpl customVOImpl = (CustomViewObjectImpl )baseVO;
    ViewDefImpl newViewDef = ViewDefImpl.findDefObject(baseVO.getDefFullName());
    newViewDef.resolveDefObject();
    newViewDef.registerDefObject();
    dynamicVoName = "DynamicVO";
    ViewObject internalDynamicVO =
    baseAm.findViewObject(dynamicVoName);
    if (internalDynamicVO != null) {
    internalDynamicVO.remove();
    baseAm.createViewObjectForDef(dynamicVoName, newViewDef);
    ViewObject dynamicVO = baseAm.findViewObject(dynamicVoName);
    dVo = (CustomViewObjectImpl )dynamicVO;
    TuxedoParams tp = new TuxedoParams();
    dynamicVO.ensureVariableManager().setVariableValue("APP_ID",2252460);
    dynamicVO.ensureVariableManager().setVariableValue("CWIN_NUM",0);
    dynamicVO.ensureVariableManager().setVariableValue("HH_ID", 0);
    dynamicVO.executeQuery();
    can i have the answer....
    reg,
    bakkia.
    Edited by: Bakkia on Oct 13, 2011 11:59 PM

  • Adf bc jar for base entity classes and extending them existing  project

    Hi,
    I am using jdev 11.1.1.0 and have created a base workspace/project and adf jar for my base entity classes.
    1. I can consume this base adf bc jar in a separate new consuming workspace and create VO based on base bc classes or create new EOs that extend base bc entity classes.
    2. Furthermore, for an existing consuming project that earlier included src/ of base entity (BC components), i can remove the dependency on bc source and bring in this new adf jar and everything including the view controller and the service/datacontrol works fine.
    The issue i am running into is as follows.
    - In the existing project (#2) above i try to create a couple of entities based on entities in my base jar; associations are automatically brought in. Note i am not overriding any attributes. My intent here is to generate .java and implement some code.
    - I then try to make my existing VOs based on the newly extended entity (VO overview->Entity Objects-> Shuttle NewEntity from Available to Selected)
    - I then try to remove the old EO from selected under VO overview->Entity Objects->Shuttle OldEntity from Selected back
    - I get a warning dialog box that says something to the effect that some viewlinks are dependent on these old EOs in this consuming project.
    - I tried to laboriously analyzed dependencies and it this dialog box does not make any sense as I have already extended EOs and the tooling should be able to let me use these
    My questions
    - Why I am not able to remove old entities from VO dependencies
    - Is it ok to leave the old EOs in "Selected" along with the newly extended EO ? What are the implications for this?
    - I also thought about extending base associations, but did not go anywhere.
    In general, I am ok with consuming an ADF BC jar that has entities etc. but not clear about removing dependencies of base EOs on VOs when entities are extended and consumed in a pre-existing project that used base entities.
    I can send a project if any PM is willing to take a look at it.
    Thanks,
    ps:
    I have already gone over the following info
    http://technology.amis.nl/blog/215/organization-of-bc4j-domain-eo-and-business-vo-package
    .. wants to create an enterprise data model in BC4J, reflecting the Enterprise Data Model set up in the RDBMS. All (or at least most) business rules will be implemented in the Middle Tier – to take the load of the database and also allow developers not comfortable with PL/SQL to define and maintain the business rules. It is clear that this means that all applications that need to access – and manipulate – the database, need to go through the BC4J foundation layer. Martijn wants to define the Entity Objects – and their business rules – only once and share that definition between different projects. Each projects can create its own ViewObjects on top of these shared Enterprise Entity Objects.
    http://radio-weblogs.com/0118231/2005/09/29.html
    I am currently working on a project for a partner where we will be using ADF BC as our model layer for a large application. In order to keep the footprint of each application module down to a reasonable size, we are intending to create a number of separate 'root' application modules for each functional area of the application. Within, these 'root' application modules we will then use nested application modules to further partition the application. All of the application modules will be accessing the same datasource and will need access to the same database objects.
    In order to separate our code between the development team and into function areas, our initial thoughts were that we would create an ADF BC model project containing Entity Objects for all of the database tables e.t.c. as these are common amongst all functional areas. We have configured all of the EOs for validation rules, defaulting values and extending doDML() as appropriate. Happy at this stage we then created a simple .jar file to deploy all of the definitions. Upon creating a new ADF BC project for each functional area we added the jar file as a library import into the new project. However when we the tried to create some new View Objects via the JDev Wizard we were unable to see the imported Entity Objects.
    Is the only way to share Entity Object definitions between different ADF BC projects to manually copy the source definition files into the new projects src directory? Since this would mean multiple copies of the same components, it could prove to be a maintenance nightmare.Is there a way of doing it without creating multiple copies of the same object definitions?
    The developer is spot on in their ideas of layering and reuse, and even has created a library for their reusable entities. This last step is not something everyone thinks to do. The missing step is known as "importing" components, so with that one extra bit of knowledge under his belt, he should be able to do exactly what he envisions. My little article called Difference Between Adding and Importing Business Components tries to explain the difference and gives the menu options to choose to perform the importing.
    Difference between adding and importing BC4J
    http://radio-weblogs.com/0118231/stories/2005/08/11/differenceBetweenAddingAndImportingBusinessComponents.html
    Working with Libraries of Reusable Business Components
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b25947/bcadvgen.htm#CHEFECGD

    Hi,
    since you followed the OC4J developer guide I think this question might be better handled there as well
    OC4J
    So in case you don't get an answer here on the forum, try it on the OC4J forum
    Frank

  • Self-referential attribute: how to set the value if it is NULL/unknown

    Hi,
    I am getting the following error while doing Logical Loop Check:
    self-referential attribute: b5@Rules_test_doc
    number of rules in this loop: 3
    number of attributes in loop chain: 3
    number of relationships in loop chain: 0
    The rule engine will be seeded with information from a database.
    My requirement is to set a value to the attribute (X) = "ABC" if (X) is null and (Y) is 0
    ( in 10.4 NULL is represented by unknown)

    You would have to have an intermediate field here to achieve this. It definitely is a logical loop in OPA terms, since you are trying to use X to prove X.
    To solve it you would need to do:
    attribute (X) = "ABC" if (X_input) is null and (Y) is 0
    Or for a "real" example:
    the person's processing office:
    "london" | the person's provided procesing office is currently unknown
    the person's provided procesing office | otherwise
    So if no processing office has been provided by the database, (i.e. "null") it effectively defaults to London.
    You could then use "the person's processing office" as normal throughout the rules, confident that it should never be unknown.
    Cheers,
    Ben
    Edited by: Ben Rogers on Jan 8, 2013 1:28 PM

  • Firefox fails to submit self-referential form unless I wait 20-30 seconds.

    EDIT: (The solution ended up being, against all expectation, that everything was actually perfectly fine. It was the -webhost- that was messing it up. Note to anyone who comes across this: GoDaddy is terrible for hosting. The same files, uploaded to a real webhost like SourceForge, work perfectly well. What GoDaddy can possibly be failing at, I can't even imagine.)
    I am creating a self-referential form (POST method) in PHP to lead a user through the process of a complicated, branching calculation. I load the PHP in Firefox 3.6 and it comes up fine, and I do the first submission and that works fine. But if I do another submission quickly (within a few seconds), instead of working, it submits to itself with no fields so I get the front page back again, and no matter what I do, it keeps submitting with no fields. If I then reload the original PHP file not via POST and redo the first submission, the first submission works again and the second fails again.
    However, if I do the first submission, and then sit there doing absolutely nothing for maybe 20-30 seconds, and then do the second submission, it works perfectly fine. If I again wait, the third submission works; otherwise, it submits like the first with no fields and messes up.
    I tried this with and without HTTP headers to prevent caching, without effect.
    Any ideas what's going on?
    Edit: (And, to be clear, if I change POST method to GET method, it works flawlessly every time. But having the data appear in the URL is confusing and problematic for users, as well as severely complicating the process of bookmarking if the user decides in the middle of the calculation to make a bookmark. The bookmark should be to the beginning of the calculation, not the middle, because the calculation is time-sensitive so old data are useless and should not be re-produced.)

    See also:
    * http://forums.mozillazine.org/viewtopic.php?f=25&t=1979291 Firefox fails submitting successive forms if done quickly. • mozillaZine Forums

  • OIM: Error while deploying Custom Approval Process for Self-Register

    While deploying the Custom Approval Process for Self-Register, i am getting the following error in scac.log file
    Nov 16, 2011 2:48:58 PM oracle.fabric.common.wsdl.SchemaManager isIncrementalBuildSupported
    INFO: XMLSchema incremental build enabled.
    Nov 16, 2011 2:48:58 PM com.collaxa.cube.CubeLogger info
    INFO: validating "ApprovalProcess.bpel" ...
    oracle.jrf.UnknownPlatformException: JRF is unable to determine the current application server platform.
         at oracle.jrf.ServerPlatformSupportFactory.getInstance(ServerPlatformSupportFactory.java:79)
         at oracle.integration.platform.blocks.WLSPlatformConfigurationProvider.<clinit>(WLSPlatformConfigurationProvider.java:44)
         at oracle.integration.platform.blocks.FabricConfigManager.<clinit>(FabricConfigManager.java:155)
         at oracle.integration.platform.blocks.xpath.FabricXPathFunctionResolver.loadXpathFunctions(FabricXPathFunctionResolver.java:271)
         at oracle.integration.platform.blocks.xpath.FabricXPathFunctionResolver.loadXPathConfigFile(FabricXPathFunctionResolver.java:153)
         at oracle.integration.platform.blocks.xpath.FabricXPathFunctionResolver.init(FabricXPathFunctionResolver.java:51)
         at com.collaxa.cube.xml.xpath.BPELXPathFunctionNameResolver.loadFabricXpathFunctions(BPELXPathFunctionNameResolver.java:57)
         at com.collaxa.cube.xml.xpath.BPELXPathFunctionNameResolver.<init>(BPELXPathFunctionNameResolver.java:48)
         at com.collaxa.cube.xml.xpath.BPELXPathFunctionNameResolver.<clinit>(BPELXPathFunctionNameResolver.java:44)
         at com.collaxa.cube.lang.compiler.bpel.XPathExprValidatorVisitor.<init>(XPathExprValidatorVisitor.java:122)
         at com.collaxa.cube.lang.compiler.bpel.AssignValidator.<init>(AssignValidator.java:89)
         at com.collaxa.cube.lang.compiler.bpel.BpelParser.<init>(BpelParser.java:452)
         at com.collaxa.cube.lang.compiler.bpel.BPELValidator.validate(BPELValidator.java:60)
         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:1117)
         at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:500)
         at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
         at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Nov 16, 2011 2:49:00 PM CubeProcessGenerator compile
    WARNING: classpath is: D:\JDev11g\Middleware\jdeveloper\jdev\extensions\oracle.sca.modeler.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar;D:\JDev11g\Middleware\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.mediator_11.1.1\mediator_client.jar;D:\JDev11g\Middleware\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar;D:\OIMPS1\Middleware\oracle_common\modules\oracle.jps_11.1.1\jps-manifest.jar;;D:\OIMPS1\Middleware\Oracle_IDM1\server\workflows\new-workflow\process-template\SelfRegistrationApprovalApp\SelfRegistrationApproval\SCA-INF\classes;D:\OIMPS1\Middleware\Oracle_IDM1\server\workflows\new-workflow\process-template\SelfRegistrationApprovalApp\SelfRegistrationApproval\SCA-INF\classes;D:\OIMPS1\Middleware\Oracle_IDM1\server\workflows\new-workflow\process-template\SelfRegistrationApprovalApp\SelfRegistrationApproval\SCA-INF\gen-classes;D:\OIMPS1\Middleware\Oracle_IDM1\server\workflows\new-workflow\process-template\SelfRegistrationApprovalApp\SelfRegistrationApproval\SCA-INF\lib\oimclient.jar;D:\JDev11g\Middleware\oracle_common\modules\commonj.sdo_2.1.0.jar;D:\JDev11g\Middleware\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar;D:\JDev11g\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\bpel1-1-xbeans.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-common.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\bpel_coherence_config.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-exts.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\thirdparty.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\bpm-analytics.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-thirdparty.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\wsif-binding.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel-validator.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\monitor-rt-xbean.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\oracle.soa.bpmn.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\user-patch.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.thirdparty.jar;D:\JDev11g\Middleware\jdeveloper\uddi\lib\oracle.soa.uddi.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\bpm-infra.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\testfwk-xbeans.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-ext.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\soa-infra-scheduler.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\xmlunit-1.1.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\soa-infra-tools.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\soa-xpath-exts.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\oracle-soa-client-api.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.wls.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-client.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime-ext-was.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime-ext-wls.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\oracle.soa.fabric.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.workflow_11.1.1\bpm-services.jar;D:\JDev11g\Middleware\jdeveloper\soa\modules\oracle.soa.ext_11.1.1\classes
    In scac_out.xml file following is the error message
    <Fault>
    <severity>error</severity>
    <loc>/ns:composite</loc>
    <line/>
    <col/>
    <file/>
    <msg>
    <![CDATA[SCAC-50012]]>
    </msg>
    </Fault>

    Hi,
    I have run into the same problem with SOA 11.1.1.5 version. In my case after fixing the following two errors it seems to work fine.
    If you have followed the guide, there must be some errors:
    First the java code if copied then contains an extra enter value:
    Instead of:
    "try {
    System.out.println("Prototype for invoking an OIM API from a SOA Composite");
    System.out.println("RTM Usecase: Self Registration Approval by Organization
    Administrator");"
    Use the following:
    "try {
    System.out.println("Prototype for invoking an OIM API from a SOA Composite");
    System.out.println("RTM Usecase: Self Registration Approval by Organization Administrator");"
    The other error is that you should not use <BEAHOME>/oracle_common/modules/oracle.jps_11.1.1/jps-manifest.jar, but the <BEAHOME>/oracle_common/modules/oracle.jps_11.1.1/jps-api.jar in jdeveloper. After these the deployment to the application server works fine for me.

  • Auto approval for self registration request in OIM 11G R2

    Hi all,
    We have a requirement where we want end users to be able to self-register without needing any sort of approval. We are using OIM 11G R2 with the latest patchset.
    The way to do it in 11G R1 is explained in the following document:
    [http://docs.oracle.com/cd/E21764_01/doc.1111/e14316/unauth_selfservice.htm#BABFEIBF]
    But now that R2 does not have any request templates, we are not sure how to do this. Any help will be greatly appreciated. Thanks for your time.
    -sandeepc

    refer this.
    Configuring Auto-Approval for Self-Registration - Fails due to Organisation

  • I am trying to use my IPAD to video students in my conducting class, then email them the video for self evaluation.  However, many of the video clips are too long to email.  Is there anyway to compress the video clips and still email them so they can view

    I am trying to use my IPAD to video students in my conducting class, then email them the video for self evaluation.  However, many of the clips are too long to send.  Is there a way I can compress the clips and still send them via email so they can open and them using Quicken?
    Muzakmn

    It depends on the clips' content, their current format, and how much you would need to compress them, but in most cases and with most email systems, it's difficult to impossible to compress a clip enough to be able to get it through the attachment size limits of most email providers and still have the video be comprehensible. You'll probably need to find a web site or other method where you could post the videos for download by the students.
    You can try compression and trimming, though, and see if you can get the video small enough to email. An attachment often has to be 3MB or less to go through, though it depends entirely on the email systems on both ends. If you look to the right under "more like this" you'll find similar threads on the subject.
    Regards.

  • What  is self referential integrity? How does it effect the Database?

    Hello Gurus,
    What is self referential integrity?
    How could it is achieved and implemented?
    and what is effect on the Database?
    Thanks in advance.
    ~ SubbaReddy .M

    Self referential integrity simple means that the parent end of a foreign key constraint is in the same table as the child end. Consider the SCOTT.EMP table. Every manager is also an employee. Hence there is a foreign key between the MGR column and the EMPNO column.
    rgds, APC

  • SAP WM Documentation for self study

    Dear All,
    I am SAP MM consultant & I am interested to learn SAP WM.
    Can you please help/guide me to get SAP WM documentation for self study.
    I appreciate your advise to learn SAPWM in better way. Thanks in advance.
    Regards
    BSA

    Dear Basavaraj,
       You can Download to PDF by clicking onto Download option right hand side top of the screen.You can download all the units and read it when you are offline. It will be very usefull.
    Warehouse Structure in the Warehouse Management System - Warehouse Management System (WMS) - SAP Library
    Regards,
    Irfan

Maybe you are looking for

  • What is the correct way to reboot and do I need to...

    New to forum & BT, hello! Nothing since 10.30, I'm in London. Has anyones BT Vision started to work again?!?

  • Help passing table name as parameter to a procedure

    Hello, i'm trying to write a procedure that takes a table name as input and uses a cursor to select a column,count(1) from the passed table to the cursor. The procedure i've come up with is as follows, CREATE OR REPLACE PROCEDURE excur(     p_tbl use

  • CAN input buffer overflow due to RTSI frame?

    Hello, I'm reading a continuous stream of CAN-messages with a CAN-Object. I'm creating occurences and reading multiple samples in a while loop. A second (asynchronuous) task generates a RTSI trigger at specified intervals. I use this trigger to write

  • How to tune this Bex report

    The report show display the unique units price for the same cust # and material Example: Sales Doc #     Item #     Cust #     SBU     SPL      Material      Unit price 100     10     1763     10     10200     CX00-23343     1.0 101     10     1763  

  • Airport connecting but no internet connection

    Hi there I've been searching the forums and I have seen that this is a common issue. My airport connects to my router with a strong signal, however when I go to use any of my three browsers, not a single one is capable of connecting to the internet.