Is it possible to define a boolean as a checkbox at Model layer of JDev?

We are very new to JDeveloper and are using JHeadstart. We are a 'forte' shop and are converting our applications over to JDeveloper/JHeadstart. Our current system has a number of Boolean columns in our Oracle tables that are defined as Number(1) but are used as Booleans and displayed as checkboxes.
For example the column "discontinued" is in every edit table we have and keeps historical reference to values that are no longer used. I am wondering if it is possible at the Model layer to define all of these so that they are generated through JHeadstart to display as checkboxes. This is done at the BusinessModel layer in forte and allows us to define this in one spot and everything generated is based on that definition.
In JDeveloper, this is currently being done at the JHeadstart Application Definition each and every time one of these tables is used, but I was wondering if it can be done through the Control Hints level in the Model Layer so that it is done once (similar to forte) and have been looking at editting the formatinfo.xml file as a possible solution. Has anyone else done this? I have searched this forum and found a couple of things wrt title bindings, but not this specifically. Can this be done?
Thanks very much in advance.
Mary B
University of Windsor

I did some poking around and I believe I found what you were looking for. It can most easily be illustrated in the form of a screen capture - as a picture can save my fingers a thousand words...
http://cs.uwindsor.ca/~ruston7/checkboxdefn.png
This should be all the information anyone needs to know in order to implement the same set up in their own ADF Business Components.
Notes:
- 'DOMAIN' refers to the static domain I have defined throughout my JHeadstart applications to properly map the check box to yes/no (ref: JHeadstart Dev Guide for details).
- I am not sure what READ_ONLY_IN_TABLE is referring too. I am quite positive that this field is editable pretty much anywhere for this specific ViewObject.

Similar Messages

  • Is it possible to define a function in the MathScript Node

    Is it possible to define a function in the MathScript Node

    You can not define a function inside of a MathScript Node, but only because it isn't necessary. The way custom functions work in MathScript is that they are saved in .m files located in paths in the MathScript path list. When the MathScript compiler receives a function that it doesn't recognize, then it searches for it in the path list, and upon finding it, compiles and loads the function. You can specify these search paths manually by going to File>>MathScript Preferences from the MathScript Window or dynamically by using the path() command within a script.
    To answer your original question, if you would like to create custom functions dynamically within a VI, then you can simply build your custom functions using strings and then save them to an ASCII file with the extension .m. You could either save the file to a path already in the MathScript path list or you could dynamically specify the path by passing the path into a MathScript Node as a string and by using the path() command at the beginning of your script to set it.
    Kind Regards,
    E. Sulzer
    Applications Engineer
    National Instruments

  • How can i define a boolean variable with the condition if i got a specific text on a selected column?

    How can i define a boolean variable with the condition if i got a specific text on a selected column?
    Example:
    my select results:
    [id = 102] [Company = 'Microsoft']
    If i got microsoft in 'Company' i want to my another table with the columnName "Microsoft" get "true".
    Can you help me?

    That is called 2-table UPDATE.
    Example:
    http://www.sqlusa.com/bestpractices2005/updatewithcorrelatedsubquery/
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Possible to define color of screen BEHIND documents?

    I'm using Adobe Acrobat X Pro.
    Is it possible to define the background color of the documents when they open in Adobe Reader? I'm not talking about the document pages themselves, but rather that crappy grey and/or ugly blue screen that always displays behind the document pages.
    Can I define this for the user?
    Any suggestions?

    Can I define this for the user?
    No.

  • Top Link 10.1.3 is it possible to define hierarchical queries in jdev

    Is it possible to define a hierarchical query in a named query in the mapping workbench (jdev 10.1.3) or we have to do it dynamically with the java api ?
    Any example is welcome.
    Best regards

    i didn't find the method that return the readallquery object i need from my named query
    i'm doing something wrong ?
    public class FlexTreeSetHierarchicalClause
      public static void setHierarchicalClause(oracle.toplink.descriptors.ClassDescriptor descriptor)
        // instantiante expression builder to build the expressions
        ExpressionBuilder expressionBuilder = new ExpressionBuilder();
        // Specifies a START WITH expression
        Expression startExpr = expressionBuilder.get("Flextree").get("flexitemI").equal(expressionBuilder.get("Flextreenode").get("flexitemparentI"));
        // Specifies a CONNECT BY expression
        Expression connectBy = expressionBuilder.get("Flextreenode").get("flexitemchildI").equal(expressionBuilder.get("Flextreenode").get("flexitemparentI"));
        //Specifies an ORDER SIBLINGS BY vector
        Vector order = new Vector();
        order.addElement(expressionBuilder.get("Flextreenode").get("flexitemchildI").get("flextext").get("label"));
        // get the readallobject to add the hierarchical clause
        DatabaseQuery dq = descriptor.getQueryManager().getQuery("getFlexTreeByName");
        ReadAllQuery raq = descriptor.getQueryManager().getReadAllQuery();
        // add the hierarchical clause
        raq.setHierarchicalQueryClause(startExpr, connectBy, order);

  • Is it Possible to define Levels within Levels in a Dimension

    Hi is it possible to define Levels within Levels in Dimension??

    Hi is it possible to define Levels within Levels in Dimension??

  • Is it possible to define a fnc module inside my ABAP code.

    If yes then please let me know how?
    The main program of the function "xyz" does not begin
    with "FUNCTION-POOL". The above error is always thrown, if i try to
    define a function in my abap code.          
    Currently I presume it is not possible to define FM here.
    Can anyone tell me What function pools are? and the difference between function groups and function pools
    Points will be rewarded.

    Hi Vinod,
          I think the program the you are creating is a REPORT program. And you want to create a Function module for which as I told you need to create a Function Group. A Function Group is also a program similar to a REPORT program. So you cannot create a FUNCTION GROUP inside a REPORT program. What you need to do is goto SE80, there in the dropdown select Function Group and give a name to it and then using forward navigation you can create Function Group, Once you created the Function group you can create function module using Se37 or in SE80 itself. Then in your report program using CALL FUNCTION to call this function module you created.
    Regards,
    Sesh

  • Is it possible to define a seperate number range for purchase requisitions

    Hi Experts,
    Is it possible to define a seperate number range for purchase requisitions that come from Forecast vs normal MRP requisitions so that our purchasing department can identify the origin of the document?
    Thanks
    for the thoughts
    Sreeni

    You'd need to figure out manually how forecast PR's are different from MRP PR's (the field from PR tables ) and then in the user exit I mentioned the program looks at the table T161 and field NUMKI, and if the PR getting created is from forecast change that NUMKI in the program to a different one else keep it as it is. If you're know abap programming it won't take long to figure out the logic else work with your developer to implement it.

  • Is It Possible To define a size of the Procedure Parametere?

    In Oracle Is It Possible To define a size of the Procedure Parametere?
    If i have the procedure like
    Test_sp(no int,name varchar2)
    Is it possible to define a size
    Test_sp(no int(5),name varchar2(255))
    Thanks
    Rangan S

    As Anthony said - no, not in the parameter signature of a procedure or a function. Which could have unexpected run-time errors as one could wrongly assume that using a "derived" type will allow this.
    The following example illustrates:
    SQL> create table datatype(
    2 varchar2_5 varchar2(5),
    3 number1 number(1)
    4 );
    Table created.
    SQL>
    SQL>
    SQL> create or replace procedure fooProc( s datatype.varchar2_5%TYPE, n datatype.number1%TYPE ) is
    2 s1 datatype.varchar2_5%TYPE;
    3 n1 datatype.number1%TYPE;
    4 begin
    5 begin
    6 DBMS_OUTPUT.put_line( 'len='||length(s)||' value='||s );
    7 DBMS_OUTPUT.put_line( 'value='||to_char(n) );
    8 exception when OTHERS then
    9 DBMS_OUTPUT.put_line( 'parameter display failed with error '||SQLERRM(SQLCODE) );
    10 end;
    11
    12 begin
    13 s1 := s;
    14 DBMS_OUTPUT.put_line( 'string parameter assignment succeeded' );
    15 exception when OTHERS then
    16 DBMS_OUTPUT.put_line( 'string assignment failed with error '||SQLERRM(SQLCODE) );
    17 end;
    18
    19 begin
    20 n1 := n;
    21 DBMS_OUTPUT.put_line( 'number parameter assignment succeeded' );
    22 exception when OTHERS then
    23 DBMS_OUTPUT.put_line( 'number assighment failed with error '||SQLERRM(SQLCODE) );
    24 end;
    25 end;
    26 /
    Procedure created.
    SQL>
    SQL> exec fooProc( 'test1', 1 );
    len=5 value=test1
    value=1
    string parameter assignment succeeded
    number parameter assignment succeeded
    PL/SQL procedure successfully completed.
    SQL>
    SQL> exec fooProc( 'this should fail', 1 );
    len=16 value=this should fail
    value=1
    string assignment failed with error ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    number parameter assignment succeeded
    PL/SQL procedure successfully completed.
    SQL>
    SQL> exec fooProc( 'test', 1234 );
    len=4 value=test
    value=1234
    string parameter assignment succeeded
    number parameter assignment succeeded
    PL/SQL procedure successfully completed.
    SQL>
    Note that only the string assignment fails. The string parameter works fine. And there is no impact at all on the number side, despite seemingly constraining it to a single digit.

  • Is it possible to define what clients are allowed to connect?

    Hello,
    under certain circumstances i would like to have the possibility to define what clients are allowed to connect to the database. I was trying to find something like an "access list" for the listener configuration in which one can define what computers will be allowed by the listener to connect to the db, but unfortunately i didn't succeed.
    Do you know if something like this exists? (its about an old 9.2 db...)

    Sorry, it seems this already is what i was looking for:
    http://www.dba-oracle.com/security/node_filtering.htm
    I will give it a try
    kind regards

  • Possible to define Sequence in NW71 dataobjects

    Hi There,
    Is it possible to define sequencing in Dataobjects in NW7.1 like NW7.0.
    I know LDO->FDO (leading,following data object) and association,distribution rules takes care of it while sending the data to Client.
    But what if we want to create two linked dataobject records from client and we want that LDO should be created first and then FDO should be created based on LDO generated records and vice versa.
    Thanks in advance!!
    Cheers,
    Dev

    HI,
    It is not possible to define sequence of data objects being processed in NW 7.1
    This is lead from the fact that as much as possible, data is processed parallely in DOE and its a strength that no special handling is required while sending data via DOE like following a specific sequence.
    Even if we manage to post data (for diff data objects) to DOE from client or BE or even while extracting to devices, since the processing happens in parallel queues,  the end result cannot be predicted.
    only exception is in the case of backward compatible applications, there is a feature called download request where the data will be sent to devices depending on the sequence mentioned in download request during sync.Its only for backward compatible apps and infact performance will be affected due to this overhead in processing.
    Any specific business case that requires this behavior?
    Best regards,
    Liji

  • Is it possible to define xhtml:tabscript width by using %

    Thanks in advanced to everybody
    I am new in BSP developing. I have a page with two frames where one shows a menu and the other one shows a tabstrip which contents a frame where dynamically a URL is called.
    As far as I have seen it is not possible to define the width and the height of a tabscript by % only by px. I have checked out the forum and I have seen that other people have had the same problems on defining width and height on tabscripts.( see xhtmlb:tabStrip height attribute posted by Durairaj Athavan Raja on Jan 27). They solved it by fixing by hard the height.
    My problem is that the client wants to see as least scroll as possible.
    A solution would be to find an optimal fixed width and height but it seems to be difficult because the application is going to be run in different computers with different settings. Hence the better one would be to define the width and the height on running time, for example, as it is mentioned in the message, by javascript.
    So if I have the screen size on a javascript variable, is there any way to use that variable as the width or the height of my tabscript?. Does anyone know how can I define the width and the height of the tabscript in such a way that it seems like I am using %.
    Any idea is welcome.
    -- Oscar --

    Correct me if i havent understood your question correctly.
    you have a tabstrip and within the tabstripitem you have an iframe and and fill the iframe src based on the tab clicked. Right?
    If yes.
    There are three factors to the whole scene here with regard to hieght.
    1. page height
    2. tabstrip  height
    3. iframe height
    I have faced the similar issue and solved as follows.
    1. I had set the  <htmlb:page scrolling  to "NO" so that i dont get two scroll bars at the right side (one for page and the other for iframe)
    2. i have placed the iframe outside tabstrip
    3. put the tabstrip and the iframe into normal html table like below.
    <table height=100% border="0" cellpadding="0" cellspacing="0" width="100%">
                  <tr>
                    <td width="100%">
          <xhtmlb:tabStrip id                       = "TS1"
                           renderSingleTabAsHeading = "FALSE"
                           flowIndicatorVisible     = "FALSE"
                           width                    = "100%"
                           onSelect                 = "mySelect"
                           selection                = "<%= selected_tab %>"
                           viewStateMode            = "COLLAPSED_EXPANDED"
                           dropDownListVisible      = "TRUE" >
        </td>
          </tr>
          <tr>
            <td height=100% width="100%">
    <iframe  id="I1" name="I1" scrolling="yes" width="100%"  height="100%" src="<%= iframesrc %>"
           border="0" frameborder="0" >
    </td>
          </tr>
          </table>
    Hope this is clear.
    Regards
    Raja
    /people/mark.finnern/blog/2004/08/10/spread-the-love

  • Is it possible to define macros for Safari 6?

    I'd like to define a macro that will do the following in Safari 6 (1) remove all cookies, (2) delete the history and (3) empty the cache. I'd like to run this macro at any time when Safari is open. Is it possible to automate this?

    Where is the value of that variable coming from?
    The simplest way to implement a global variable in a database is to create a table that stores the value and have all the code reference that value.
    INSERT INTO tab2( x1, x2, x3, y )
      SELECT tab1.x1, tab1.x2, tab1.x3, global_variable_table.VARIABLE
        FROM tab1, global_variable_table
    WHERE <<some condition>>
    You can also create session-level variables using either package variables or session contexts, though that may cause a few problems for three tier applications that don't cleanly map user sessions to database sessions.
    INSERT INTO tab2( x1, x2, x3, y )
      SELECT tab1.x1, tab1.x2, tab1.x3, SYS_CONTEXT( 'MY_CONTEXT', 'MY_VARIABLE' )
        FROM tab1
    WHERE <<some condition>>or
    INSERT INTO tab2( x1, x2, x3, y )
      SELECT tab1.x1, tab1.x2, tab1.x3, pkg_variables.get_variable_y()
        FROM tab1
    WHERE <<some condition>>Justin

  • Not possible to define Custom Applications in PI2.0 for Assurance?

    Hi,
    Problem:
    It seems that it's not possible to chage ports for the pre-defined applications under Operate->Applications and Services.
    Impact:
    We have a business application that we would like to define but that applications ports (tcp 3128 and 5001) collides with already prededfined applications like:
    Application Details: http
    Protocol(s)/Port(s) tcp/80, tcp/8000, sctp/80, tcp/3128
    Application Details: yahoo-messenger
    Protocol(s)/Port(s) tcp/5000-5001, tcp/5050, udp/5000-5001, tcp/5100
    By showing the wrong application name for our own applications makes the Assurance part pretty useless for us and our help desk.
    Any suggestions?
    Regards
    Ronnie

    I think you maybe made a wrong turn somewhere. This is the forum for Photoshop Elements, the junior consumer version of Photoshop. I suspect you want either the Premiere forum, the Photoshop forum, or the Encore forum, all of which can be found here:
    http://www.adobeforums.com/webx/.3bc4f8d8/

  • In new version of Thunderbird it's not possible to define file types to be recognized automatic - because of this files are automatically opened while sending

    When I send attachments - for example graphic file (.mi extension from CoCreate's Designer drafting program) Thunderbird "opens" it (while sending it) as it is text file and thus makes teh message long (thousands of rows). I'm now solving this so that I make zip file. Also, there is no problems with Word's, Excel's, Adobe's files which are recognized automatically by Thunderbird.
    In old versions of Thunderbird I've just defined the type of each file extension (which was not recognized automatically by Thunderbird) and Thunderbird didn't open an attachment while sending the mail. In last version there is no such possibility and this is a step back.
    I'm sending you an example...
    Thank you for your answer,
    Dušan Lanišek
    TITAN d.d.
    Slovenia

    I can understand that its a bit iritating, but I dont think your email is larger than if it wasnt showing. look at "show code" and compare. Your .mi-file has to be sent within the email, either in plain view or hidden.

Maybe you are looking for

  • Do I need to buy an old version of Crystal Reports to put reports in browse

    Hello, I am doing some work for a small company of about 40 people.  They need reports.  Of course, I love using Crystal Reports and can create all the reports they need. However, there is an application written in Excel using Userforms that is in pl

  • Problems in Function Module of a Custom Virtual Cube

    Hi all, I have copied a Function Module-- RS_BCT_FIGL_DATA_GET_VC10 into a custom one ZRS_BCT_FIGL_DATA_GET_VC10. A custom Virtual Cube(ZFIGL_V10) was also created using this FM. The Function Module and Function Group are activated and there are no s

  • ABAP Runtime Error Intermediate Save

    Hello , I have an issue regarding following message that i see in the ABAP Runtime Error A RAISE statement in the program "SAPLCOVG" raised the exception condition "NOT_FOUND". Since the exception was not intercepted by a superior program, processing

  • Problème avec la 3D sur photoshop CC

    Bonjour tout le monde ! Je n'en peux plus ! J'ai beau tout vérifier, je n'arrive pas à employer la 3D dans la version photoshop CC que je viens tout juste d'installer (version évaluation). Ce message est apparu lorsque je me suis connecté  pour la pr

  • RSS feeds to the iPhone

    I use MS Outlook for my mail and subscribe to several RSS feeds. They work great in Outlook on my desktop. But they don't carry over to the iPhone. I'm missing the boat here. When away from my desktop, where I usually read those RSS feeds, I'd like t