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

Similar Messages

  • How to set the value of something in a component from the main application?

    Hi,
    Maybe I've been working on this too long, but I can't figure
    out how to set the value of the text property of a text input field
    in a component from my main application in an mx:Script block. I
    have a component called Login in the components folder, and I need
    to set the text value of empNum. In my mxml declaration at that the
    top, I've declared these components as xmlns:c="components.*" So
    logically, the property I'm trying to set is c.Login.empNum.text. I
    can't figure out the correct syntax to get this to work, and I've
    tried everything I can think of. Does anyone have any suggestions?
    I'm thinking this should be an easy one, and I'm just missing
    something.
    Thanks!
    Holli

    Did you try giving it an id ?
    <c:MyLogin id="loginScreen" /c>
    So later you can do loginScreen .empNum.text = "my text"
    Laurent,

  • How to set the value of process variables/payload using a managed bean?

    Hello,
    Someone can give me an example about how to set the values of a process payload in a managed bean?
    thank you!

    Try this:
    jsf page:
    <af:selectOneChoice label="Select Suburb"
    requiredMessageDetail="Select a suburb"
    valueChangeListener="#{selectOneChoiceBean.onValueChanged}"
    validator="#{selectOneChoiceBean.validate}"
    unselectedLabel="None" autoSubmit="true"
    binding="#{selectOneChoiceBean.selectOneChoice}"
    value="#{selectOneChoiceBean.value}">
    <f:selectItems value="#{selectOneChoiceBean.selectionList}"/>
    </af:selectOneChoice>
    backing bean:
    public class SelectChoiceBean {
    private List<SelectItem> selectionList;
    private String value = "B";
    private RichSelectOneChoice selectOneChoice;
    public SelectChoiceBean() {
    initSelectionList();
    public void setSelectionList(List<SelectItem> selectionList) {
    this.selectionList = selectionList;
    public List<SelectItem> getSelectionList() {
    return selectionList;
    public void onValueChanged(ValueChangeEvent valueChangeEvent) {
    System.out.println(valueChangeEvent.getNewValue());
    // Add event code here...
    public void validate(FacesContext facesContext, UIComponent uIComponent,
    Object object) {
    // Add event code here...
    private void initSelectionList() {
    selectionList = new ArrayList<SelectItem>();
    selectionList.add(new SelectItem("A", "A label"));
    selectionList.add(new SelectItem("B", "B label"));
    selectionList.add(new SelectItem("C", "C label"));
    public void setValue(String value) {
    this.value = value;
    public String getValue() {
    return value;
    public void setSelectOneChoice(RichSelectOneChoice selectOneChoice) {
    this.selectOneChoice = selectOneChoice;
    public RichSelectOneChoice getSelectOneChoice() {
    return selectOneChoice;
    }

  • How to set the value in SelectOneChoice

    Hi,
    I need an help....
    can anyone please tell me how to set the value in SelectOneChoice.
    I want to set the value at index 3
    i am trying selectOneChoice1.setvalue(new Integer(3)); but it is throwing an NullPointerException.
    Thanks,
    Neha

    Hi,
    is it ADF bound? If so then you set the default value to the list binding in the PageDef file. The value of the component must be bound to a method expression, which is why you see an exception. However, I think we need more information
    Frank

  • HOW to set the value attribute of FORM INPUT data to a variable in a JSP

    eg. Registration.jsp
    The data is accessed from an hidden field called course
    for example, if I have "Java programming" in the field course, and I use
    an expression to access the value from the hidden field.
    **My problem is that the data gets truncated to "Java" , I need "Java Programming"to display. The code looks like this
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <INPUT TYPE="text" SIZE=12 NAME="course"
    VALUE=<%=getParameter("course") %>
    IS there ANY OTHER WAY to set the value of VALUE to a variable?

    Instead of value=<%=request.getParameter("course")%>
    Use double codes
    value="<%=request.getParameter("course")%>"

  • How to set the value of a variable in a cluster in LabVIEW from C#?

    Hi guys, I'm working on a small c# program, which using the interface provided by LabVIEW.  And I know that, using lv.SetControlValue(name, value) can set a variable just on the front panel. But in my case, there're several clusters on the front panel. So it confused me how to set the variables in these clusters. For example there's a cluster named clusterA, and a variable in it named valueA, I've tried something like this:
    lv.SetControlValue("clusterA.valueA",1);
    but it totally not work. Anyone has some experience about this stuff? Thanks a lot!!
    Solved!
    Go to Solution.

    Hey guys, thanks a lot for all your reply. I just find a simply way to solve this porblem. For example, there a cluster named "ClusterA", and there are only two control values in it, which are: an int value named "IntA" (default value IntA = 10)and a  string value named "StringA" (default value StringA = "abc"). In C# if you invoke the method:
    var clusterA = (Array) vi.GetControlValue("ClusterA");
    you will get an Array looks like: clusterA = {10, "abc"}; Then if you want to change IntA to 123, you just need to do:
    clusterA.SetValue(123, 0); // 123 is the value, 0 is the index of IntA in the array clusterA, after this clusterA = {123, "abc"}
    After this, you just need to give the array back to LabVIEW by using:
    vi.SetControlValue("ClusterA", clusterA);
    and now see the panel in you LabVIEW, the IntA is changed.

  • How to set the value for Power Cost in SCCM reports in Euro's?

    Hello,
    I have found out how to change the value of the 'cost' of the KWh for these reports (reporting) . But ther original settings where displayed and set in USD($) with some other values. I have of course changed the USD to EUR (€) in my case, but my question
    is: how do i know what I have to fill in in the field : costOfKwh, according my manager for my organisation it is in euro's 5,9 euroct/Kwh
    Do I have to fill in 5,9 or 0,59 or 0,059 ???
    Then also ther are some other values set in the original reports, like :
    KwhConsumptionDesktopComputerOn value = 0,07
    KwhConsumptionLaptopComputerOn  value = 0,02
    KwhConsumptionDesktopMonitorOn    value = 0,03
    Do i have to leave this settings ?

    Yes, I know this is an old post, I’m just trying to clean them up.
    The default of 0.09 is 9 cents/ KwH so  I’m assume that 5.9 cent (euro) so that you bet 0.059
    BTW if you have edit the report to change $ to € then you can also set eh default value to whatever the current power cost is too.
    http://www.enhansoft.com/

  • How to set the Value in Dropdownbyindex

    Hi Experts,
    I am New to Webdynpro-ABAP.
    I have one Dropdownbyindex field. I need to set the value from BAPI. how to set that values in Dropdown..
             I need Basic step-by-step procedure.
    Regards,
    P.Manivannan

    Hi,
    1. First import the BAPI in to WD component using create->service call.
    2.The BAPI import, export and Table parameters will be set in to the Component Controller context.Then drag this BAPI node to your view.
    3.In the 'texts' property of DDbyindex bind the BAPI output node which will be the Table parameter of the BAPI.It could be under CHANGING node.
    4.In WDDOINIT method just click the code wizard and enter the method name which you will give when importing the BAPI.Automatically the values from the BAPI will be loaded into your Dropdown when you run the application.
    Regards,
    Dinesh

  • How to set the value in the xml node.

    Hi
    I am having the application PDF which can be submitted by user using the button. while submitting 
    i am using below code to set the value in the xml node.
       xfa.data.assignnode("employee.id","123",0):
    So its generating the xml like below.
    <employee>.
    <id>123</id>.
    </name>
    </employee>
    Now i need to generate the xml like  below.
    <employee id= "123" >
      </Name>
    </employee>
    So how to set/create the id node like above?
    Advance Thanks.
    Regards,
    Dhiyane

    Hi Dhiyane,
    You will have to set the contains property if the id node to "metaData", that is;
    xfa.data.assignNode("employee.id","123",0);
    xfa.data.employee.id.contains = "metaData";
    Very clumsy if you have a number of them, in which case you might want to look at using E4X.
    Good luck
    Bruce

  • How to set the value to non enabled UDF fields

    Dear All,
    I created a UDF at titile level of PO and that UDF item always disabled (i.e oItem.Enabled=false). Now how can set a value through coding.
    I wrote like this:
    oForm = SBO_Application.Forms.GetFormByTypeAndCount(-142, 1);
                                oItem = oForm.Items.Item("U_Poap");
                                if (oItem.Enabled == false) { oItem.Enabled = true; }
                                oEdit = ((SAPbouiCOM.EditText)(oItem.Specific));
                                oEdit.Value = "1";
                                oItem.Enabled = false; 
    But system throws an error at : oItem.Enabled=true statement.
    How to solve issue.
    Thanks in advance
    Suresh Yerra

    Hi,
    You can set the values using datasource object
    oDBs_Head = objForm.DataSources.DBDataSources.Item("@TableName")
    oDBs_Head.SetValue("U_FieldName", 0, "Value")
    regards:
    SANDY
    Sandeep Saini | Roorkee | India on Dec 26, 2008 11:01 AM

  • How to set the value of MaxRow Property of DB Adapter 11g dynamically

    I have the following requirement:-
    i am using DB Adapter to connect with MsSQL server for fetching the records from the table by using simple Select Query in my DB adapter.
    1. Receive request from Web Service Client number of records as input to fetch records form MsSQL Server.
    2. Return the result set to the service consumer
    So, here i m using MaxRow Property of Database Adapter for the number of records to be returned. But the problem is that how i can set the value to the MaxRow Property of DB Adapter dynamically from the value received as input.
    If you have any other idea to return the records dynamically from MsSQL server .Please help me.

    If you are using the DB Adapter as a reference and as you said, you are using custom SQL i guess...
    you can use the sql like...
    select top 1 * from tablename, this will result only 1 row from database(top record)...
    or select top 5 percent * from tablename, if the rows in the database are 100, then it will return the top 5 records in the database...
    check the exact syntax of top command with sql server...but using top keyword should solve your purpose to limit the number of records....
    Hope this helps...
    Thanks,
    N

  • How to set the value to ADOBE form input filed...in WDP ABAP...very urgent.

    Hi,
    SET_ATTRIBUTE is not working for the adobe forms in WDP-ABAP. Is there any other funtion to set the value in the input field of adobe forms in WDP-ABAP.
    Please let me know at the earliest
    Thanks,
    Kesav.

    Hello,
    set_attribute should work also in this case. The context element has to be bound to the given inputfield on the form.
    Can you please check your binding on the form?
    Kind regards,
    Dezso

  • How to set the value of RichSelectOneChoice

    I have RichSelectOneChoice in a managed bean and I want to set the value of this component. I tried this one but it's using it's index instead of actual value:
    RichSelectOneChoice comp = (RichSelectOneChoice) agencyListComponent;
    comp.setValuePassThru(true);
    comp.setValue(agencyId);
    where agencyListComponent is of type UIXComponent.

    The list is attached to model
    The select list code is:
    <af:selectOneChoice value="#{bindings.AGENCYID.inputValue}"
    label="#{bindings.AGENCYID.label}"
    required="#{bindings.AGENCYID.hints.mandatory}"
    showRequired="#{bindings.AGENCYID.hints.mandatory}"
    shortDesc="#{bindings.AGENCYID.hints.tooltip}"
    id="soc1" valuePassThru="true"
    partialTriggers="pw1"
    binding="#{backingBeanScope.AgencyBean.agencyListComponent}">
    <af:selectItem value="" id="emtOpt"/>
    <f:selectItems value="#{bindings.AGENCYID.items}"
    id="si1"/>
    </af:selectOneChoice>

  • How to set the value in SelectManyChoice

    Hi,
    My problem is i m trying to set the value which is coming from the Iterator in select may choice as:
    DCIteratorBinding viewReportIter = getBindingsForDCB().findIteratorBinding("SelectedSQIRSuppliersVO1Iterator");
    ArrayList list = new ArrayList();
    Row datRow = viewReportIter.getRowAtRangeIndex(0);
    programDesc = datRow.getAttribute(1).toString();
    list.add(programDesc);
    suppliers.setValue(list.toString());
    but is is not set the value.
    Is there any other method to set the value.
    Thanks,
    Neha

    Passing array in selectedindices
    To select default value as ALL the following code is used .
    int rowCount = (int)vo.getEstimatedRowCount();
    stateIndex =new int[rowCount];
    for(int i=0;i<rowCount;i++){
    stateIndex[i] = i;
    BindingContext bctx = BindingContext.getCurrent();
    BindingContainer bindings = bctx.getCurrentBindingsEntry();
    JUCtrlListBinding list=(JUCtrlListBinding) bindings.get("ViewObject");
    list.setSelectedIndices(stateIndex);
    To select default value other than all .
    BindingContext bctx = BindingContext.getCurrent();
    BindingContainer bindings = bctx.getCurrentBindingsEntry();
    JUCtrlListBinding list=(JUCtrlListBinding) bindings.get("ViewObject");
    list.setSelectedIndex(arg0);
    arg0 - The row which you want to set checked by default

  • How to set the value of application item using pl/sql in application process

    Hi guys,
    I want a global variable (application item) whose value will be set at the start when a user logs in to the application. The value will be retrieved from database using a sql query. I do not know the exact syntax to set the value of application item in application process. Also i want to know in which type of application process should i use to set the value of application item when a user starts a session. The value of application item varies from user to user.
    Please help.
    I am using apex 4.2
    Regards,
    Waqas

    You can use the application item as bind-variable with its name. ie. your application item is named G_MY_APPLICATION_ITEM, then you can access/set it using :G_MY_APPLICATION_ITEM.
    For example
    BEGIN
        -- assign like a variable
        :G_MY_APPLICATION_ITEM := 'LARRY';
        -- use in a SQL statement
        SELECT WHATEVER_COLUMN
          INTO :G_MY_APPLICATION_ITEM
          FROM MY_TABLE
         WHERE USERNAME = :APP_USER
    END;
    Peter

Maybe you are looking for

  • Error While installing Visual Studio 2005 in windows server 2012R2

    Hi Team One Help I am using windows server 2012R2.I want to install visual studio 2005. i downloaded VS 2005 from : http://www.microsoft.com/en-us/download/details.aspx?id=804 while installin i am getting this error :  "the upgrade patch cannot be in

  • How to know  Whether Partition is done for Cube or not

    Hi All, I need information regarding Partition of a cube. a)How do i know the Partition is done or not for Cube b)On what basis we should make parttion of Cube. Thanks and Regards, C.V.

  • Column values not displayed

    Hi, How is it that I am able to values in a column and some other user is seeing blank in that same column, same table, just the user accounts are different. What kind of restriction have the dba's given to that particular account. where can I see th

  • Importing videos - Q-Time can't "parse" the clips

    Just bought a Sony DCR-SR100. I've copied movies into a folder on my hard drive using the USB cable. When I go to import, iMoive doesn't recognize the clips, saying Quick Time can't "parse" the clips. Anybody have a solution?

  • DBMS_PIPE package in the library

    Where do I find the DBMS_PIPE package. Right now I'm working on migrating forms to 6i. And i got this error in a procedure(G$_GET_PIPE_MESSAGES) which is called in a trigger. DBMS_PIPE package has 1. PACK_MESSAGE procedure 2. SEND_MESSAGE function 3.