Store selected days as integer in db using ADF

Hi,
I'm using Jdeveloper 11.1.2.3.0
We're migrating a JSP/Servlet application to ADF.
In one of the pages, we let the user select the days on which he would like an operation to be accomplished.
Basically, we're using bitwise operations to convert the selected fields from a binary string into an integer, and that integer is stored in the db.
You can see the basic idea here
Since we cannot alter the table, we need to find a workaround for ADF.
I thought about creating a transient attribute in the view object that holds the binary string, and in that way the original attribute(integer) will be calculated by converting it from binary to decimal in the code.
Now my problem is how can I get the selected days from the page and store them in the string. What should I use as component? And how should the LOV(which I think is going to be necessary) behave?
Appreciate your help,
Mo

Hi Timo,
Thank you again for your valuable input.
I was able to use <af:selectManyCheckbox> to accomplish my task :)
I think I forgot to mention that I was using it in a table, so I wasn't sure how to use a converter for that.
However, I got on the right track using this blogpost by Umesh Agarwal [http://umeshagarwal24.blogspot.com/2012/06/selectmanycheckbox-component-in-table.html].
I didn't do it the same way he did though. All I needed to do was set the value property of <af:selectManyCheckbox> to a List variable in a bean, and then modified the
getter and setter of that variable to implement my logic. It works great!
Again thank you for pointing me in the right direction
Mo

Similar Messages

  • How to Auto Select some RadioButton on page load using ADF/JSF

    Hi,
    I am learning ADF and need some help. I have multiple radio buttons and couple of text boxes on my page. How can I make some radio button be selected based on some value from a database table and also populate the text boxes with the corrosponding value when a page loads. Any tips on how it can be done using ADF. Any sample tutorial will be helpful.
    Thanks

    Hi,
    when you e.g. use ADF BC then the radio button should be selected automatically based on the value of the attribute. If the row is new then you can have a default value specified in the ADF BC ViewObject attribute.
    However, if you just dragged the radio button and checkboxes onto the page - not using any ADF binding - then you will have to create a managed bean with a field variable (incl. setter/getter methods) to link the radio button's value property to it using Expression Language
    Frank

  • Automatically switches me to different apple store! I am using UAE store , but now it says I am using Singapore! But when I go to apple store and change it to UAE again , it charges 1 dhs and it work for the day. It behaves differently the next time ?

    Automatically switches me to different apple store! I am using UAE store , but now it says I am using Singapore! But when I go to apple store and change it to UAE again , it charges 1 dhs and it work for the day. It behaves differently the next time ?

    Where did you buy the iPad and register your iTunes account? What country is the credit card you used when you set up your iTunes account?  Where are you now?
     Cheers, Tom

  • My brand new macbookpro is locked up. It's been trying to select the apps I want to use with my email account for over an hour. Please help

    My brand-new MacBook Pro is locked up. It's been trying to select the apps I want to use with my email account. How can I cancel it I've tried everything that I know of

    - Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar
    - Or call Apple . You have 90 days of free telephone support
    Complimentary Support (USA)

  • How to set background color for selected days in DateChooser

    How to set background color for selected days. I created
    checkbox for each day [Son,Mon,Tue,Wed,Thu,Fri,Sat] and a
    DateChooser, I want to change the background color for the selected
    day when i click on a button after selecting the desired checkboxs
    [ monthly wise/yearly wise]
    Thanks in advance

    There is no button involved in the following code, but it may
    be of use to you:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()">
    <mx:Script>
    <![CDATA[
    private var origColor:uint;
    private function init():void {
    origColor = dc.getStyle("selectionColor");
    public function setBackGrdColors(newColor:uint):void {
    dc.setStyle("selectionColor", origColor);
    if(dc.selectedDate){
    var dayOfWeek:Number = dc.selectedDate.day;
    else{
    return;
    switch(dayOfWeek) {
    case 0:
    if(sun.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 1:
    if(mon.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 2:
    if(tue.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 3:
    if(wed.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 4:
    if(thu.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 5:
    if(fri.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    case 6:
    if(sat.selected)
    dc.setStyle("selectionColor", newColor);
    break;
    default:
    break;
    ]]>
    </mx:Script>
    <mx:VBox horizontalAlign="center" verticalGap="20">
    <mx:DateChooser id="dc" textAlign="left"
    change="setBackGrdColors(cellColor.selectedColor)"/>
    <mx:HBox width="100%" horizontalAlign="center">
    <mx:CheckBox id="sun" label="Sun"/>
    <mx:CheckBox id="mon" label="Mon"/>
    <mx:CheckBox id="tue" label="Tue"/>
    <mx:CheckBox id="wed" label="Wed"/>
    </mx:HBox>
    <mx:HBox width="100%" horizontalAlign="center">
    <mx:CheckBox id="thu" label="Thu"/>
    <mx:CheckBox id="fri" label="Fri"/>
    <mx:CheckBox id="sat" label="Sat"/>
    </mx:HBox>
    <mx:HBox width="300" horizontalAlign="center">
    <mx:Label text="Background Color" />
    <mx:ColorPicker id="cellColor"
    selectedColor="#FF00FF"/>
    </mx:HBox>
    </mx:VBox>
    </mx:Application>

  • When i attempt to download a 'free' app from the app store error message comes up: "Account Not in this store- your account is not valid for use in the US store.  You must switch to the Guyanese store before purchasing."

    when i attempt to download a 'free' app from the app store error message comes up: "Account Not in this store- your account is not valid for use in the US store.  You must switch to the Guyanese store before purchasing."

    Change App Store
    1. Tap "Settings"
    2. Tap "iTunes & App Stores"
    3.Tap "View Apple ID"
    4. Enter your user name and password.
    5. Tap "Country/Region."
    6. Tap "Change Country/Region"
    7. Select the region where you will be located.
    8. Tap "Done".

  • How come I could not download anything today?  It keeps saying my app is not available in the US store and that I must first switch to Philippine store.  But I have long been using Philippines as my location.  Pls help me.

    How come I could not download anything today?  It keeps saying my app is not available in the US store and that I must first switch to Philippine store.  But I have long been using Philippines as my location.  Pls help me.

    Try going to the bottom of the Featured tab in the App Store app on your device and tap on your account id, tap on 'View Apple ID' on the popup and log into your account, and then select the Country/Region section and select the Philippines.

  • Selected day background color

    I have long wished that the background color of the selected day were more visible. I stumbled across this workaround that might be useful, at least on my iMac.
    In System preferences, Universal access set the contrast slider is all the way to the left. It makes a significant difference in the visibility of the selected day. Not perfect but better, and it doesn't take much to obliterate the background color.
    The keyboard command to lower the contrast is ctrl-opt-cmd-, to increase use a "." instead of the "," and you can really see the difference with iCal open.

    Your DateChooser dialog is modal. The setVisible(true) method is thus a blocking method. You must make sure you did retrieve its date before you call fireEditingStopped :           public void actionPerformed(ActionEvent e) {
                   if (EDIT.equals(e.getActionCommand())) {
                        //The user has clicked the cell, so
                        //bring up the dialog.
                        button.setText(dateFormat.format(curDate));
                        dateChooser.setDate(curDate);
                        dateChooser.setVisible(true); //Make the renderer reappear.
                        curDate = dateChooser.getDate();
                        fireEditingStopped();
                   } else {
                        curDate = dateChooser.getDate();
              }

  • My Ipad 2 have a frozen with itunes icon a lot , i bring to apple store they fix it  , but on ly use about a week ipad have the same broblem a gain , I very tired and mad , I paid alot money for apple but they give mena ****  that why I buy sam sung table

    My Ipad 2 have frozen with itunes icon alot , I bring to apple store fix it alot , but bring home use only a week , ipad have same broblem again , I very tired and mad because I pay alot money for apple but they give me bad ipad , future I thing about samsung tablet . Now my ipad still have a problem I am very upset this ****.

    For what it's worth, you posted this in 2011, and here in 2014 I am still having this same issue. Over the last two days, I have had to unlock my apple account 8 times. I didn't get any new devices. I haven't initiated a password reset. I didn't forget my password. I set up two factor authentication and have been able to do the unlocking with the key and using a code sent to one of my devices. 
    That all works.
    It's this having to unlock my account every time I go to use any of my devices. And I have many: iMac, iPad, iPad2, iPad mini, iPhone 5s, iPod touch (daughter), and my old iPhone 4 being used as an ipod touch now.  They are all synced, and all was working just fine.
    I have initiated an incident with Apple (again) but I know they are just going to suggest I change my Apple ID. It's a simple one, and one that I am sure others think is theirs. I don't want to change it. I shouldn't have to. Apple should be able to tell me who is trying to use it, or at least from where.
    Thanks for listening,
    Melissa

  • Store select-options on database

    Hello ABAP community,
    I would like to store select-options on the database. Of course, beforehand they need to be entered by the user. From this, the two questions arise:
    • Is here a way to put select-options on a regular dynpro?
    • Is there a re-usable mechanism of saving select-options to the database. Such a mechanism should exist because saving variants of a report is doing basically this.
    Thanks for your input,
    Christian

    Hi Christian
    To use select-options features at an ordinary screen you can use the FM <b>"COMPLEX_SELECTIONS_DIALOG"</b>.
    <b>OR</b>
    You can code a selection screen
    SELECTION-SCREEN BEGIN OF SCREEN 1001 .
    SELECTION-SCREEN END OF SCREEN 1001 .
    within your program and call it as a subscreen at your screen.
    "Variant Management" feature of selection screens is a whole process. That is you can find and utilize it using its FMs (e.g. RS_CHANGE_CREATED_VARIANT, RS_CREATE_VARIANT, RS_REFRESH_FROM_SELECTOPTIONS,...) conveniently. However, I guess it will be sophisticated, i.e. variant id's, and other stuff...
    Regarding to your scenario you can prefer storing them by your own procedure at whose basis again the structure <b>"RSPARAMS"</b> exists.
    Hope this helps...
    *--Serdar

  • Since last few days everyday whenever I start using Keynote its getting updated. I don't understand whether Apple is pushing updates everyday ? If no then why its consuming almost 400   MB data on this update ??

    Since last few days everyday whenever I start using Keynote its getting updated. I don't understand whether Apple is pushing updates everyday ? If no then why its consuming almost 400   MB data on this update ??

    Delete Keynote from the Applications folder then install again from the Mac App Store.

  • I purchased 2 albums on iTunes store 2 days ago. Now I discovered that albums are not downloaded

    I purchased 2 albums on iTunes store 2 days ago. Now I discovered that albums are not downloaded. Money has been paid. What should I do to download songs I paid for ?

    If using a computer's iTunes then try the Store > Check For Available Downloads menu option, or go to the Purchased link under Quick Links on the right-hand side of the iTunes store homepage and see if they show for downloading there. If using an iOS device check to see if they show in the Purchased tab in its iTunes store app for downloading

  • I want to switch stores from Japan to USA. I used to have an iTunes card, and there's 15 YEN left in my account, how can I get rid of that so I can start purchasing in the US store using my new credit card?

    I want to switch stores from Japan to USA. I used to have an iTunes card, and there's 15 YEN left in my account, how can I get rid of that so I can start purchasing in the US store using my new credit card?

    I can't seem to find an app that costs my available balance. iTunes said I need to spend it ALL before I can change stores. This means I cannot totally change stores.... Hopeless.

  • Whenever I updated or downloaded a new app from the App Store, a message appears saying:   "Account Not In This Store Your account is not valid for use in the U.S. store. You must switch to the Swedish. store before purchasing."   I made some research onl

    Whenever I updated or downloaded a new app from the App Store, a message appears saying:
    "Account Not In This Store
    Your account is not valid for use in the U.S. store. You must switch to the Swedish. store before purchasing."
    I made some research online and asked a few of my friends with the same problem. All they did was sign out of iTunes from settings>iTunes & App Stores or from the App Store itself and signed back in. It worked for many of them but not with my iPhone 4s. It really does get on my nerves to always sign out and back in to the App Store as it sometimes works and allows me to update and download or most of the time it doesnt.
    When viewing my Apple ID account on my iPhone (after entering the password) it either views my account or says:
    "This Apple ID is only valid for purchases in the U.S. iTunes Store. You will be switched to that Store. Try your purchase again."
    So I press on OK then either switches me to the App Store app of its choice, or says "Cannot connect to iTunes Store".
    I tried restoring iOS6 hoping it was a bad installation, but i still have the same problem.
    Can anyone help me please?
    Arian

    Are you sure your AppleID is NOT tied to the US store? If you are trying to buy an app from the Swedish store you will be unable to do that. Some apps are only available on certain stores. That is why you get the "Cannot connect to the iTunes store" message when trying to buy that app. Your updates are being done from the US store ; thats why you can update sometimes and sometimes not.
    If you keep encountering problems contact iTunes support. They will help you sort it out.

  • I can use my appleID without any problems for using to download new apps in the app-store or Itunes - Problem: I can´t use my ID at facetime and Imessage - I´d like to add an EMail account on top to my mobile number. My password will not be accepted!!!???

    I can use my appleID without any problems for using to download new apps in the app-store or Itunes - Problem: I can´t use my ID at facetime and Imessage -
    I´d like to add an EMail account on top to my mobile number to use more this services. My password will not be accepted!!!??? I try it and i try it and i try ist, throughout the same problem. Whats on? The user help desk said, i´ve to reset and use the WLAN key new as well as possible - no way!

    Contact the App store for Apple ID help. Their support link is on the right of the App store window
    LN

Maybe you are looking for

  • Which imac is best for my daughter? 2.7 or 2.9 ghz

    MY daughter is going to study A level moving image at college, before going onto university. My wife and I are computer novices, so would like some advice. We are looking at the 21.5 imac either 2.7 or 2.9ghz, is there much difference between the two

  • How to attach Documents in a Reply E-mail?

    As everyone know that We can upload or attach everything in the camera roll, We can attach other documents like .pdf , .doc etc.. with the help of some external application, but it support only attachment in the form of a new E-mail, But i want to at

  • RD Web Access SSO not working correctly

    I have two Win 2008 r2 sp1 servers.  Both are RD Session host servers.  One of them is also serving as a RD Gateway server AND RD Web access server.  Most everything is working well and as planned.  However, I am having an issue with the the RD Web A

  • Make Bootable OS 8.6 HD in a G4 Machine

    A little background: A client requested a file that we had backed up long ago to a floppy disk. We had used Disk Doubler on that floppy, so the only machine that could open it was this dinosaur of a Mac, with a 15-year-old SCSI hard drive, no CD burn

  • Need some help from the management : A deeply dissatisfied customer

    Hi, I hope I am one of the very dissatisfied customers of you company. I bought a new T715 and it has already gone for a repair twice. I gave it for repair for the first time in october (ETA was 20 days and told by the service centre) and I got the p