Checkboxes: How do you use them to select geometries for display, MapViewer

Dear all
I am working in Oracle 10.2 and using PL/SQL. I am trying to create a procedure that generates a list of spatial layers, based on those currently contained in the database, which uses checkboxes, so that users can select which layers to display.
Once the user has made his choices and the results are submitted, the chosen layers are displayed through MapViewer. Currently the procedure, which is still being developed, is as follows:
PROCEDURE MAPLIST AS
CURSOR curmaplist IS
  SELECT spatial_map_name
         spatial_map_id
         geom
   FROM spatial_map_table;
  varmaplist curmaplist%ROWTYPE;
   varchecked VARCHAR2(32767);
BEGIN
FOR varmaplist in curmaplist LOOP
  htp.print('<FORM>
              <UL>
               <LI>
                <LABEL FOR="SM_ID||
                            curmaplist.spatial_map_id||">
                 <INPUT type="checkbox"
                        id="SM_ID||
                            curmaplist.spatial_map_id||"
                        name="SM_ID||
                              curmaplist.spatial_map_id||"
                        value="MAP TITLE: ||
                               curmaplist.spatial_map_name" />
                </LABEL>
               </LI>
              </UL>
             </FORM>'
  EXIT WHEN curmaplist%NOTFOUND;
   END LOOP;
END;I am not sure how to incorporate the checked element and then make use of it. Regarding subsequent use, I wondered if an IF statement could be used.
IF VARCHECKED = 'CHECKED' THEN...after this MapViewer XML is added, with the select statement making use of the cursor. For example:
select curmaplist.geom
from geg50160.spatial_map_tableFor the checked part itself, I have found the following Oracle code in Chapter 11 of Oracle Database Application Developer’s Guide - Fundamentals 10.2.
CREATE OR REPLACE PROCEDURE handle_checkboxes ( checkboxes owa_util.ident_arr )
AS
BEGIN
FOR i IN 1..checkboxes.count
LOOP
htp.print('<p>Checkbox value: ' || checkboxes(i));
END LOOP;
END;
/However I am not certain how I would incorporate that into my code. I take it i refers to the checkbox value. I've read that .ident_arr is an array which can hold multiple values but if so I am also not sure why checkboxes are counted.
Kind regards
Tim

Hi GKaiseril,
Thanks for your reply.  That's what I'm attempting to do, but I'm largely trying to "borrow" on-line JavaScript (see below) & modify for my PDF Form, w/ rudimentary knowledge gained while surfing the web.  The Form has 30 checkboxes that I want to limit users to a max. of 4.
So any add'l scripting tips would be most appreciated.
Thanks!
var NewCount = 0
getField("Check_Box1").value === "Yes"
{NewCount = NewCount + 1}
getField("Check_Box2").value === "Yes"
{NewCount = NewCount + 1}
getField("Check_Box3").value === "Yes"
{NewCount = NewCount + 1}
getField("Check_Box4").value === "Yes"
{NewCount = NewCount + 1}
getField("Check_Box5").value === "Yes"
  {NewCount = NewCount + 1}
if (NewCount == 4)
app.alert(“Pick Just Four Please”); return false;

Similar Messages

  • Ringbacktones - what are they and how do you use them

    I went to VCast tones to download some Ringtones and accidently bought a Ringbacktone.
    I would like to know what the Ringbacktones are and how do you configure them to work on your phone.
    Downloading Ringtones and setting them up for different users is easy.   However, I don't see any way to download Ringbacktones or how to set them up for contacts.
    Any information or instructions would be appreciated.
    Thanks

    What are Ringback Tones? Ringback Tones is a new personalization service, which replaces the standard ringtone for your friends and family to enjoy. Choose a song for your callers to hear before you pick up a call. Use the language of music to express yourself before you answer a call and say a word.
    How to purchase Ringback Tones? Ringback Tones may be purchased through the Internet, and through text messages to the Ringback Tone shortcode (728), use "RBT", "LIST", or the 3-digit song code in the message.* *Not Available in ALL Markets Check the Service Availability tab on the Ringback Tones Website.
    Click HERE for more info on Ringback tones
    You cannot upload your own ringback tones or make them. Ringback tones are stored to Verizon's servers. So you just cannot. You will have to buy one directly from Verizon if you want it

  • Want to setup collections, how do you use them?

    Now that I have all of my photos imported into LR and in the process of applying metadata, i would like to implement Collections. This would all be for family/travel related photos and I was curious how others are using them. So if you could please share a short description of how you are using them, that would be great.

    dj paige covered the mechanics of setting up a hierarchy. The details, I think, depend on how you think you will want to search in the future. With your example I'd set up a hierarchy like this:
    [PEOPLE]
         Family
              Baby
           Colleagues
              Lee
              Mike (Michael)
           Friends
              Ann
              Bill
    [EVENTS]
         Holidays
              Christmas
              Songkran
    [PLACES]
         Asia
              Singapore
              Thailand
         USA
              Hawaii (HI)
                   Maui
              Michigan (MI)
                   Detroit
    and so on. The keywords in brackets / capital letters are not exported - they are just for organization. I put possible synonyms in parentheses (..).
    I don't include dates because they're already in the metadata and you can easily filter for them or create Smart Collections.
    I would give all pictures of Baby the "Baby" keyword and then create a Smart Collection for "Best Baby Pics" (>= 4 stars).
    I actually posted a snapshot of my hierarchy at http://bkkphotographer.wordpress.com/2009/08/24/controlled-vocabulary/ so you can see what a compulsive keyworder will do. And http://bkkphotographer.wordpress.com/tag/keyword/ has a lot of comments and experiences on keywording in LR.
    Best of luck.
    Ian

  • What happens when you earn points on here? how do you use them

    what happens when you earn points on here? how do you use them

    https://discussions.apple.com/static/apple/tutorial/reputation.html

  • How to save the variant and select it for displaying output

    For       ALV variant use the FM_REUSE_ALV_VARIANT_F4 and REUSE_ALV_VARIANT_DEFAULT_GET to allow the user to save the variant and select it for displaying output.If   any of the data (Z fields in VBAP) is blank,the cell in the column must be highlighted in red.

    Hi,
       Refer thsi code
    DATA : wa_variant  TYPE disvariant,       "Work area for variant
           wa_variant1 TYPE disvariant,       "Work area for variant
    *&      Form  sub_get_default_variant                                  *
    This form will initialize the variant                               *
    FORM sub_get_default_variant .
    *--Clear
      CLEAR wa_variant.
    *--Pass the report name
      v_repid = sy-repid.                     "Report ID
      wa_variant-report = v_repid.
    *--Call the function module to get the default variant
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
        EXPORTING
          i_save        = c_save
        CHANGING
          cs_variant    = wa_variant1
        EXCEPTIONS
          wrong_input   = 1
          not_found     = 2
          program_error = 3
          OTHERS        = 4.
    *--Check Subrc
      IF sy-subrc = 0.
        p_varnt = wa_variant-variant.
      ENDIF.
    ENDFORM.                                  "sub_get_default_variant
    Regards,
    Prashant

  • Tags...how do YOU use them?

    I'm using Lightroom since first edition and also the tags. But I still find it strange that it should be such a tedious job to use them. I mean...when I think of a new tag I have to go over all of my 40,000 photographes to see if they fit the tag. That's why I generally stick to my 20 or so tags because else the database wouldn't be right. But more tags give more specific hits in a search. So I'm wondering how other users use tags and especially what do you do when you come up with a new tag?

    I assign tags initially at import. I have some tags that belong in a hierarchy and some that sit outside (at the top level).
    So, for travel stuff I have /travel/Malaysia/Kuching for example and this  contains some tags specific to Kuching (buildings which occur only there, say).
    I also have another set /buildings/religious which contains tags like Buddhist Temple and Anglican Cathedral and so on.
    When importing on the main (desktop) machine, I use the keyword list gadget.
    When travelling I import to LR3 on a netbook (runs ok with 1GB on that!). Then I just type keywords into the box and I don't worry about hierarchy.
    When I get home and import the netbook catalogue, I drag-and-drop the keywords that have appeared at the top level to where they really belong in the hierarchy.
    It is at this stage that I try to remember to create collections as I go.
    If I wasn't too lazy, I'd type the hierarchy at first import; I can never remember the syntax!
    This may sound a bit weird but it works for me. If I shot 1000 per day instead of about 1000 per month, I'd have to get really organised.

  • Macbeth color charts... how do you use them within Speedgrade?

    So all the promo literature around Speedgrade points that you can use shots of the Macbeth chip chart to match/profile different cameras. How does this process work? I haven't seen any instructions for it, and browsing through the menus and effects, there doesn't seem to be any intuitive way to access this feature.
    Does this feature also only work with the 6x4 chart or does it work with the more complicated charts as well?

    I use them to sort my progress and intent. I apply purple on import since it has no shortcut.
    Purple: Needs Rating and Metadata
    Red: Needs Process
    Yellow: Full size (might be PSD or JPG)
    Raw/DNG finished (CR2's are flagged, DNG are not. I keep both for redundancy)
    Blue: Post (reduced size for web, keeping various sizes in Lr is a personal thing not all agree with)
    None: Photos I want to keep for some reason, but have no plans to develop
    With this system I can limit what I want to see without turning off sub-item viewing.

  • Track Folders:  How do you use them?

    I was trying to figure out how to use track folders, but I can't seem to master their usage.
    Do any of you standardly use track folders to organize your tracks?
    If so, could you tell me what you do to make them reliable.
    I have found that track folder sometimes cause regions to jump around upon unfolding. Also, unfolding them causes the tracks to go to the bottom of the arrange window, which isn't very useful.
    Does anyone have any track folder tips?
    Thanks in advance.

    OK, this may sound stupid, but if you don't pack the folder, how do you get the regions into it? I still don't understand how to use these things.
    Jim Frazier wrote:
    rico3.5 wrote:
    .... After following the Logic 8 manual's instructions, the Regions were subsumed into the Folder, but their containing tracks remained where they were (minus their Regions). Unnerving, at best. I find myself asking if this is the correct behavior, or is it the Early-Adopter Blues (I last tried this with the initial release of version 8).
    This is normal behavior, I'm afraid. The tracks that the regions were on still remain on the arrange page. I agree it would be much more efficient if they were deleted from the Arrange page once the folder was packed. As it stands now, we have to do that manually.
    It would also be great, if Apple would update the folders to have some of the same visual functionality as the new takes folder. I'd like to see an arrow on the folder that can be clicked, revealing the contents.
    That being said, I use folders all the time. I use them for packing grouped instruments, like multi-tracked drums. So instead of having 14 individual drum tracks taking up precious Arrange page real-estate, I'm looking at a folder track instead.
    If I need to see those tracks, I go inside the folder. What's cool, is that once inside the folder, hitting "X" reveals the mixer for the contents of that folder only.
    Setting up key commands is crucial to a healthy folder relationship. Make sure you assign key commands for going into, and back out of a folder.
    I have also found it best, to only pack a folder when you're reasonably sure you won't need to unpack it. As noted, that's when things can get messy.

  • How do you add plug ins to adobe and once you do how do you use them

    I have tried to add plug ins but with no success if i can do this how then do i go about using them alongside adobe elements 13

    I suppose I should have explained what I was trying to do and it would have made more sense. I am trying to add ES2 oscillators to some Apple bass loops and the I/O on the channel strip has no more spaces when using Apple loops. I don't know why this would be impossible without creating a new channel, strip, instrument, etc. It seems like a pretty simple request; Apple bass loop + ES2 oscillation effects...

  • How do you use an iTunes gift card for in-app purchases?

    My kids received iTunes gift cards for christmas and want to use the $$ towards in-app purchases in Clash of Clans. We've already redeemed the cards to their iTunes accounts. Now they want to use them within the app.
    How do they do this? If they try to purchase something it seems to just go against a credit card, and not give them the option to use the iTunes credit.
    Please help!
    Thanks,
    PinoFamily

    legendary80 wrote:
    I entered the code and applied to my apple account, so I assume I already have the credit.  When I tried to make an in-app purchase, it asked me for my password again. 
    How do I know if the in-app purchase is deducting from the redeem credits or from my credit cards.
    Also, is it possible to check the remaining balance of the iTunes gift card?  This is the 1st time I deal with apple gift card... Quite confusing...
    Please kindly advise.
    Thank you for your attention.
    Purchases are always deducted from the credits first.  Look at the menu bar at the top for remaining credit.  My credit is $23.59.

  • How do you use Elements 10 as plugin for Lightroom 4

    Have been trying to use Elements 10 as plugin for Llightroom 4.2.  When I try to use prefences it can not find Elements 10.  What am I doing wrong.  It only shows videos of Mac not Pc

    On a windows system it would better to link to the PhotoshopElementsEditor.exe in
    C:\Program Files (x86)\Adobe\Photoshop Elements 10 (64 bit system)
    C:\Program Files\Adobe\Photoshop Elements 10 (32 bit system)
    In Lightroom: Edit>Preferences>External Editing

  • Plug-Ins:  How do you use them

    I copied the files to the correct folders, but I don't know how to use the plug-in. How do I bring the interface up? What do I have to do?
    Thanks

    Well, I'll hazard a guess and hope I don't get some sardonic reply. Apparently Igby downloaded some plug-ins and followed instructions to install them in the correct folder for their use in Garageband.
    answer:
    Select the track to which you want to apply the plug-in, click on the "i" icon and the track info window will pop up. If you click on the little arrow on the bottom left of the window it will expand it to show the details. In there there are effect boxes where a list the available plug-ins will appear in a drop down menu. Click on the one you want and it will apply that plug-in.

  • Light Table vs. Album - How do you use them?

    I have been using Aperture for some years now, but I never have come across a problem where I thought "Wow, a light table - that is the solution!"
    Usually all my projects start with collecting the images in an album - or a smart album / filter /flags - and then creating books, slideshows, webpages, or screensavers from them. Occasionally I started with a light table - just for the novelty of it - but usually ended up with a cluttered mess of images spread out before me and no clear plan how to proceed from there. So I am curious - what are typical workflows that require light tables instead of albums, and what is the advantage of using a light table instead of a more ordered Aperture item?
    Thanks for any input!
    Léonie

    Tank you, robogob, so like Lt.Tuvokyou are emphasizing the artist's view on Aperture; I tend to neglect that, being a computer scientist.
    I bet a few thousand feedback tickets would get them to fix the blurriness.
    Try it: http://www.apple.com/feedback/aperture.html
    Regards
    Léonie

  • Lasso tools; What are they and how do you use them?

    Can someone point me in the right direction here?  What is the best source in order to learn how to use the lasso tools in PSE-12?  I have a great photo of my new grandson and want to eliminate the background.  I am told that this can be done using a lasso tool and extract the foreground image as defined by the lasso and drop  it into a blank background.  How do I do it?
    Thanks.

    Here's another one that may help (again for Photoshop). Note that in PSE the Quick Select Tool shortcut key is 'A' (this is different from the Photoshop key 'w' referred to in the video) and you may need to press it more than once as it is also used for Magic Wand and Selection Brush. Refine Edge, used later in the video, is also in the tool options panel.
    Removing a subject from its background
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • ITunes gift cards - how do you use them in the volume license store?

    I am the IT admin at a K12 institution. I have two major issues.
    First, I used my personal email address as the administrative user for the volume licensing program. Even though that account is used as an ADMINISTRATOR for the volume licensing program, I can't sign into the volume  license store with it, because it's associated with the iTunes store. So I have a secondary email address. I tried adding that as a facilitator, but that can't be used because "it's associated with the iTunes store". I don't remember creating an account with that address, and I'm certain I've never used it to purchase anything. I can't delete it because Apple doesn't provide a way to do that.
    Down to the 1st question: Is there any way to reassociate one of my two exisiting accounts as a volume license facilitator?
    Second, I have a pile of iTunes gift cards that are supposed to be used for volume license purchases. When I tried to redeem the codes, it rejected them asking to have them entered in the iTunes store, which completely defeats the purpose of trying to buy volume licenses. Why would it reject money if it's on one piece of plastic instead of another?
    Setting up these iPads has been a nightmare. Any help would be appreciated.

    You need to call Apple at 800.MY.APPLE when the computerized voice asks why you are calling say Enterprise, that will get you to the Education / Enterprise division of Apple and they will be able to help you sort this out.

Maybe you are looking for

  • HT2589 can i transfer a credit balance from one itunes account to another

    hi helped my grandson set up his ipod but had trouble setting up his account so used mine so at the moment is using mine so his credit is on my account but i have got to open an account for him am i able to transfer the balance to a new itune account

  • Keynote '09 will not open ppt or pptx files

    Although I have had no trouble in the past, presently I am unable to open both .ppt and .pptx PowerPoint files in Keynote. The progress bar gets about 1/4 to 1/3 across and just stays there indefinitely until I force quit Keynote (I have left my offi

  • Open default mail application and attach the shortcut to it

    Hi All , I have one requirement in which we need to open default mail application from SAP then create a new memo in it and attach the shortcut of one transaction in that new memo. Can anybody please help me in the same ?

  • Comparision columns in Layout

    Hi All, In manual planning i have created a layout,in which iam entering the  planned values, iam not checking the comparision columns but when ever iam saving the layout, comparision columns is getting checked on, because of this in Trcd:upspm ,Iam

  • Please, help! two problems

    Dear All I have a new MacBook since last saturday. I've used it since today without problmes. And today, during the morning I've used airport and could connected to my home wireless conection. Then I put my computer into sleep, and when, some hours a