JavaScript - Check if the property value is substituted

Hello people,

Does anyone know how to check if a property definition for a given node has been replaced? Here is some information about what we are trying to accomplish.

We have descriptions in Core.Descr, which are all in English.

We have a property called Custom.DESCR.Chinese RWDerived that points to the description in English. If the value is changed, it means that a Chinese description has been entered.

I need to develop the script for a property which will focus on property above (Custom.DESCR.Chinese). If the value has not been replaced, this property should return "ENG". If the property has been overridden, this property should return "ZHO".

That's what I've tried so far...

var a = node. Prop ("Custom.Descr.Chinese"). GetPropDef();

Print ("PropDef object =" + a); / / works, returns Custom.DESCR.Chinese

Print ("Test: Level =" + a.Level); / / returns 0,

Print ("Test: PropOrigin =" + a.PropOrigin); //undefined

Print ("Test: PropType =" + a.PropType); / / works, returns 11

Print ("Test: Descr =" + a.Descr); / / works, returns the Description of Chinese

Print ("Test: PropClass =" + a.PropClass); / / works, returns the formula

print ("Test: substitute =" + a.Overridden); //undefined

Print ("Test: Abbrev =" + a.Abbrev); / / works, returns Custom.DESCR.Chinese

Print ("Test: DataType =" + a.DataType); / / works, returns 11

I can't access some of the properties of the PropertyDefinitionObject, but unfortunately, PropOrigin does not work, I think that is what is needed. I don't know if PropOrigin will not work in this context, or if there is something small miss me.

Any help is appreciated!

Thank you

Jordan Wilcox

Jordan

The object must be an object of the Node.Prop with the GetPropDef() method to access the original property

Try to use

var a = node. Prop ("Custom.Descr.Chinese")

Print ("Test: PropOrigin =" + a.Origin)

This should give you 2 for the node whose value is overloaded.

Thank you

Denzz

Tags: Business Intelligence

Similar Questions

  • HypGetMemberInformation in VBA. Does not return the property values.

    I tried to use HypGetMemberInformation in VBA to find the level of a member of the grid.

    I continued to get zeros even for members who are not level 0 ones.

    I went to test HypGetMemberInformation a test connected grid that has members in the first column (column A).

    I packed a test routine I ran after you connect the grid manually:

    Void TestMemberLevelFind()

    Dim line As Integer

    Dim MemberProperties Collection As

    Dim vtMemberName As String

    ' Dim vtPropertyName As String

    Dim vtPropertyValue As Long

    Dim vtPropertyValueString As String

    Dim ErrorCode as long

    Dim ErrorMessage As String

    Define MemberProperties = new Collection

    MemberProperties.Add HYP_MI_NAME

    MemberProperties.Add HYP_MI_DIM

    MemberProperties.Add HYP_MI_LEVEL

    MemberProperties.Add HYP_MI_GENERATION

    MemberProperties.Add HYP_MI_PARENT_MEMBER_NAME

    MemberProperties.Add HYP_MI_CHILD_MEMBER_NAME

    MemberProperties.Add HYP_MI_PREVIOUS_MEMBER_NAME

    MemberProperties.Add HYP_MI_NEXT_MEMBER_NAME

    MemberProperties.Add HYP_MI_CONSOLIDATION

    MemberProperties.Add HYP_MI_IS_TWO_PASS_CAL_MEMBER

    MemberProperties.Add HYP_MI_IS_EXPENSE_MEMBER

    MemberProperties.Add HYP_MI_CURRENCY_CONVERSION_TYPE

    MemberProperties.Add HYP_MI_CURRENCY_CATEGORY

    MemberProperties.Add HYP_MI_TIME_BALANCE_OPTION

    MemberProperties.Add HYP_MI_TIME_BALANCE_SKIP_OPTION

    MemberProperties.Add HYP_MI_SHARE_OPTION

    MemberProperties.Add HYP_MI_STORAGE_CATEGORY

    MemberProperties.Add HYP_MI_CHILD_COUNT

    MemberProperties.Add HYP_MI_ATTRIBUTED

    MemberProperties.Add HYP_MI_RELATIONAL_DESCENDANT_PRESENT

    MemberProperties.Add HYP_MI_RELATIONAL_PARTITION_ENABLED

    MemberProperties.Add HYP_MI_DEFAULT_ALIAS

    MemberProperties.Add HYP_MI_HIERARCHY_TYPE

    MemberProperties.Add HYP_MI_DIM_SOLVE_ORDER

    MemberProperties.Add HYP_MI_IS_DUPLICATE_NAME

    MemberProperties.Add HYP_MI_UNIQUE_NAME

    MemberProperties.Add HYP_MI_ORIGINAL_MEMBER

    MemberProperties.Add HYP_MI_IS_FLOW_TYPE

    MemberProperties.Add HYP_MI_AGGREGATE_LEVEL

    MemberProperties.Add HYP_MI_FORMAT_STRING

    MemberProperties.Add HYP_MI_ATTRIBUTE_DIMENSIONS

    MemberProperties.Add HYP_MI_ATTRIBUTE_MEMBERS

    MemberProperties.Add HYP_MI_ATTRIBUTE_TYPES

    MemberProperties.Add HYP_MI_ALIAS_NAMES

    MemberProperties.Add HYP_MI_ALIAS_TABLES

    MemberProperties.Add HYP_MI_FORMULA

    MemberProperties.Add HYP_MI_COMMENT

    MemberProperties.Add HYP_MI_LAST_FORMULA

    MemberProperties.Add HYP_MI_UDAS

    ' For line 8 to 83 =

    For row = 8-10

    vtMemberName = ThisWorkbook.ActiveSheet.Cells (rank 1). Value

    For each vtPropertyName in MemberProperties

    Code of error = HypGetMemberInformation(ThisWorkbook.ActiveSheet.Name, vtMemberName, vtPropertyName, vtPropertyValue, vtPropertyValueString)

    If ErrorCode = 0 Then

    MsgBox _

    "The worksheet name:" & ThisWorkbook.ActiveSheet.Name & Chr (13) & _ "."

    "Member name:" & vtMemberName & Chr (13) & _ "."

    "Property type:" & vtPropertyName & Chr (13) & _ "."

    "Property value:" & vtPropertyValue & Chr (13) & _ "."

    "The property string:" & vtPropertyValueString ".

    On the other

    ErrorMessage = GetReturnCodeMessage (ErrorCode)

    MsgBox "SmartView API function HypGetMemberInformation returned an error message:" & Chr (13) & ErrorMessage, vbOKOnly, PrivateConnectionDescription

    End If

    Next

    On the next row

    End Sub

    The routine produces no result expected.

    Only of zeros.

    For all properties and all members.

    There must be something fundamentally wrong with my code.

    The function arguments are correct with regard to the name of journal, the member name and property name.

    Value of the property is always 0 and the property value string is always empty.

    Two property value arguments are expected to be passed by reference, so I should get some useful information.

    No error is generated so that the return error code is always 0.

    I guess that some prerequisite so that this function is not satisfied, but what is?

    Concerning

    Problem solved.

    The cause of all evil, as ususal, type mismatch...

    Arguments by reference:

    vtPropertyValue, vtPropertyValueString

    must be declared as variants but returned it to the values are ARRAYS...

    After the function call, to loop through these berries extract the real info returned!

    In the case of unique value of parameters such as the level of Member just use index 0, for example:

    vtPropertyValue (0)

    The corrected code is less with parts modified trhe parked in Green:

    Void TestMemberLevelFind()

    Dim line As Integer

    Dim index As Integer

    Dim MemberProperties Collection As

    Dim vtMemberName As String

    Dim vtPropertyName As Variant

    Dim vtPropertyValue As Variant

    Dim vtPropertyValueString As Variant

    Dim ErrorCode as long

    Dim ErrorMessage As String

    Define MemberProperties = new Collection

    MemberProperties.Add HYP_MI_NAME

    MemberProperties.Add HYP_MI_DIM

    MemberProperties.Add HYP_MI_LEVEL

    MemberProperties.Add HYP_MI_GENERATION

    MemberProperties.Add HYP_MI_PARENT_MEMBER_NAME

    MemberProperties.Add HYP_MI_CHILD_MEMBER_NAME

    MemberProperties.Add HYP_MI_PREVIOUS_MEMBER_NAME

    MemberProperties.Add HYP_MI_NEXT_MEMBER_NAME

    MemberProperties.Add HYP_MI_CONSOLIDATION

    MemberProperties.Add HYP_MI_IS_TWO_PASS_CAL_MEMBER

    MemberProperties.Add HYP_MI_IS_EXPENSE_MEMBER

    MemberProperties.Add HYP_MI_CURRENCY_CONVERSION_TYPE

    MemberProperties.Add HYP_MI_CURRENCY_CATEGORY

    MemberProperties.Add HYP_MI_TIME_BALANCE_OPTION

    MemberProperties.Add HYP_MI_TIME_BALANCE_SKIP_OPTION

    MemberProperties.Add HYP_MI_SHARE_OPTION

    MemberProperties.Add HYP_MI_STORAGE_CATEGORY

    MemberProperties.Add HYP_MI_CHILD_COUNT

    MemberProperties.Add HYP_MI_ATTRIBUTED

    MemberProperties.Add HYP_MI_RELATIONAL_DESCENDANT_PRESENT

    MemberProperties.Add HYP_MI_RELATIONAL_PARTITION_ENABLED

    MemberProperties.Add HYP_MI_DEFAULT_ALIAS

    MemberProperties.Add HYP_MI_HIERARCHY_TYPE

    MemberProperties.Add HYP_MI_DIM_SOLVE_ORDER

    MemberProperties.Add HYP_MI_IS_DUPLICATE_NAME

    MemberProperties.Add HYP_MI_UNIQUE_NAME

    MemberProperties.Add HYP_MI_ORIGINAL_MEMBER

    MemberProperties.Add HYP_MI_IS_FLOW_TYPE

    MemberProperties.Add HYP_MI_AGGREGATE_LEVEL

    MemberProperties.Add HYP_MI_FORMAT_STRING

    MemberProperties.Add HYP_MI_ATTRIBUTE_DIMENSIONS

    MemberProperties.Add HYP_MI_ATTRIBUTE_MEMBERS

    MemberProperties.Add HYP_MI_ATTRIBUTE_TYPES

    MemberProperties.Add HYP_MI_ALIAS_NAMES

    MemberProperties.Add HYP_MI_ALIAS_TABLES

    MemberProperties.Add HYP_MI_FORMULA

    MemberProperties.Add HYP_MI_COMMENT

    MemberProperties.Add HYP_MI_LAST_FORMULA

    MemberProperties.Add HYP_MI_UDAS

    ' For line 8 to 83 =

    For row = 8-10

    vtMemberName = ThisWorkbook.ActiveSheet.Cells (rank 1). Value

    For each vtPropertyName in MemberProperties

    Code of error = HypGetMemberInformation (ThisWorkbook.ActiveSheet.Name, vtMemberName, vtPropertyName, vtPropertyValue, vtPropertyValueString)

    If ErrorCode = 0 Then

    If IsArray (vtPropertyValue) then

    For index = LBound (vtPropertyValue) to UBound (vtPropertyValue)

    MsgBox _

    "The sheet name:" & ThisWorkbook.ActiveSheet.Name & Chr (13) & _ "."

    "Member name:" & vtMemberName & Chr (13) & _ "."

    "Property type:" & vtPropertyName & Chr (13) & _ "."

    "Property" & index & "value table:" & vtPropertyValue (index) & Chr (13) & _

    "Property" & index & "string array:" & vtPropertyValueString (index)

    Next

    On the other

    MsgBox _

    "The sheet name:" & ThisWorkbook.ActiveSheet.Name & Chr (13) & _ "."

    "Member name:" & vtMemberName & Chr (13) & _ "."

    "Property type:" & vtPropertyName & Chr (13) & _ "."

    "Property value:" & vtPropertyValue & Chr (13) & _ "

    "The property string:"& vtPropertyValueString"

    End If

    On the other

    ErrorMessage = GetReturnCodeMessage (ErrorCode)

    MsgBox "SmartView API function HypGetMemberInformation returned an error message:" & Chr (13) & ErrorMessage, vbOKOnly, PrivateConnectionDescription

    End If

    Next

    On the next row

    End Sub

    Fortunately we can someone find this useful.

    I wish documentation Oracle was a little clearer with more extensive code examples.

    Gustaw

  • Check if the input value is number or not

    Hello


    I have the message text entry field. It's field 'Amount' and the user must enter a numeric value only in this area.

    How can I check if the input value is number or not.

    If the user enters the value 'character' in the field 'Amount' syster must raise the error.

    How can I achieve this?

    Help, please!

    Thank you
    Vikram

    Hello

    Try the code below

    java.lang.Character import;

    If (str! = null | str.length ()! = 0)
    {

    for (int i = 0; i)< str.length();="">
    {

    If we find a non-digit character we return false.
    If (!.) Character.isDigit (str.charAt (i)))
    {
    throw new OAException ("it is not a number", OAException.ERROR valid);
    }
    }
    }

    Thank you
    Pratap

  • Bug in reporter Panel updated with the property Value Chart

    Hi guys,.

    Defer to what the Panel update property is set to true and chart is updated with the help of node "Property value", data are not updated graphics. Capture of the block diagram and VI (2014) screen gasket.

    Is this a known bug, and is there any fix for it?

    Thank you

    Knockaert

    I have not tried running your code, but here are some possible solutions:

    1. There is a primitive to write the value of a control by index (added in ~ 2013). This is designed to be used others live too and should work like a local.
    2. You can send data using another way (like a queue, etc.).
    3. Use the Ctl Val.Set method.
    4. Do not use a chart. Use a chart and manage the buffer yourself. You can find some examples if you're looking for graph XY.
  • Check all the duplicate values in the column COUNT()

    Hello

    I'll do some tests, and for this I need to retrieve data based on a single column for example test_data_col, which-
    1 to 3 or more count (test_data_col) for a given set of columns for example grp_col1, grp_col2, grp_col3 group
    2. overall recovered lines, this particular column has some duplicate values. I don't need displayed duplicates, just whether or not duplicates exist.

    Which could explain what I'm trying to do -

    grp_col1, grp_col2, grp_col3, test_data_col

    1, A, xyz, HELLO
    1, A, xyz, HELLO
    1, a, xyz, BYE
    1, A, xyz, goodbye

    2, C, pqr, WELCOME
    2, C, pqr, GOOD MORNING
    2, C, pqr, BAD MORNING

    So for condition 1, I do something like that.
    SELECT COUNT(test_data_col) cnt, grp_col_1, grp_col2, grp_col3
    FROM test_tab
    GROUP BY grp_col_1, grp_col2, grp_col3
    HAVING COUNT(test_data_col) >= 3;
    In this request, I want to do something that will tell me if the aggregate COUNT (test_data_col) has all the duplicate values it contains. Yet once, display the duplicates is not important here.
    SELECT COUNT(test_data_col) cnt, grp_col_1, grp_col2, grp_col3,
    /*some logic*/ dup_val
    FROM test_tab
    GROUP BY grp_col_1, grp_col2, grp_col3
    HAVING COUNT(test_data_col) >= 3;
    With the correct to replace coding / * some * logic /, I have following values.

    CNT, grp_col_1, grp_col2, grp_col3, dup_val

    4, 1, a, xyz, Y
    3, 2, C, pqr, N

    I have dup_val column to explain what I'm trying to achieve... Another way to know the existence of duplicates in the aggregate count will be fine.

    My version of Oracle's Oracle Database 11 g Enterprise Edition Release 11.1.0.7.0

    Do you like the answer!

    Your somewhere logical can be like that

    case when COUNT(test_data_col) != COUNT(distinct test_data_col) the 'Y' else 'N' end dup_val
    
  • Evolution of the property values in a function

    I wonder how I can change a property of an instance from a function inside a method. Here, I have a code... Basically, I just need to set _lynn_idle to false when a Tween is involved and _lynn_idle to true when the Tween is completed. Unfortunately, I can't just set to false or true inside these functions of earphone as I am able to anywhere else (seems that the variable is local to the function only when I need to access the variable associated with the instance). Any help is very appreciated.

    Inside of the recall of members of the group managers are out of reach. To address local (local to the function) use of reference to the current object.

  • DRM validation to check the existence of nodes in a different hierarchy as a property value

    Hello gurus,

    I have two hierarchies, named A and B respectively. I need to create a validation for nodes in A hierarchy that checks the value of a property such that the node must have the property value equal to any node name in the hierarchy B.

    Means that the values for this particular property for the nodes in A hierarchy must exist as a node in the hierarchy B.

    It would be very grateful if someone can give an idea to achieve this.

    Hello

    Try this in a type formula validation-

    NodeInHier (PropValue (Custom.PropName), B)

    This returns false if the value of the property is not a node in the hierarchy B and True if it's.

    So, you will get a validation message whenever the property is loaded with a value that is not a node in the hierarchy of B.

    Thanks, let me know

    Denzz

  • Is it allowed to use property value nodes?

    To remove the problems of spaghetti, I need to delete rows.

    Previously, I used local variables, but the values written to local variables could not be found in time.

    So I started using nodes of property value instead.

    Are safe as substitutes to the lines?

    CITA wrote:

    To remove the problems of spaghetti, I need to delete rows.

    LabVIEW includes wires, no lines. What do you mean by "need". WO is you force?

    The program work correctly?

    So you have beautiful, clean and narrow (son) 1 d elements and that you want to replace by larger elements 2D (local variables, the property value nodes) across face significantly more chart area?

    Because you now also remove the dependencies of hard data, you probably need to add sequence structures, to keep racing in failure conditions. This will clutter the diagram even more! Why do you think that is the solution to your problems?

    Basically, you replace spaghetti with something worse still, for example, the content of the dumpsters behind an Italian restaurant after a night occupied.

    CITA wrote:

    Previously, I used local variables, but the values written to local variables could not be found in time.

    What is your definition of "appropriate"? The use of knots of property and local variables does NOT accelerate your code. In fact it will make it slower. As mentioned, race conditions can indeed retrieve outdated values before they have been updated to the current values elsewhere, so "timely" could easily turn into "too early."

    If you have performance problems, you don't want to chop the code and become even more fragmented.

    CITA wrote:

    So I started using nodes of property value instead.

    They have exactly the same problem as local variable, but are more demanding on resources. What was your thought process, perhaps?

    CITA wrote:

    Are safe as substitutes to the lines?

    Yet once, LabVIEW didn't 'lines', except in the range of decoration. Local variables and property nodes make code significantly less safe, because they make them much more difficult to find and avoid race conditions. They also make debugging almost impossible.

    You can start from scratch with a design template set and a code well structured and hierarchical.

    If you still think there are too many wires, consider using clusters and berries. Dozens of scalar son can replace a single cluster thread. A multidimensional array can carry millions of data points in a single thread. You get the point!

    It is difficult to give advice more targeted without actually seeing some of your code. Feel free to join so we can give more specific comments. There are many examples here in the forum where we were able to copy the HTML code to 10% of the original size while making it faster and cleaner at the same time still to add additional features. All this without the need for local variables and property nodes.

  • Get the current value of the menu a cluster ring

    Hello

    I am trying to program a bunch of rings of menu to use the same options and disable the option even in the other rings of menu if it has already been chosen. It works essentially as is at the moment, but it shows each button by using a 'deactivated' option because I'm turning off the option even in the buttons that have this value. I did it using a loop knot and property and [] DisabledItems en mass. Now, I want to go to the iteration of the loop for the menu ring which already has this value.

    To do this however, I want to get the current numeric value of the ring of menu and an array of search values. If the value of menu rings appear in this table, then I want to move to the current iteration of the loop. The problem I have is that when I try to use a property node and type the property value, instead of giving me a long 32 output, it gives me the so-called 'Variant', which I have not seen before. I'm not sure how to find a table and see if the value I have is in this table. "Search table" seems just an index to be returned, I think that I want a Boolean or something. I'm also not sure how to skip an iteration of the loop (although I imagine it won't be too difficult to understand mine, I hope).

    I apologize if this is very obvious, or if my message is not clear. I started using LabVIEW, a few weeks ago and I'm still learning. I have included a picture of my Subvi downstairs.

    Thank you
    Nathan

    Variant of data allows to convert the variant to a numeric type (whatever representation you need).

    Search D 1 table returns-1 if the element was not found.  If you just compare the index with a greater or equal to zero and the result will be if the element was found in the table.

  • dialog box closed = &gt; refresh LOV = &gt; set the new value

    Hello

    I'm really struggling with the following problem. I want my users to pick up existing customers or create a new if it does not exist. So I have a form (P1), a form is LOV with existing customers and a "Create new customer" button next to the LOV that calls the form of the modal dialog box (P2), where the new customer can be added.

    In the P2 process customer's line is an option to return an item, so I return it to P2_CUSTOMER_ID (which is my primary key element). On P1, I created the dynamic action:

    Event: Dialog closed

    Selection type: button

    Button: AddCompany

    and there are 2 real actions.

    (1) item discount P1_CUSTOMERS_LOV

    (2) set

    Type: Dialog box return

    RMA: P2_CUSTOMER_ID

    Affected items = > product (s): P1_CUSTOMERS_LOV

    LOV customers is refreshed correctly but the value is not set. What is even more surprising, it's that if I "insert" another action between these two (run code alert javascript ("added customer");), the new value is set correctly as planned.

    I really have no idea of what Miss me, and any help would be highly appreciated.

    Kind regards

    Pavel

    Pavel,

    I could make it work with a Select list. See once more your example. There is a dynamic onload action using

    $("#P2_CUSTOMER_ID").bind ("apexafterrefresh", function() {}

    $ ('#P2_CUSTOMER_ID') .val ($ (' #P2_CUSTOMER_ID_H ') .val ());

    });

    then, who is only triggered if the refresh of the selection list is completed.

    Denes Kubicek

  • Returns the lowest value of two fields

    Hello

    I have two domains that users manually enter in a form.  Value1 and Value2.

    Someone at - it suggestions on the best way to use JavaScript to return the lowest value of the two fields?

    Thank you

    Natalie

    I think I misunderstood what you mean by any, I thought you wanted the calculated value to be None. The two fields value digital formats and modify the script for:

    Custom calculate script

    (function () {}

    Initialize the array

    aNums var = [];

    Get the field values as strings

    var s1 = getField("Value1").valueAsString;

    var S2 = getField("Value2").valueAsString;

    Convert values to numbers if not empty and add to the table

    If aNums.push(+s1) (s1);

    If aNums.push(+s2) (s2);

    Set the value of this lesser field of entries

    If both are blank, this field blank

    Event.Value = aNums.length? Math.min.Apply (null, aNums);:

    })();

  • Problem using cdromdisconnect.pl to check for the use of CD-ROM on the virtual machines

    I have a problem with this script, cdromdisconnect.pl and I was hoping someone could help me with it...

    When I run ' cdromdisconnect.pl - my.esx.host - host list op - my.vc.host - server passthroughauth ", I get a"Host not found my.esx.host." But when I run "datacenterlisting.pl - datacenter MyDC" there 'my.esx.host' very well. Am I missing something here? Why is the cdrom script not able to find hosts when other scripts have no problem?

    Any help would be appreciated.

    -monkeedu

    As far as I KNOW, there isn't a way to do a review on a MoRef, right on the property values.  You cannot, for example, match against a property value of the table.  You have to adapt your script logic.  Once you have your view of system host ($host), then you must use the vm ($host-> vm) property to get a list of Virtual Machines.

    You will probably need to change:

    my $host_moRef = $host->{mo_ref}{value};
    #######################################################################################
    #     Get all VMs that are currently running on that ESX Server
    #######################################################################################
    
    my $vm_views = Vim::find_entity_views(view_type => 'VirtualMachine', filter => {'runtime.host' => $host_moRef});
    my $numDevices = 0;
    foreach my $vm_view (@$vm_views) {
    

    TO:

    #######################################################################################
    #     Get all VMs that are currently running on that ESX Server
    #######################################################################################
    
    my $numDevices = 0;
    my $vm_view;
    foreach (@{$host->vm}) {
         $vm_view = Vim::get_view( mo_ref => $_ );
    

    There are some optimizations I can suggest to speed it up, but its probably better to work first.

  • How to get the selected values of the af:selectManyChoice in the bean support

    Hello

    I have a selectManyChoice with a list of static, as shown below.
    At the click of the button, is called a method in the bean support. I want to get the list of the values selected by the method of the bean.
    How to do the same thing.
    <af:panelFormLayout id="pfl1" fieldWidth="50%" labelWidth="50%">
            <af:selectManyChoice label="Days" id="smc1"
                                 binding="#{Bean.addDaysChoice}">
              <af:selectItem label="Monday" value="MON" id="si17"/>
              <af:selectItem label="Tuesday" value="TUE" id="si13"/>
              <af:selectItem label="Wednesday" value="WED" id="si15"/>
              <af:selectItem label="Thursday" value="THU" id="si14"/>
              <af:selectItem label="Friday" value="FRI" id="si11"/>
              <af:selectItem label="Saturday" value="SAT" id="si16"/>
              <af:selectItem label="Sunday" value="SUN" id="si12"/>
            </af:selectManyChoice>        
              <af:commandButton text="Button"
                                actionListener="#{bean.callSomeMethod}"
                                id="cb1"/>  
    <af:panelFormLayout/>
    Thank you
    Ajay

    Published by: Ajay on January 31, 2011 06:26

    Hello

    What about setting the property "value" of the selectManyChoice, and then point to a method of the managed bean (setter/accessor for a variable of type list)?

    Frank

  • How we can get statistics current preferences for the t value specified

    We use DBMS_STATS. Procedure SET_TABLE_PREF to set preferences to statistics on the table specified in the specified schema.
    How we can get statistics current value of preferences for the specified table?

    Of course, you can use the DBMS_STATS. Function GET_PREFS to check the attributes of statistics.
    For example, to collect statistics of large properly partitioned tables, you can change the INCREMENT value:

    For each, check that the current value of the table:

    SQL> select dbms_stats.get_prefs('INCREMENTAL','SH','COSTS') from dual;
    
    DBMS_STATS.GET_PREFS('INCREMENTAL','SH','COSTS')
    --------------------------------------------------------------------------------
    FALSE
    

    Change the value for the table in question:

    SQL> exec dbms_stats.set_table_prefs('SH','COSTS','INCREMENTAL' ,'TRUE') ;
    PL/SQL procedure successfully completed.
    
    SQL> select dbms_stats.get_prefs('INCREMENTAL','SH','COSTS') from dual;
    DBMS_STATS.GET_PREFS('INCREMENTAL','SH','COSTS')
    --------------------------------------------------------------------------------
    TRUE
    
  • How to get the value of the property and the hierarchy specified in a global property, by javascripts

    Hi DRM team:

    I want to get a property value and precise when the hierarchy from. So, I thought that LocalNodeObjects method GetReferenceInHier (hierAbbrev), but the question is coming, I'm working on a global property, node. GetReferenceInHier (hierAbbrev) is not available. How can I get the value of the specified node hierarchy?

    Thanks for any response.

    Jim

    Hi Jim.cyciopes

    Try this-

    var worm is node. Version;

    var hier_ref = worm. HierByAbbrev ("name of your hierarchy");

    var node_ref is hier_ref. NodeByAbbrev (node. ABBREV);

    {if(node_ref!=null)}

    var propval is node_ref. VarValeurProp ("YourPropertyName");

    }

    Return propval;

    Thank you

    Denzz

Maybe you are looking for

  • "Your USB bootable could not be created" - Win 8.1 on Mavericks

    Hello! I tried in vain to 8.1 Windows Installer on my iMac using Boot Camp. That's what I'm trying to use: OS 10.9.5 Mavericks Model name: iMac Model identifier: iMac14, 2 End of 2013 Boot Camp Assistant 5.1.2 Windows 8.1 Pro 64 bit (OEM DVD) I start

  • How can I change the URL of a bookmark?

    I recently moved from PC to Mac. I can't know about the Mac how to edit bookmarks. In other words, I have a URL to use to connect to applications for the job, but according to available servers, that first URL gets rerouted to a different URL at the

  • Tablet Acer problem

    Dear Sir/Maam, I use Acer Tablet model: A500 that I am facing some problems with the Tablet, then please mail me the details where I can get the Acer Tablet repair in Delhi at the service centre. I want to repair near Pitampura. If you can find someo

  • Oficejet 5610: officejet 5610 does not

    Yesterday, I had a Windows Update 10 since then, so I can't use my printer. I have a message runtime Troupleshooter 'Detected Incompatible program' compatibility I tried reinstalling the drivers, that it did not work. Any ideas? Thanks in advance. PS

  • HP C309g - m 3-in-1 printer Photo - problem of re - load software

    I'm on Windows 8;  I used this same photo printer 3 in 1 HP C309g-m on an older system of Windows 7.  I was able to use this printer for a year and so far this week, I had no problem.  I can print documents, but for now, I am unable to open the HP So