List of value in the field of handling returned by getValueList() - ConstraintEnumeration

I would like to create a script to extract, for each column using a domain, a list like this format:

tableName. columnName | domainValue | domainValueDescription

But the problem is that domain.getValueList (), agreeing with the documentation, returns a type of ConstraintEnumeration and may be a silly question, but I do not know how to navigate through this object to get the values and descriptions.

It's the example script:

var tables = model.getTableSet () .toArray ();

for (var t = 0; t < tables.length; t ++) {}

var table = tables [t];

var columns = table.getElements ();

for (var c = 0; c < columns.length; c ++) {}

var column = columns [c];

If (Column.getUse () == 0 & & column.getDomain ()! = null) {}

field var = column.getDomain ();

var valueList = domain.getValueList ();

/ / how iterate valueList?

}

}

}

I looked at the documentation but this class is undocumented, so I do not know the methods available and had no luck in trying to discover with the debugger.

I appreciate all help.

Thank you.

Hello

Yes, the documentation for ConstraintEnumeration does not seem to miss.

For your case, there is a getValuesDescriptionMap() method that returns a map that contains an entry for each value and maps the values of their descriptions.

David

Tags: Database

Similar Questions

  • How to connect a list of values to the regions

    Hi all

    I created the list of values like the bar chart, histogram, Pie Chart.these the list of values added to the text box named as a type of cat.

    In the same region, I created 3 chart under regions.

    My requirement is if I select the graph page type-pie chart.the will see the pie only graphic region only. Even at the bar graph and histogram also.

    Please tell me clearly.

    Please help me.

    Thank you and best regards,

    Rambeau

    Amandine says:

    But I have 2 questions.

    1, where we give value to the element of LOV

    I created the list of values like the bar chart, histogram, Pie Chart.these the list of values added to the text box named as a type of cat.

    When you say "text field", do you mean literally a text element? If so, why do you use it? A select list or radio group would generally allow to select the chart type.

    Usually the user "will give the value" (for example, select the desired option). You can provide an option by default when the page is rendered first with a header of computation that runs under certain conditions, if the value of the element is set to zero. (You must use a calculation for this rather than the property item by default so that the value is in session state to operate in conditions of graphic region.)

    2, please give some examples of Expression1.

    Expression 1 is the name of the element used to display the options. Following the convention of the APEX of prefacing names to page elements to make them unique, it will be something like P2_CHART_TYPE.

  • The list of values in the table of the ADF is not other cela rather single attribute yourself.

    Dear all,

    I have a list of the values on the view object and and created a table by dragging the drop to the page.

    Problem is that LOV is advising no other attributes I mentioned as other attributes in the list of values. only the LOV element becomes selected ID.

    The following table properties

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

    < af:table value = "#{bindings." XxIncidentRptInjuredPersonsEOView1.collectionModel}.

    var = "row".

    lines = ' #{bindings. " XxIncidentRptInjuredPersonsEOView1.rangeSize}.

    emptyText = "#{bindings." XxIncidentRptInjuredPersonsEOView1.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." XxIncidentRptInjuredPersonsEOView1.rangeSize}.

    rowBandingInterval = '0 '.

    filterModel = "#{bindings." XxIncidentRptInjuredPersonsEOView1Query.queryDescriptor}.

    queryListener = ' #{bindings. " XxIncidentRptInjuredPersonsEOView1Query.processQuery}.

    filterVisible = "true" varStatus = "vs."

    selectedRowKeys = ' #{bindings. " XxIncidentRptInjuredPersonsEOView1.collectionModel.selectedRow}.

    selectionListener = "#{bindings." XxIncidentRptInjuredPersonsEOView1.collectionModel.makeCurrent}.

    rowSelection = "single" id = "t1".

    "partialTriggers =": cb2.

    Binding = "#{CreateReportManageBean.injurdemptable} '"

    Width = "100%" >

    - ComboboxListOfValues - Tags

    < af:inputComboboxListOfValues id = "empIdId".

    popupTitle = "search and select: #{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.label}.

    value = "#{row." Bindings.EmpID.inputValue}.

    Model = "#{row." Bindings.EmpID.listOfValuesModel}.

    required = "#{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.mandatory}.

    columns = "#{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.displayWidth}.

    shortDesc = "#{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.tooltip}.

    autoSubmit = "true" >

    < f: validator binding="#{row.bindings.EmpId.validator}"/ >

    < / af:inputComboboxListOfValues >

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

    Take the af: inputComboboxListOfValues Id (for example, "empIdId") and put it in the partialTriggers of other attributes.

    or

    You can go to pageDef. --> select iterator table--> properties--> Advanced--> ChangeEventPolicy set for ppr

  • Is it possible to display the dynamic value in the ToolTip? I tried: this.assist.toolTip.value = this.rawValue; for a text field 'property MouseEnter', but it does not display the current raw value. It displays a previous raw value of the field... Guilty

    Is it possible to display the dynamic value in the ToolTip?

    I tried:

    this.assist.toolTip.value = this.rawValue; for a text field on 'ownership' MouseEnter

    but it does not display the current raw value. It displays a previous raw value of the field...

    I wrote 'YYYY', but is not displaying on the first mouseEnter event

    Capture_1.JPG

    When I show event mouseEnter for the 2nd time it gives good value.

    Capture_2.JPG

    Now, I changed the "BBBB" value but the first mouseEnter event it displays the value previous i.e. "YYYY."

    Capture_3.JPG

    I found the solution. I wrote the script ("this.assist.toolTip.value = this.rawValue ;") on 'property MouseEnter' but the need to write the script to the "Output" of the field event. ")

    Thank you.

  • How to find duplicates of a field value? For example - in a field, I have values like {123,345,346,123}, now I want to remove the duplicate value in the field so that my output looks like {123,345,346}

    How to find duplicates of a field value? For example - in a field, I have values like {123,345,346,123}, now I want to remove the duplicate value in the field so that my output looks like {123,345,346}

    If it's an array you want to deduplicate then here is a script [for use in the Script Processor] I prepared earlier:

    var result = new Array();

    var added = new Object();

    If (input1 [0]! = null)

    {

    for (var i = 0; i)< input1[0].length;="">

    {

    var point = input1 [0] [i];

    If (! added [item])

    {

    added [item] = 1;

    result [result. Length] = item;

    }

    }

    }

    Output 1 = result;

    Kind regards

    Nick

  • Question: Is it possible to query a record datacard on the value of the field (REST API)?

    Hi everyone :-)

    URL: / data/Objetpersonnalise / {id}? count = {number} & page = {page} &Search = {}, & orderBy = {orderBy} & lastUpdatedAt = {lastUpdatedAt}

    Can we get a result based on a search query on the value of the field?

    Thank you!

    ADI

    Hello Adi,

    You should be able to query the value of a CDO field via the name of the database field.

    Example: CDO field "City" is the name of the city of '1 '.

    Your query: / data/Objetpersonnalise / {id}? Search = Ville1 = Berlin

  • The data specified in the request is invalid. The value of the field id package is not a MultipleLiteral, but the field is defined as MultiValued

    We have a property in a component software which is an array. the value is [""]

    In the blueprint I am sitting a value property ['vim', 'emacs'] defalult

    When I ask this plan and change the values of foo, bar, I get this error

    The data specified in the request is invalid. The value of the field id package is not a MultipleLiteral, but the field is defined as MultiValued

    someone knows why this happens?

    I'm runnign vra7.0.1

    Strangely, it works if

    Overridable is set to NO

  • How can we access the value of the field in a line removed in the buffer of the component?

    In the PeopleSoft component buffer when it removes a parent row children lines are also deleted, therefore, not possible to access the value of the field of these lines.

    Example: If we have RECORD1 at level 1 and RECORD2 (which contains the INCIDENT_NBR field) at level 2.

    If a row is deleted at level 1, level 2 lines are also deleted, but before delete, I need access to the value of INCIDENT_NBR and make sure no line (s) not many for this value in a third record record RECORD3.

    If any line exist in the RECORD3 record an error message should appear in the case otherwise the delete process can go.

    I put the peoplecode in RECORD2. INCIDENT_NBR. SavePreChange (at the record level) because this control must be carried out in all cases for all the component where my RECORD2 record is used.

    When I display the value of the field I always get a null (00000000 digital).

    It is possible that in PL/SQL within a trigger, but unfortunately in this case, I can not catch the error produced by RAISE_APPLICATION_ERROR (-20000, 'Suppression of an incident not allowed when there are dagnostics'); in Peoplecode.

    Does anyone know if there is a way to get the values of the fields in the deleted lines?

    Thank you

    A rowset object has two properties

    ActiveRowCount

    All lines of lines in an exclusive set of deleted rows

    Number of lines

    All lines of a set of lines included the deleted rows.

    So I would say, to loop through all lines and check for deleted rows and make any desired logic, something like:

    For & i = 1 to & rs. Number of lines

    & line = & rs. GetRow (&i);)

    If & row. IsDeleted then

    & rec = & rank. GetRecord (1);

    & fld = & rec. GetField (FIELD. YOURFIELD);

    / logical necessary * /.

    End - If;

    -End;

  • Get the value of the field notes.

    Hi all

    I just started with powercli.

    I want to set and get the value of the field notes.

    Put in it, is done by, virtual Set-machine - VM "Name VM" - Description "text1 text2 etc." - confirm: $false

    But how to get the value of the field notes? I it could be done like: Get-VM-name 'VM ' | Get-Annotation CustomAttribute - Description

    However, I get an error:

    Get-Annotation: 08/07/2012 11:11:28 Get Annotation found Cu

    stomAttribute with the name "Description".
    On line: 1 char: 44
    + Get - Vm "klj - bastionhost | Get-Annotation < < < <-CustomAttribute description
    n
    + CategoryInfo: ObjectNotFound: (Description: String) [Get-annotated
    tion], VimException
    + FullyQualifiedErrorId: Core_ObnSelector_SelectObjectByNameCore_ObjectNo
    tFound, VMware.VimAutomation.ViCore.Cmdlets.Commands.GetAnnotation

    kim look

    You can get the field notes VM with:

    Get - VM | Select-Object - Property Name, Description

  • The value entered does not match the value in the field

    I have a simple form on the page, a field callculates a percentage based on the values entered in 2 other fields, works very well, but then all the entries on the form generates this message "the entered value does not match the value in the field".

    Also, you can remove a tab stop of the fields?

    Just happened again.

  • Change the number of decimal places according to the value of the field

    Hello world

    I'm doing a form using Adobe Acrobat.

    I want a field that usually has only 2 decimal places, to have 4 decimal positions ONLY when necessary.

    Example: If the value of the field is 3.53 that's fine, but if the value is 3,5346 I want to show him this.

    I played around field properties and I realized that I need to use a custom format script. I don't know where to start, however. Can you point me in the right direction?

    Thank you in advance.

    I just threw together quickly and did not test, take is as a general guide. It is intended to be placed in a JavaScript to the document level and called from custom Format script of the field. You can not put it simply everything as the script to Format because of the way that Acrobat behaves when you do.

    The point of the script is to calculate the number to use as the first parameter to the AFNumberFormant function, which is that Acrobat uses when configuring a digital format. I couldn't think of a clever name for the function, so I leave it to you:

    function fmt1() {
    
        // Set the minimum number of digits to the right of the decimal
        var min = 2;
    
        // Get the field value, as a string
        var val = event.value;
    
        // Round to the nearest 10-thousand of a cent
        var rn = util.printf("%.4f", val);
    
        // Replace any trailing zeroes with nothing
        rn = rn.replace(/[0]+$/, "");
    
        // Get the number of characters after the decimal
        var num = rn.split(".")[1].length;
    
        // Set to the minimum if appropriate
        if (num < 2) num = 2;
    
        // Use built-in formatting function
        AFNumber_Format(num, 2, 0, 0, "\u20ac", true);
    
    }
    

    Call it like that in the case of the field Format:

    fmt1();
    

    If this isn't a calculated field, but the one who interacts with a user, you'll want to add a function with the swing, something like:

    function keystroke1() {
    
        AFNumber_Keystroke(2, 2, 0, 0, "\u20ac", true);
    
    }
    
  • How to extract the value of the field in variable

    I want to be able to read the value of the field out of the browser and store in a variable for I can manipulate it. I tried several methods, that which no I can't find the proper syntax. My last is the following:

    . . Solve ("postal code", "/ip/", Source.DisplayContent, 1);

    I assumed that the Group should be able to draw from this, but it does not solve. I think my problem is the regular expression or index (that I had with the null value). Any help would be greatly appreciated as I have a tight deadline to achieve. Thank you.

    -John

    Hi John,.

    Why are you using web.window? Surely, you would use web.element?

    Concerning

    Wayne.

  • How to pass item values to the fields in Page #2 Page 1

    Hello

    On the first page, I have two points and a single button.
    Point n ° 1 P1_PROJECT_NAME display text (escape special characters, does not save the State)
    Article #2 P1_PROJECT_ID hidden and protected
    Button #1 create redirect page 2

    When the user clicks on the Create button, 2nd page opens with the form for creating detailed project which includes the two following fields.
    #1 P2_PROJECT_ID a text field
    #1 P2_PROJECT_NAME a text field

    I want to change the P1_PROJECT_ID value to the field of P2_PROJECT_ID and P1_PROJECT_NAME to the P2_PROJECT_NAME field.
    How can I do this?

    Thank you
    Guy

    Guy,

    If you change your button and go to the "URL redirection Option" section you will find two fields: 'Put on these elements' and 'with these values.
    Simply enter your values in these two fields separated by commas, in the same order.

    Kind regards

    --
    Paulo Vale
    http://Apex-notes.blogspot.com

  • Change the value in the field based on the drop-down list

    Let me start by saying that I consider myself as a rookie full when it comes to this program, but I'm learning. I have a drop down menu containing two choice (white or bright white) based on the selection in the drop-down list, I would like to change a field value to reflect the appropriate part number (Alpha numeric if it matters). I'll have 10 fields that will be either / or a value based on the selection. I searched the forums, but without understanding the terminology still, it is difficult to find the answer.

    Thanks for any help.

    Wayne

    Oh, OK.  So add "select" to the list and then on the value tab, select the default value: drop-down list and choose the item you want to appear by default.  I think that's what you're looking for.

  • How to read the values of the field of LOV disabled?

    Hi all

    I have a requirement, based on values that we entered one of the LOV fields, then we are arising from the new values based on the value that we entered this field of LOV. And then I must by default new LOV values derived in a two other fields of LOV and then disable them. Once the fields are disabled, then I'm not able to read the values using the pagecontext.getparameter... I get nothing when I tried to read using the pagecontext.getparameter.

    Pointers on how to read the values of disabled field/LOV?

    Thank you
    Clarriiza

    1. you already have values, and that's what you set in the LOV before turning off, right? So why do you need to recover again from the LOV.

    2. are you disabling or making it readonly? I think that if it is disabled, you might still be able to get the value using pageContext.getParameter.

    3 have you tried to get the handle to the LOV bean and get the value using lovBean.getValue (pageContext)?

    4. another Option is to combine the value of a FormValue Bean also (as well as the LOV bean) and retrieve it from FormValue.

    5 BTW, why are, why you're seen LOV if you disable it? Can't you just a TextBox?

    See you soon

    AJ

Maybe you are looking for

  • How can I prevent all automatic starts iTunes?

    Hello Is someone can you PLEASE advise me how I can prevent ITunes turning prematurely gray?  It starts with persistence without asking for confirmation.  I want to be able to achieve is to prevent ITunes automatically start under ANY circumstances.

  • Lenovo Vibe X 2 AP

    Poor APK battery & Lenovo bad security I use Lenovo Vibe X 2 since 11/11/2014 and my overall experience is not very good, Thumbs up: 1. go to blowdry - phone is very thin and light weight, better in design to this day. 2 Lenovo UI is very good with T

  • Recommendation product

    Hello. I'm looking for a recommendation on a server configuration. We are looking for a server to store the music for a radio station. Storage could reasonably go more than 5 TB over the next years. Need a Raid 5, raid 1 or 10 would be nice but becom

  • Windows Media Player plays only one file at a time

    These days, my Media Player acted upward.  It will play a music/film without problem, but when I try to play multiple files at the same time it hangs and I have to Ctrl-Alt-Delete to stop the player because it does more.  When I try to use it again a

  • Interruption of the connection with EA9500 &amp; BO3

    I noticed since the installation of the new EA9500 router, I get connection interrupted while playing call of duty game BO3. I updated the firmware and restarted the modem cable too. I don't understand why I'm getting this. Suggestions?