APEX Spinner Control?

Hi,
I am working on an app and i need to have a control that the user can select numbers in 0.25 increments either up or down. I know some other development tools have the spinner control. Is there an alternative available in APEX?
Has anyone implemented a similar functionality?
Thanks

ExtJS has a [spinner control|http://www.extjs.com/deploy/dev/examples/spinner/spinner.html] that does exactly what your asking for , very easy to integrate.
Regards
Mark
[Random Insights into Oracle|http://oracleinsights.blogspot.com/] | [Marks Playpen|http://apex.oracle.com/pls/otn/f?p=200801]

Similar Messages

  • APEX Form : Control Label width

    Hi,
    Using APEX 4.1.
    I have a from with short and long(some are 100 chars) field labels. My question is how do I control the width of the labels or the label column . . . my long labels are pushing the form regions right out of the template borders. Is there a way to globally set or wrap labels?
    Thanks

    Hm... you could use short labels instead of long ones, and put the long description into the help text of the item. This help text is shown when using the matching label template (like "optional with help").
    You can also put an html break tag ("< br / >") into the label text to force a two row label at some point.
    Edited by: Sven W. on Aug 7, 2012 7:25 PM

  • Apex version control: what are "good practices"?

    I have made my first Apex application that is been tested right now. Once this version is released, I should want to have a stable and robust versioning system for this application. I don't have any experience with this. So any info about this issue would be very welcome. Are there some good practice rules I should follow? What are things to watch out for? Etc... Some things I'd like to be able to do:
    1. Have version numbers assigned to the application
    2. Have update scripts to go from one version to the next. (If possible have update scripts to go to the latest version, whatever the current version is.)
    3. Rollback to a previous version of the application
    4. See te differences between different versions of the appliction
    I also would like the same for the database schema.
    Any help would be very welcome...

    Here how I do it:
    Each Apex application has a unique version number in the format Major Release Number / Minor Release Number / Patch Release Number e.g.
    Version 1.3.2
    Each object and build script are separate files, with their own version number and stored in a Configuration Management Database (CMDB) e.g. Subversion. The version number, author, description, date, change history are commented into the header of each script.
    Each Release on CD is also given a unique sequential number so that different releases of the same version can be tracked through test. Each CD Release will usually consist of an application export, object scripts and a build script. The CD image is also checked into the CMDB.
    If an application is going to distributed as a packaged application or installed on multiple environments then each release is a full build. For single instances, the builds are incremental.
    Cheers
    Shunt

  • Access control for different user groups in APEX 4.0

    Hi guys,
    in Apex 4.0, is there any way to use the access control page to configure access control for different user groups?
    The access control page currently only has an access control list by users with 3 privileges namely, Administrator, Edit & View where Administrator has the highest access level & View the lowest. Therefore 1 user cannot have more than 1 different privilege, however if the user belongs to 2 or more different groups then we can control what access he can have in a more fine grained manner. We also want to have more than the 3 privileges given.
    Can we assign different groups to different users and let them have different privileges to be configured by page, region, process or item level?
    Now Apex will create 2 tables, Apex_Access_Control & Apex_Access_Setup to store the application access control mode & access control list. It will also create 3 authorization schemes "access control - administrator", "access control - edit" & "access control - view" based on the 2 tables.
    Does this mean we have to change the table structures & edit the authorization schemes to suit our usage? We are reluctant to do this because if we upgrade to a newer version of Apex then we would have to merge our pl/sql coding with Apex's updated code.
    How can we auto-configure more than the 3 authorization schemes in the access control page? Is there any way to achieve a finer grain of access control based on the current access control administration page given by Apex without writing it ourselves?
    We are afraid that we may have missed something on Apex access control & do not want to reinvent the wheel.

    Hi Errol,
    to build your own application authorization scheme around the security model supplied by Apex for administration of the Apex environment would be a bad idea.
    This was never intended for authorization scheme management in custom built Apex applications, it was solely intended to control access in the Apex environment overall. The API for it is not published, and making changes to it, such as adding more roles, would run the risk of breaking the overall Apex security model. It would not be supported by Oracle and Oracle would not guarantee the upwards compatibility of any changes you make in future versions of Apex.
    In short, you should follow Tyson's advice and build your own structure. As he indicated, there are plenty of examples around and provided your requirements are not too complicated, it will be relatively simple.
    Regards
    Andre

  • How to control FONT in list items?

    What can I do in ApEx to control the font of the items in a list?
    I have read other postings here on controlling font size on various items,
    and I have tried every way I can think of to code a #TEXT# statement in various places on the DHTML Tree template.
    I have not been able to change the font size for a DHTML Tree list item.
    I have coded the: &lt style type="text/css" &gt td.t12header (font-family:"Times New Roman";font-size:20px;) &lt/style&gt in the Page Definition / Edit Attributes / HTML Header section, and this DOES alter the font characteristics for the DHTML Tree list heading.
    I see in the generated page source that there are two other CSS labels, "t12body" and "dhtmlTree" on the &lttr that includes the text for the list item, but adding a: td.t12body... or td.dhtmlTree... entry in the &ltStyle ... block does not alter the font of the list item name. I have tried a few other things too, but no luck.
    What entries, and where, can I add that will allow me to alter the font size of a list item?

    Got it.
    The following style block, placed in the HTML Header section in the Page Edit page for the page that has the LIST on it, will control the features of the LIST (a dhtml Tree list in this case):
    (LT)style type="text/css">
    td.t12Header {font-family:"Times New Roman";
                  font-size:50px;
                  font-style:italic;
                  color:blue}
    .dhtmlTree a {font-size:20px;
    color:green}
    (LT)/style>
    The td.t12Header entry controls the characteristics of the LIST header;
    The .dhtmlTree a entry controls the characteristics of the LIST elements.

  • Do you use APEX built-in DML functionality or code it manually?

    Just out of interest more than anything, wondering what everyone else does, and what advantages/disadvantages they see in their method?
    Personally I never use the built-in stuff for manipulating, I create all the items and then a PL/SQL procedure in a package. Then I code a process to call that procedure to do any inserts/updates/deletions. I know this is a long way around to do something which APEX does fairly well (for simple situations at least anyway) but I find it far more flexible to go with this route and I prefer anything which is changing data to live on the database (as an object).
    It also means that (other than changing the columns etc) changes can be made a lot more easily - APEX version control is pretty poor for a production environment and team-coding so the fewer changes to the app the better.
    Anyone else any views?

    I pretty much always use packaged up stored procedures for DML operations. All business logic goes into the packages where possible - in fact, the only element where I break this encapsulation methodology is when defining reports - even then, I've sometimes implemented reports as a table function, although this approach can cause more problems than it solves, performance-wise. Views provide an acceptable degree of abstraction in those cases when I want to hide the complexity of a query.
    It's pretty rare that I'll be interrogating and updating a single table, although I take Roel's point re: updatable views and "instead of" triggers.

  • Database roles and APEX

    Can database roles be used with APEX to control table and other object access between schemas?
    If so, please provide an example.
    If not, please explain why the product would be limited in this way. One of the major short comings we see is the need to directly grant privileges to each schema, rather than having the power of roles to do this.

    Kannan,
    With DATABASE ACCOUNT credentials set, we were able to authenticate users for each page, in accordance with their table privileges, as follows. Please join us in encouraging Oracle to build this logic into Application Express, as one of the authentication options. We consider this to be a major shortcoming of an otherwise great product.
    For each page, create a PL/SQL anonymous block process "before header", to determine if the user has the necessary privileges. In this example, the user must have UPDATE privilege for one table, and SELECT privilege for the other table used by the page.
    DECLARE
    CURSOR c_get_role IS
    SELECT DISTINCT drp.granted_role,dtp.privilege,dtp.table_name
    FROM dba_tab_privs dtp, dba_role_privs drp
    WHERE dtp.grantor = '<database name>'
    AND dtp.grantee = drp.granted_role
    AND drp.grantee = v('APP_USER')
    AND dtp.table_name IN ('<updateable table name>','<readable table name>')
    AND dtp.privilege IN ('UPDATE','SELECT');
    BEGIN
    :Pnn_USER_ROLE_MESSAGE := 'NO ROLE';
    :Pnn_USER_ROLE_PROTOCOL := 'NO ROLE';
    :Pnn_USER_HAS_PRIVS_FLAG := 0;
    FOR rec IN c_get_role
    LOOP
    IF rec.table_name = '<updateable table name>' AND
    (rec.privilege = 'UPDATE')
    THEN
    :Pnn_USER_ROLE_MESSAGE := rec.granted_role;
    ELSIF rec.table_name = '<readable table name>' AND
    (rec.privilege = 'SELECT' OR rec.privilege = 'UPDATE')
    THEN
    :Pnn_USER_ROLE_PROTOCOL := rec.granted_role;
    END IF;
    END LOOP;
    IF (:Pnn_USER_ROLE_MESSAGE != 'NO ROLE') AND (:Pnn_USER_ROLE_PROTOCOL != 'NO ROLE')
    THEN
    :Pnn_USER_HAS_PRIVS_FLAG := 1;
    END IF;
    END;
    Note that APEX_PUBLIC_USER must have read privilege for the dictionary tables.
    Now you can use the flag variable and create an HTML region to source the error message to display if the user has insufficient privileges.
    PL/SQL Function Body Returning a Boolean..
    IF :Pnn_USER_HAS_PRIVS_FLAG = 0 THEN
    RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    Add a condition to the normal page regions to display themselves only if the user has privileges and appropriate role, based on the flag being TRUE (same as the IF block above, except FLAG = 1).

  • Conversion of string (0x000000)-(0xFFFFFF) into hex

    hi,
    i would like know solution for this problem.
    i will get values in the form of string 0x000000-0xFFFFFF
    or 0x00-0xFF by keyboard.
    i have to change value,increment(+) by one position and also decrement(-) by one with spinner controls.
    and i bave to send back updated string value.
    if you need further information, let me know.
    Thanks.
    ([email protected])

    if you need further information, let me know.
    Ok will do.
    BTW be careful not to leave your email [email protected] on forums because
    spammers scan them looking for email addresses such as [email protected] and if they find [email protected] then [email protected] is likely to get spammed a lot
    Thanks.
    ([email protected])

  • How do I set blank data to date field in pdf form ?

    Dear Sir,
    I made PDF form by Acrobat X on Windows PC and then,
    read the pdf form by acrobat reader on iPad.
    Date field  is included in the form.
    The Acrobat version is 10.1.6 .
    The acrobat reader version is 10.5.0 .
    First, I put the wrong date data to the date field.
    So, I tried to clear the date field.
    I want to put the blank data to the date, but I think
    there are no way to put the blank data on iPad
    I would like to know how to reset the date data.
    If that helps, I tried to the same thing on Android.
    I could put blank data to the date field by BS key.
    Sincerely,
    PV NEXT CO., LTD.
    Kiyonobu Matsuo
    PVネクスト株式会社

    Here is how to clear the Date field on the Ipad.
    NOTE: In order for this to work that has to be another TEXT field in the PDF to get the keyboard to pop-up.
    Click on Text field (this is to get the regular keyboard on screen)
    Click on Date field (date spinner control will show up)
    Click on SAME DATE field (spinner control will disapper)
    Click on "Reset Field" on top of keyboard (date field will now be empty)
    Click any where on PDF that is not another Date field (keyboard will disappear and date field will be empty)
    Bingo! your free and clear.

  • File Browse Page Item Layout

    Hi,
    I have a page with a file-browse item which I created with APEX 4.1: there's a "Choose"-Button on the right hand side of the file path. Now I created another page with a file-browse item in Apex 4.2 and it looks slightly different: now the button is named "Browse" and is on the left hand side of the file-path. I'm wondering how to influence the layout of the browse item. Is there a way to do this?
    Thanks,
    Stephan

    Hi Stephan,
    the button text and position is defined by the browser. It's not something APEX can control. Is it possible that you use a different browser now. If you have a look at your 4.1 app, does it still show "Choose"?
    Regards
    Patrick
    Member of the APEX development team
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • How to Use REGION_STATIC_ID in authentication scheme

    Hello,
    I am storing Region Static ID in Table , on bases of that table I created an Authentication scheme, I want to give specific user to access that region.
    When I am passing #REGION_STATIC_ID# in authentication function it is not allowing me to do that.
    I want to to use static ID as below.
    -- authentication Scheme function return Boolean
    AND obj.OBI_APP_STATIC_ID = #REGION_STATIC_ID#
    can any one please help ?
    Muhammad Rehan

    Hello Muhammad,
    >> I am storing Region Static ID in Table , on bases of that table I created an Authentication scheme
    The “out-of-the-box” APEX approach is different from yours. You maintain a list of regions per your users. APEX allows you to maintain a list of users per your regions (or other APEX component). You should check the principles of the APEX Access Control List - http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/app_comp.htm#sthref1263 – and see if you can use them to your needs.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • Javascript errors using Checkpoint Mobile Access VPN: Workaround needed

    Hi,
    We are currently in the process of upgrading from APEX 3.2 to 4.2.1 at our organization. We are done with fixing all applications and tests have been successful so far.
    However we are facing one issue when we use applications by passing through a web proxy called Checkpoint Mobile Access VPN. The issue never occured in APEX 3.2 when using this proxy.
    Before explaining the issue here is a quick description of how this proxy works. I first authenticate through the proxy's login page. Once authenticated, there is a list of shortcuts I can choose to access our Portal.
    From the portal, I then have links to my APEX applications (APEX authentication is done with Oracle Single-sign-on).
    The proxy modifies all URLs to something like this:
    https://my-proxy-host/axess/Web/pls/apex/f,CVPNHost=my-apex-host,CVPNProtocol=http,CVPNOrg=rel?p=10001:101:2345777452066514
    It also modifies HTML content and javascript libraries in order to work with its translated URLs (and maybe for some other reasons which I don't know). In javascript files, it replaces some functions and variables with some of its own.
    Now here is the issue. This javascript rewriting causes a syntax error to occur in desktop_all.min.js , more precisely in the code that concerns apex.security . This causes all apex and jquery functions to break.
    To investigate deeper, I removed the #APEX_JAVASCRIPT# placeholder in a template and included one by one all the uncompressed libraries that are used by desktop_all.min.js .
    This resolved the issue.
    After this I tried to include again all the same libraries but in their minified version. I then got the issue back. After searching a bit I realized that the issue is located in security.min.js .
    The minified version of the library has a syntax error but the uncompressed version works well.
    I analyzed the syntax error and it's caused by the proxy that closes a parenthesis at the wrong place. I've never had this kind of javascript rewriting issue before but the proxy software definitely failed in this case.
    I understand that the error is caused by the proxy software and has nothing to do with APEX. However I need to put a workaround in place since we have no choice of using the proxy in many situations.
    -Does anyone here ever got or heard about this issue? If yes, did you find a workaround?
    -I may have found my own workaround and would like to know your opinion on it:
    I took the uncompressed security.js file and minified it with a tool found on internet. The result code is different from the one bundled with APEX.
    I then refered to this new file in my template and had no error this time.
    What I finally did is edit desktop_all.min.js and replace the line concerning apex.security with my new file. It seems to work quite well.
    I know it's not a good approach to overwrite files provided by APEX like this but I would prefer this than including all the dozens of files.
    I would like to keep #APEX_JAVASCRIPT# so APEX continues controlling which libraries to include.
    What do you think about this? Maybe is there something similar that would be a better approach?
    Thanks in advance

    Hello
    I have similar problem - difference is just in using PPTP instead of VPN client but basicaly it is the same setup.
    Simply ip local policy doesn't work when you have some encrypted traffic.
    Can you post your configuration for the internet-redirect-rmap route map.
    I have tried with match gre protocols and ports 1723 for pptp but it simply doesn't work so I am wondering is this even feasible on cisco router.
    Dusan

  • Dynamic actions in toolbar actions of tables

    Hello all,
    I have an issues when I create a dynamic action in the toolbar buttons of a table which looks like  that:
        if(@ZCLOSED== 'X',"ERROR","DECISION")
    I tried the same syntax in a pushbutton in a normal form and here it worked w/o problems;
    Did somebody used already dynamic actions in the tool bar of tables?
    Thanks
    Werner

    Hi Werner,
    The toolbar button expects an action name and not an expression.
    If you only use the action from that form, you can simply create an action with another name and use conditional transition.
    Or, you can try this cool (though long) workaround:
    Create an action (lets say MyAction) and add another form (form1) to the model.
    Add a spinner control to form1 and give it the dynamic action you want.
    Set the visibility of form1 as false and connect your form with form1 using signal in/out to be triggered by MyAction.
    finally,assign @spinner1+1 to the spinner when MyAction is raised.
    Good luck,
    Shay

  • Dynamic sizing

    I'm working on a spinner control, similar to JSpinner under Swing. It should look like this: < value >
    Two arrows and a value in between.
    The whole control thing I've got setup ok, I'm having trouble with the painting. The spinner is constructed of three nodes: Arrow, Label, Arrow held together in a GridPane.
              // the layout
              GridPane lGridPane = new GridPane();
              // left arrow
              Arrow lLeftArrow = new Arrow(true);
              lGridPane.add(lLeftArrow, 0, 0);
              // for showing the value
              Label lValueLabel = new Label("test");
              lGridPane.add(lValueLabel, 1, 0);
              // right arrow
              Arrow lRightArrow = new Arrow(true);
              lGridPane.add(lRightArrow, 2, 0);
              // add to self
              getChildren().add(lGridPane); // TODO: use GridPane but get the CSS layout to work
         }The Arrow naturally is a single class with a rotation and transform to get the left pointing or right pointing version. Something like this:
         class Arrow extends Region
              public Arrow(boolean left)
                        Line line = new Line();
                        line.setStartX(0.0f);
                        line.setStartY(0.0f);
                        line.setEndX(10.0f);
                        line.setEndY(10.0f);
                        getChildren().add(line);
                        Line line = new Line();
                        line.setStartX(10.0f);
                        line.setStartY(10.0f);
                        line.setEndX(0.0f);
                        line.setEndY(20.0f);
                        getChildren().add(line);
                   // optionally rotate 180
                   if (left)
                        this.getTransforms().add(new Translate(10, 20));
                        this.getTransforms().add(Transform.rotate(180, 0, 0));
         }My question is: the styling of the label is done in CSS, so I do not know how large the font will be. How do I bind the height and width of the Arrow to the size of the outside container?
    The GridLayout makes the Arrow now the same height as the label, so I've tried different bindings, like
    Bindings.add(line.endYProperty(), this.heightProperty().multiply(0.5));But with no succes.

    But I don't know how to dynamically size the RAW buffer. Any advice gratefully received.The only way (I can think of) that you can dynamically declare length, precision, or scale for a PL/SQL variable is to do within an anonymous PL/SQL block of Native Dynamic SQL.
    Doing this is probably more of a headache than it is worth - very impractical to code/debug/maintain/scale.
    Michael

  • Images with DHTML Tree items

    I have tried everything I could think of, and whatever I found by searching this forum, to place an image before the text of an item in a DHTML Tree.
    Finally, I have what I want.
    First, to have an image appear before the top-level tree item I followed Carl's suggestion to use a modified template (in my case, a modified copy of the DHTML Tree template) which has the #IMAGE_PREFIX# entry replaced with #IMAGE#.
    Second, to have an image appear before each second-level tree item I prefixed the item name with an "<img ..." string with the full path to the image file I want to appear.
    I have a feeling there is a better, more "generic" way to accomplish this, but I haven't gotten that far yet.
    It would be sooooo much more productive for me to have written documentation for this, but thank goodness for this forum. Without it I would have gotten exactly nowhere. So many things I attempt to do in APEX seem to be "rites of passage".

    Hello,
    You can create a tooltip on anything that supports an
    onmouseover="" just reuse the code that we discussed
    with help text the only difference is your not
    pulling from the built in APEX ITEM help view but
    your own table. But other than that it is exactly the
    same.
    http://forums.oracle.com/forums/message.jspa?messageID
    =2215842#2215842
    Regards,
    Carl
    blog : http://carlback.blogspot.com/
    apex examples :
    http://apex.oracle.com/pls/otn/f?p=11933:5
    Carl,
    Understood, except I do not know where to load the onmouseover= code.. The dhtml list object does not have the same HTML Form Element Attributes property that other APEX style controls have.. I will attempt to use the User Defined attributes and see if that works..
    Thanks!
    Tony Miller
    UTMB/EHN

Maybe you are looking for

  • Populating the Signal Express Category on the Functions Palette

    Hi Can anybody help with advice on how to populate the signal express category on the block diagram Functions palette ? Thanks Solved! Go to Solution. Attachments: LV Functions Palette.PNG ‏14 KB

  • How to restore library from backup on external hard drive

    I am helping my wife move her library to a new computer after the old one crashed. I backed up my wife's music library to an external hard drive by simply copying and pasting all the files in her My Music >> iTunes folder into the external hard drive

  • Java apps have started running very slowly since last update.  Anyone else experiencing any problems.

    There is an java app that I have run for years without any problem  Within the last few days it started running very slowly.  I went to the Apple store and ran the same app and experienced exactly the same problem  Yesterday I tried running this app

  • Extremely Large Memory Footprint under Linux

    I have not experienced this problem as I don't use linux regularly but a friend of mine has dismissed java as too slow because of this. He says that after he launches Forte or JBuilder (both java apps) they take about 500 MB of RAM. I know Forte is a

  • Message Bridge  error:Connection Factory

    Hi           I am trying to build a Message Bridge accross two domains which are using the same version of Weblogic Server(8.1).           I am running into this error..           <Warning> <Connector> <BEA-190032> << Weblogic Messaging Bridge Adapte