User Defined LOV to the table of the ADF.

Hello

I have an obligation to show one of the column as a LOV that provides only O/N values. Is it possible to have a user defined LOV in ADF Table instead of generating the ViewObject.

Please let me know.

Version: ADF 11g.

Thank you.

Not necessarily. You just create a vo with a request (without creating any table in the backend).

Check Re: ViewLink with a static list display object example.

In your case, create a display object based on a query something like

select 'Y' List_Val, 'Yes' Display_Val from dual
union
select 'N', 'No' from dual

After that, follow the same procedure you have to create the model list flown using the VO created above.

Arun-

Tags: Java

Similar Questions

  • User-defined function removes the expression hooks

    Trying to convert this column in a user function expression, however when I apply the function to the user hooks literally disappear.

    1 REGEXP_REPLACE (SRC_IO_PHONES_A.PHONE, ' ({: digit:{3})\.(:digit:{3})\.(:digit:{4})' 1 (\1)-\2-\3'),)

    2 REGEXP_REPLACE (SRC_IO_PHONES_A.PHONE, ' ([[: digit:]] {3})------.) () [[: digit:]] {3}). ([[: digit:]] {4})' 1 (\1)-\2-\3')


    These lines come from the same mapping. One implements the user-defined function and the second line is with I plug the code into the target Expression field.


    Any thoughts on why this is?


    Thank you

    So I thought to it thanks to a post of @oraclebase.  Another friend of mine has indicated that user in ODI functions develops a sort of pseudo-code and it is not really passing commands to the database.  Anyway, my research turned to substitute for the construction of all [: digit:].  This resulted in me find the above post where \d = [0-9].  By replacing all the scoring by \d hooks, the function worked.

  • User Defined functions in the Mapper

    I have user-defined functions that work in BPEL but I can't make them work in the Mapper. They appear when expected for jDeveloper but throw "function not found" errors

    Can someone look at my config files and see if the error comes out? Thank you bunches!

    BPEL file:

    " < soa-xpath-functions xmlns =" http://xmlns.Oracle.com/SOA/config/XPath "" "

    ' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "

    version = "11.1.1.

    resourceBundle = "oracle.tip.tools.ide.common.resource.IDEMessageBundle"

    >

    < name of the function = "f17:editCaseNumber" >

    com.F17.CustomFunction.editCaseNumber < className > < / className >

    < return type = "tree" / >

    < params >

    < param name = "stringToFormat" type = "string" / >

    < param name = "order" type = "string" / >

    < / params >

    number of valid cases and formats < desc > < / desc >

    < detail >

    <! [CDATA [this is a custom function.] If you use it, you must include the

    Following namespace declaration in your BPEL file.

    < br / > < br / >

    ' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "

    < br / > < br / >

    USE: f17:editCaseNumber(string,string) < br / >

    Channel 1 is the data < br / >

    Channel 2 is the command. Valid commands are: < br / >

    1 = number of control check and come back as nnnnnnnnnn < br / >

    2 = number of control check and come back as nnn-nnnnnnn < br / >

    3 = Append check digit and return under nnnnnnnnnn < br / >

    4 = Append check digit and return under nnn-nnnnnnn

    < br / > < br / >

    Returns XML document fragment: < br / >

    Import of f17userDefinedFusnctions.xsd space variable prototype. < br / >

    See documentation for more details.]] >

    < / details >

    < / feature >

    < name of the function = "f17:compressFile" >

    com.F17.CustomFunction.compressFile < className > < / className >

    < return type = "tree" / >

    < params >

    < param name = "stringToFormat" type = "string" / >

    < / params >

    < desc > compress long strings by DB storage < / desc >

    < detail >

    <! [CDATA [this is a custom function.] If you use it, you must include the

    Following namespace declaration in your BPEL file.

    < br / > < br / >

    ' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "

    < br / > < br / >

    USE: f17:compresFile (string)

    < br / > < br / >

    Returns XML document fragment: < br / >

    See documentation for more details.]] >

    < / details >

    < / feature >

    < name of the function = "f17:sortList" >

    com.F17.CustomFunction.sortList < className > < / className >

    < return type = "tree" / >

    < params >

    < param name = "listIn" type = "string" / >

    < / params >

    lists of kinds of < desc > < / desc >

    < detail >

    <! [CDATA [this is a custom function.] If you use it, you must include the

    Following namespace declaration in your BPEL file.

    < br / > < br / >

    ' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "

    < br / > < br / >

    USE: f17:sortList (String) < br / >

    Build the string as: & lt; list & gt; & lt; point & gt; [data] & lt; / point & gt;... & lt; / list & gt; < br / >

    Returns XML document fragment: < br / >

    Import of f17userDefinedFusnctions.xsd space variable prototype. < br / >

    See documentation for more details.]] >

    < / details >

    < / feature >

    < name of the function = "f17:replaceString" >

    com.F17.CustomFunction.replaceString < className > < / className >

    < return type = "string" / >

    < params >

    < param name = "StringToFix" type = "string" / >

    < param name = "RegX" type = "string" / >

    < param name = "replaceString" type = "string" / >

    < param name = "mode" type = "string" / >

    < / params >

    Sets < desc > replaceFirst and replaceAll functions java < / desc >

    < detail >

    <! [CDATA [this is a custom function.] If you use it, you must include the

    Following namespace declaration in your BPEL file.

    < br / > < br / >

    ' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "

    < br / > < br / >

    USE: f17:replaceString(String,String,String,String) < br / >

    Chain change, regular expression, mode [optional] replace the string - 1 = all, 2 = first by default all the < br / >

    See documentation for more details.]] >

    < / details >

    < / feature >

    < / soa-xpath-functions >

    file Mapper:

    < soa-xpath-functions

    " xmlns =" http://xmlns.Oracle.com/SOA/config/XPath "" "

    ' xmlns:repl = ' http://www.Oracle.com/xsl/transform/Java/COM.F17.CustomFunction.replaceString "" "

    ' xmlns:comp = ' http://www.Oracle.com/xsl/transform/Java/COM.F17.CustomFunction.compressFile "" "

    version = "11.1.1.

    resourceBundle = "oracle.tip.tools.ide.common.resource.IDEMessageBundle"

    >

    < name of the function = ' model: compressFile ">

    com.F17.CustomFunction.compressFile < className > < / className >

    < return type = "tree" / >

    < params >

    < param name = "stringToFormat" type = "string" / >

    < / params >

    < desc > compress long strings by DB storage < / desc >

    < detail >

    <! [CDATA [this is a custom function.] If you use it, you must include the

    Following namespace declaration in your BPEL file.

    < br / > < br / >

    ' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "

    < br / > < br / >

    USE: f17:compresFile (string)

    < br / > < br / >

    Returns XML document fragment: < br / >

    See documentation for more details.]] >

    < / details >

    < / feature >

    < name of the function = "repl:replaceString" >

    com.F17.CustomFunction.replaceString < className > < / className >

    < return type = "string" / >

    < params >

    < param name = "StringToFix" type = "string" / >

    < param name = "RegX" type = "string" / >

    < param name = "replaceString" type = "string" / >

    < param name = "mode" type = "string" / >

    < / params >

    Sets < desc > replaceFirst and replaceAll functions java < / desc >

    < detail >

    <! [CDATA [this is a custom function.] If you use it, you must include the

    Following namespace declaration in your BPEL file.

    < br / > < br / >

    ' xmlns:f17 = ' http://ENTP.HUD.gov/customxpath/functions "" "

    < br / > < br / >

    USE: f17:replaceString(String,String,String,String) < br / >

    Chain change, regular expression, mode [optional] replace the string - 1 = all, 2 = first by default all the < br / >

    See documentation for more details.]] >

    < / details >

    < / feature >

    < / soa-xpath-functions >

    None of the answers was * exactly * correct, but they gave me enough information to solve the problem.

    To implement what I have to code the functions a bit differently.

    • BPEL functions are all the IXpathFunction extension classes.
    • Mapper functions are not.
    • BPEL functions are each separate classes.
    • A single class with a method for each desired function mapper functions.
    • BPEL classes outcrop in the config file ext-bpel-xpath-functions-config. XML
    • The Mapper class is exposed in the config file ext-Mapper-xpath-functions - config.xml

    A BPEL class looks like:

    public class editCaseNumber implements IXPathFunction {
        public Object call(IXPathContext context, List args) throws XPathFunctionException {
           return docOut;
        }
    }
    

    A class to map looks like:

    public class mapperFunctions {
        public static String replaceString(String sIn,String sMat,String sRep,String mode){
            return finalString;
        }
        public static XMLDocumentFragment compressFile(String indoc){
            return docOut;
        }
    }
    

    (I deleted the code of these to avoid confusion.)


    My ext-Mapper-xpath-functions file - config.xml looks like:

    soa-xpath-functions
            xmlns="http://xmlns.oracle.com/soa/config/xpath"
            xmlns:map="http://www.oracle.com/XSL/Transform/java/com.f17.customfunction.mapperFunctions"
            version="11.1.1"
            resourceBundle="oracle.tip.tools.ide.common.resource.IDEMessageBundle"
            >
      
      com.f17.customfunction.mapperFunctions.compressFile
      
      
      
      
      Compresses large strings for DB storage
      
                    
    USE: map:compresFile(string)

    Returns XML document fragment containing HEX binary string:
    <compressedFile$gt;[outPut]</compressedFile> See documentation for details.]]>
    com.f17.customfunction.mapperFunctions.replaceString Exposes replaceFirst and replaceAll java functions
    USE: map:replaceString(String,String,String,String)
    String to edit,
    regular expression,
    replacement string mode
    1 = all
    2 = first occurance
    See documentation for details.]]>


  • any user defined function in the rule set by the user

    Hello

    I wonder if I can use a function defined by the user in a rule set by the user in oracle sem... I've seen examples of user defined function the used in sparql query filter clause in this guide to dev... However, I don't know if I can define a function in oracle database SEM. and use it in the body rule or the head. For example, I want to define a function of the length that allow to calculate the difference between two dates.  So, I want to set a rule as follows: event1: d1 and event1 has_start_date: has_end_date d2 and duration (24, d1, d2) then event1:date_satisfiable 'yes '. Oracle supports this type of rule? Thank you very much.

    Hong

    Salvation Hong,

    User-defined in 12 c inference can be a good choice for your condition. Please see the following document.

    Defined by the user and querying inference

    Thank you

    Zhe Wu

  • Conditional User Defined Variable in the table of contents to RH10

    Hello

    I have a unique project created with tags of conditional compilation for a product in several countries. The name of the company was the same in all three countries, but now the name of the company in a country is about to change. I created UDVs with conditional compilation of tags to apply the appropriate name when aid is produced (Yay for RoboHelp 10 for allowing this).

    There are 58 topics in the table of contents that include the name of the company in the title of the topic. My problem is, if I include the UDV to the title of a page in the table of contents, conditional text is ignored.

    I guess that's because the table of contents allowing in conditional constructions apply to the page or the book itself and no text in the name of the page or the book.

    Please can someone confirm that this is the case? If so, I'll make a suggestion to Adobe.

    Thank you.

    Hello

    I hope that Willam won't mind my expand a little on the issue.

    I note that you already seemed to be aware that the UDVs are possible in the text of the table of contents. And if I understand correctly, your problem here is that you want to condition the UDV in the table of contents, right?

    Certainly a way to do that would be to have two different TOC entries. And apply tags to each, so that one or the other would be excluded. But to be honest, I always avoided tagging the elements of the table of contents that I saw myself mixed results.

    The thought here for me is that I wonder why you feel the need to apply a condition to a variable? Why not use a different version of the variable? Of course, you create variables and insert them, but you can actually create different sets of variables that have different values, then when you create your output you simply choose the Variable you want to use.

    See you soon... Rick

  • User defined function in the cases in article

    Hello

    I have a function that returns in priview:

    (1,2,3,4)
    

    Now I am using this function in SQL where clause

    Selection of the debug version where id in debug.debug_process)

    Executing select I am getting ORA-01722 invalid number, I understand the functions return not only numbers but character symbols too "(en).

    It is posible to use the function defined by the user that do not return a NUMBER CASE statement IN clause?  If this is not the case, what advice can I sugest for a list of values for use in the Clause IN?

    ID.

    Thank you!

    The SQL IN clause requires a set as the parameter type.

    This means that the function used must provide a suitable type.

    Examples:

    SQL> create or replace type TNumberSet as table of number;
      2  /
    
    Type created.
    
    SQL>
    SQL> create or replace function FunkyFoo return TNumberSet as
      2  begin
      3          return(
      4                  new TNumberSet(7369,7499,7902)
      5          );
      6  end;
      7  /
    
    Function created.
    
    SQL>
    SQL> select
      2          *
      3  from       emp
      4  where      empno in(select * from table(FunkyFoo));
    
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- ------------------- ---------- ---------- ----------
          7369 SMITH      CLERK           7902 1980/12/17 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 1981/02/20 00:00:00       1600        300         30
          7902 FORD       ANALYST         7566 1981/12/03 00:00:00       3000                    20
    
    SQL>
    SQL> select
      2          *
      3  from       emp
      4  where      TNumberSet(empno) submultiset of (FunkyFoo);
    
         EMPNO ENAME      JOB              MGR HIREDATE                   SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- ------------------- ---------- ---------- ----------
          7369 SMITH      CLERK           7902 1980/12/17 00:00:00        800                    20
          7499 ALLEN      SALESMAN        7698 1981/02/20 00:00:00       1600        300         30
          7902 FORD       ANALYST         7566 1981/12/03 00:00:00       3000                    20
    
    SQL>
    
  • "User define setting of the button" on Lenovo G570

    Hello

    I have a problem with my laptop Lenovo G570 (running Windows 7), in which case every so often a small icon (showing a green arrow pointing down) appears next to the usual icons for Skype, Bluetooth devices and so on. When this icon is present the graph to change the brightness and volume simultaneously will change, a horizontal black bar to that is in blue and light green.

    Hovering over the icon indicates that it is a "user set Setting button, and if I right click it allows me to browse a pogram 'open' with her, even if I'm still confused to its functionality.

    Is this a virus? I've already scanned with Malwarebytes, which does not pick up whatever it is and to this day a Super AntiSpyware scan does not do anything either. Usually I can run a system restore to my last saved system restore point in order to remove the icon, but it would be good to know for sure if I can't ignore the icon (and the changes to the user interface) or if there is a way to permanently solve the problem.

    Thank you

    Greg

    Greg

    It is part of Lenovo bloatware and I fear that you will need to contact them for the solution.  I always remove their software every time I receive one.

  • I have two docs Illustrator by using the same user-defined palette, but the colors do not match.

    I have similar graphs using 80% of the same color (CMYK) spot such as defined in a saved palette, but it is noticeable darker than the other.

    You have discovered a very powerful feature of Illustrator. You can assign attributes to the level of the group. Alternatively, you can assign attributes to the layer, character and type. Look at your appearance to confirm palette that you assign the assignment.

    For example, if you had a rectangle file with a transparency of 50% of a spot color, and then pull it together you and affect 50% of group, your end color transparent would be 50% of the spot color.

  • How to use the user defined function in the Update statement

    Hi all

    I wrote under the update statement to update the column based on the return value of function. but it does not work. Could someone help me on this. This function returns a single value for each project.

    Thanks in advance.

    UPDATE dg2. OD_PROJ_LOOKUP_TEMP o
    SET Months_In_Stage_Cnt = Months_In_Stage_Cnt_ret (o.project_id) select the double;


    Thank you
    Deb

    PLS-00231: function 'MONTHS_IN_STAGE_CNT_RET' cannot be used in SQL

    -What is the function that is declared private in a package? If Yes, then it must be public, otherwise the SQL engine cannot be used.

    Published by: Dom Brooks on November 18, 2011 09:43

  • PCM - data import and fields defined by the user - model import or the XML API?

    Hello

    I am currently partially by an implementation of the PCM with my business and have created a few user-defined fields in the application companies. I have data from a form on the internet into a CSV file that I want then to eye-ball before loading of PCM.

    I created a copy of the "export contracts report template ' to include these fields defined by the user, but when I try to re - import the data, the user-defined fields are not populated.

    No one knows if the user-defined fields can be updated in PCM, and if so does to do through the functionality of the XML API?

    Kind regards.

    Published by: 914327 on February 14, 2012 03:39

    The simple answer is that the built-in import utility is designed to import a preset list of fields only and will not import your custom fields even if they are added in the import file, and you will need to use the API to import these fields.

    However, there are unsupported methods to import this data directly to the database, or to add custom fields as options available for import. I can tell you more about these methods on the forum offline if you are interested.

  • Objects of the class defined by the user for an element of the ADF (button, inputfield)

    How to set a class object defined by the user for objects of the ADF?
    My requirement is that when I make a change to the object of the class, it should get reflectected to all instances on my page.
    For example:-I'll have the class object clsInputField, and all my fields entry in my pages are based on this object. So when I change clsInputField it should get reflected to all my controls based on this class object.
    Help, please!

    It's the classic use of a library of component declarative ADF.
    Put your postal code entry filed in an adf library, as well as any other code you will need to manage the entry, pack it as a library of the adf and reuse the item (and its formatting, validation) on each page as you like.
    If you change the component changes are global to all instances of the component.

    Take a look at this demo

    Timo

  • How to set 'User defined' palette display IMAQ?

    When I select the "User defined" palette on the screen, it shows just the regular grayscale palette.  I want to replace that with the palette 'Rainbow' but slightly amended in the range.  How can I do this?

    Thank you!

    MK

    Wire a new array of RGBs 256 elements to the User Palette of your image window property.  You can use IMAQ GetPalette to retrieve the rainbow palette and change that.

  • RH6: User Defined Variable: how to change?

    QUESTION
    Is it possible to change the value of a variable that is defined by the user in RoboHelp 6? If so, please describe.

    QUESTION
    After you change a RoboHelp project, I want to update the value of a user-defined variable, but I don't see any way to do this.

    BACKGROUND
    My PC is under Win XP SP2. I use RoboHelp 6 to create a HTML Manual. I have several subjects; each topic has its own model. A common feature of each model is a version number. I inserted a variable defined by the user to the version number in each model. RoboHelp pushed successfully this version number to all my subjects.

    If you double-click on the user defined Variable in the project manager, you can change the default value here. I think what you want but is a different value for different generations. In the first page of the wizard when you build there is a button of Variables, you can change it there is for this build.

    You can create different configurations for different versions and each will retain its own value. Craig Clarke wrote an article on what will soon be published on the Adobe site. Hope this helps until then as I know that Craig, who has more knowledge of this area, is currently on holiday.

  • How to display a user defined symbol when using addLinearFeature

    Hello

    We display our geospatial data of database image on the browser.

    With the help of MapViewer mv.addLinearFeature I am able to draw lines on it.
    I created styles in MapBuilder for our symbols userdefined and added to the Mapviewerconfig file.


    Now, according to our condition, we need to put our user defined symbols in the middle of the line when a line is drawn using addLinearFeature

    For example like this:



    -------------(::) -------------------

    Suppose that (:) that is our symbol.


    Please tell me how to do this.

    You can use the marker (user-defined symbol) as a label for the line. Something like the theme/style definition of roads in the mvdemo example where the highway shield is a marker.
    SQL > select styling_rules from user_sdo_themes, whose name = "THEME_DEMO_HIGHWAYS";

    STYLING_RULES
    ---------------------------------------------------------------------------






    SQL > select the definition of user_sdo_styles where name = 'M.SHIELD1';

    DEFINITION
    --------------------------------------------------------------------------------





    SQL >
    The content of ROUTEN (column/attribute) is displayed in the marker (m.shield1).

    Is your different condition or something similar work?

    If its for just displaying a marker (i.e. your symbol defined by the user who is the notice of user_sdo_styles of database) somewhere along the line then use a line style definition (see Appendix A of the guide):





    This will display the marker M.IMAGE105_BW on 0.15th of the length of the line.
    If you would like this marker repeated at fixed intervals (the length of the line subsequently 0.15) then use





  • How to operate the user defined table ddl transformations?

    How can I run (Oracle Data Modeller 4.1.0.873) my transformations of the user-defined table ddl (for the creation or - map source files). (In tools-> rules of design and Transformations-> Table DDL transform his only Test and debugging for an entity)

    Is it possible to have a new button in the toolbar to start my generations DDL?

    Hello

    There is a brief description in the file sqldeveloperdatamodelerscripting.docx located in the directory datamodeler\datamodeler\xmlmetadata\doc of your DM 4.1 instalation.

    Somehow you can read also here Oracle SQL Developer Data Modeler 4.1 user - defined DDL generation using transformation scripts

    You can use the script for the purposes of testing only, otherwise the output of this script will be included in the DDL if script 'Active' selected value and ago marked to be included in this generation of tables

    Philippe

Maybe you are looking for