Check checkbox at runtime

I am totally new to Oracle Forms...
How do I check a checkbox at runtime.
I want to check the checkbox at WHEN-NEW-BLOCK-INSTANCE.
Appreciate any help.
Thank you.

Joseph,
It's the value in the checkbox item that decides whether the checkbox will be
checked or uncheked. Let me give you an example. Suppose you have designed
an item (say ItemA) with the following set up in the property pallete:
Item Type: Checkbox (obviously)
Enabled: Yes
Value when checked: Y
Value when Unchecked: N
Check box mapping with other value: Unchecked (assume for now)
Initial Value: Y
====================================================
At runtime:
When the screen gets invoked, the checkbox shows checked as the
Initial Value is Y
(Answer to Your first question)
You can uncheck or check the checkbox as you like with your
input device (mouse, may be). Y or N will be stored in
the database if you have checked or unchecked the checkbox.
Is that the question?
====================================================
If you want to do progrmatically:
do code as follows in whatever trigger you like according to
your need and restriction that may apply to the trigger.
:<block name>.ItemA := 'Y';
The checkbox would show checked
:<block name>.ItemA := 'N';
The checkbox would show unchecked
====================================================
There is nothing you can do about it with set_item_property.
In fact you don't need to use set_item_property. You are
not going to change any property of the item. As I have
understood, you are working only with the value of the item.
====================================================
Have I answered your question? Let me know if you need to know
anything specific.
Anupam

Similar Messages

  • How to check the AIR runtime version?

    How can I check the AIR runtime version that is currently
    installed on the machine?
    Is there a properties file stored in the "Documents and
    Settings" Folder or something like that?
    Thanks in advance!
    Maik

    There is a KB article on this:
    http://kb2.adobe.com/cps/407/kb407625.html
    This may get outdated, but as of AIR 1.5.3 the paths are:
    Mac OS X
    Open the /Library/Frameworks/Adobe AIR.framework/Versions/1.0/Resources/Info.plist text file and locate the <key>CFBundleVersion</key>entry. The corresponding string entry represents the version of AIR, for example: <string>1.5.3.9130</string> 
    Linux
    Open the ApolloVersion text file located inside the /opt/Adobe AIR/Versions/1.0/Resources directory (for example the ApolloVersion text file would show 1.5.3.9130)  

  • What is the best practice for checking if CR2008 runtime is installed?

    I've created our crystal report functions in a .Net exe and it is launched from a Delphi application.
    I need to check if the .Net runtime for CR 2008 is installed on a machine at startup of the delphi application.
    Right now I am checking the registry at
    HKEY_LOCAL_MACHINE\Software\Sap BusinessObjects\Crystal Reports For .Net Framework 4.0\Crystal Reports
    and checking the value for CRRuntime32Version.
    This works great if a user is an admin on the machine, however I'm assuming due to group policies and restrictions this registry is not able to be read for some reason. My prompt continues to show up after installation because it can not get the value of the registry.
    So before I get winded and ramble on, what is best practice to test to see if the runtime has been installed? Is there a particular section of the registry I can check? My next thought is to check for the runtime directory but that might not be efficient as I would hope.

    Registry and folder is about all I can think of. Problem is, you're never guaranteed that something was not installed and then uninstalled and "stuff" like folders are getting left behind (a common occurrence from my experience...). I've also seen registry entries left behind. Perhaps looking for crpe32.dll in the c:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 folder will be best. I've never seen the crpe32.dll orphaned after an uninstall.
    Other than that, when you run the app and there is not runtime, you will get an error and you could trap that, possibly launch the installer... naaa - too goofy...
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • How to loop to get value of all checked checkboxes?

    I am a non-techic trying to fix something for work. Your help is really appreciated.
    I have a form with checkboxes (4 check boxes). Everything sumbits fine. SQL db is updated perfectly and data is displayed on webpage w/o any problem. However when I go to edit an entry, on the edit form, (if more then one checkbox were selected oringally), non of the checkboxes are checked. If only one checkbox was selected orinally, that checkbox is selected. What am I missing? I know I am suppose to use loop to get all checked checkbox values, but I have no idea how.
    Here is my code so far.
    <input type="checkbox" name="colors" value="red" <cfif #getResultSet.colors# EQ "red">checked</cfif>>red
        <input type="checkbox" name="colors" value="blue" OR<cfif #getResultSet.colors# EQ "blue">checked</cfif>>blue
        <input type="checkbox" name="colors" value="green" OR<cfif #getResultSet.colors# EQ "green"></cfif>>green
        <input type="checkbox" name="colors" value="yellow" OR<cfif #getResultSet.colors# EQ "yellow">checked</cfif>>yellow

    JayYaj wrote:
    However when I go to edit an entry, on the edit form, (if more then one checkbox were selected oringally), non of the checkboxes are checked. If only one checkbox was selected orinally, that checkbox is selected.
    You've given all the checkboxes the same name. Give them each a unique name and you will be able to access them individually. Current standards also require a unique ID, which can (but does not have to) be the same as the name.
    The "OR" characters in your code are not doing anything. You can safely delete them.

  • Method to uncheck a checked checkbox

    Hi there,
    I have been trying to uncheck a checked checkbox but haven't found a way to do so. Is there a java method to do it? I've tried setState(false) but it doesn't work.
    Thanks in anticipation :)
    kiat

    Hi, dieterjanssen
    Thanks for your advice :)
    Yes, I do have an itemListener added but I don't have the itemStateChanged method. How do I implment that method?

  • How do I check if ADF Runtime is in WebLogic Server?

    My question [Error deploying FOD to WLS|http://forums.oracle.com/forums/thread.jspa?threadID=1075670] has not been answered and it's buried now, so I'm trying to self-diagnose. All the tutorials talk about installing ADF Runtime to WebLogic Server. It sounded like since my WLS was intalled when I installed the JDeveloper, I should not worry about it. But what can I check to really make sure the WLS has the ADF Runtime. From my WLS deployments page, I see adf.oracle.domain(1.0,11.1.1.2.0) and adf.oracle.domain.webapp(1.0,11.1.1.2.0) libraries. Is that it?
    Edited by: user543237 on May 21, 2010 10:43 AM
    "Inserting link" does not seem to work for me.

    Thanks for the link. I tried what's suggested (insearting JRF related JVM parameters), but I'm still getting the same errors when deploying the StoreFrontUI project.
    weblogic.application.ModuleException: Failed to load webapp: 'StoreFrontWebApp.war'
    at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:404)
    at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:180)
    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
    at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:508)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    Truncated. see log file for complete stacktrace
    Caused By: java.lang.ClassNotFoundException: oracle.adf.library.webapp.ResourceServlet
    at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:280)
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:253)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    Truncated. see log file for complete stacktrace
    The changes are indeed in effect:
    CLASSPATH=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\ext\jdbc\oracle\11g\ojdbc6dms.jar;C:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JROCKI~1.0-6\li
    b\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.3.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-a
    ll.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;*C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;*C:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar;.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip
    Starting WLS with line:
    C:\Oracle\MIDDLE~1\JROCKI~1.0-6\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=AdminServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~1\WL
    SERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Ddomain.home=C:\Oracle\MIDDLE~1\USER_P~1\domains\JDEVDO~1 -Dcommon.components.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logg
    ing.impl.Jdk14Logger -Djrockit.optfile=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.domain.config.dir=C:\Oracle\MIDDLE~1\USER_P~1\domains\JDEVDO~1\config\FMWCON~1 -Doracle.server.config.dir=C:\Oracle\MIDDLE~1\USER_P~1\domains\JDEVDO~1\config\FMWCON~1\servers\Adm
    inServer -Doracle.security.jps.config=C:\Oracle\MIDDLE~1\USER_P~1\domains\JDEVDO~1\config\fmwconfig\jps-config.xml -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Digf.arisidbeans.carmlloc=C:\Oracle\MIDDLE~1\USER_P~1\domains\JDEVDO~1\config\FMWCON~1\carml -Digf.arisidstack.home=C:\Oracle\MID
    DLE~1\USER_P~1\domains\JDEVDO~1\config\FMWCON~1\arisidprovider -Dweblogic.alternateTypesDirectory=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Dweblogic.jdbc.remoteEnabled=false -Dweblogic.management.discover=true -Dwlw.i
    terativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_classpath weblogic.Server

  • Checked checkboxes in Numbers for iPad

    Hi,
    Before submitting feedback to Apple about the following glitch, I’m posting it here to find out whether any Numbers for iOS jockeys have experienced the glitch also.
    In Numbers 09 (2.0.3) under Snow Leopard.8, I imported a spreadsheet created in Excel for Windows (not sure which version), then added a column to one of the worksheets/tabs, and in every row within this column I inserted a checkable checkbox, then saved the file in Numbers 09 format.
    After importing the file into Numbers 1.4 for iOS (on a 1G iPad) via iTunes 10.3.1, I checked the checkbox in some rows. I did this by displaying the virtual keyboard and switching to the one that contains the checkbox, then tapping on the checkbox. This method worked; i.e., a check displayed in each checkbox where I performed these steps.
    After quitting Numbers for iOS, I connected the iPad to my Mac, imported the spreadsheet file to the Mac via iTunes, and opened the spreadsheet file in Numbers 09.
    All checkboxes were unchecked.
    Many thanks in advance!

    I submitted the above info to Numbers feedback.

  • Set value in text field when checking checkbox

    Hi,
    I have a manual tabular form and when I check cb1 I want to set ben2 to Oracle.
    Is there anyway I can do that?
    Here you can see my very simple example:
    http://apex.oracle.com/pls/otn/f?p=22968:3:4142231640027285:::::
    My tabular form query:
    select
    to_char(dag,'day dd mon yyyy')||apex_ITEM.HIDDEN(1,pk) dag
    , apex_item.text(2, ben1) ben1
    , apex_item.text(3, ben2) ben2
    , apex_item.text(4, ben3, null,null,null,'f04_'||rownum) ben3
    , apex_item.text(5, ben4)||apex_item.hidden(6, cb1) ben4
    , apex_item.checkbox(7, ROWNUM, 'onclick="test(this)"',DECODE (cb1, 'Y', ROWNUM)) cb1
    from dummy
    Regards Daniel

    Hi Anirban,
    The sql-query for the report:
    select
    to_char(dag,'day dd mon yyyy')||apex_ITEM.HIDDEN(1,pk) dag
    , apex_item.text(2, ben1) ben1
    , apex_item.text(3, ben2) ben2
    , apex_item.text(4, ben3, null,null,null,'f04_'||rownum) ben3
    , apex_item.text(5, ben4)||apex_item.hidden(6, cb1) ben4
    , apex_item.checkbox(7, ROWNUM, 'onclick="test(this)"',DECODE (cb1, 'Y', ROWNUM)) cb1
    from dummy
    On the region, Header and Footer -> Region Header
    <script type="text/javascript">
    function test(pThis)
    if(pThis.checked)
    {document.getElementById('f04_'+pThis.value).value = 'Checked';}
    else
    {document.getElementById('f04_'+pThis.value).value = 'Not Checked';}
    </script>
    That's all.....
    /Daniel

  • Checked CheckBoxes moving around in DataGrid

    I have a DataGrid and I use a CheckBox as a custom
    ItemRenderer/ItemEditor. I make the CheckBox a custom renderer so I
    can disable it in certain rows depending on the value of the data
    in that row.
    When I select a few check boxes in the DataGrid and then
    scroll through the DataGrid other CheckBoxes that I did not check
    will show a check. Even some of the disabled CheckBoxes will show a
    check mark.
    The data binding works properly no matter how screwed up the
    rendering is. Only the CheckBoxes that I actually check show up as
    checked in the data. It is just the rendering that is screwed up.
    Here is my code from the DataGrid and my custom renderer:
    <mx:DataGridColumn
    id="distributeCB"
    rendererIsEditor="true"
    headerText="Distribute"
    width="70"
    dataField="distribute"
    editorDataField="selected"
    itemRenderer="com.avaya.im.decm.branches.CheckBoxItemRenderer"
    />
    <?xml version="1.0" encoding="utf-8"?>
    <mx:CheckBox
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    enabled="{data.status==notDistributedStr}"
    change="data.distribute=selected" >
    <mx:Script>
    <![CDATA[
    // Must match BranchCoveragePathTemplates.NOT_DISTRIBUTEDD
    public const notDistributedStr:String = "Not Distributed";
    ]]>
    </mx:Script>
    </mx:CheckBox>
    Has anyone seen this and solved it?
    Thanks.

    The list components re-use the item renderers when you
    scroll. This means that the checkbox state must be driven by the
    dataProvider.
    Your checkBox renderer must override the set Data method and
    set the selected property based on a value in the dataProvider
    item.
    When the user clicks the checkbox, the renderer must updte
    the dataProvider item with the value.
    Here is a full example:
    http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectID=559
    Tracy

  • Can an Install package checks for existing runtime install?

    I am preparing to deploy an updated version of a utility used to read data files generated by several LV driven test systems.  This will be deployed to some users that already had installed a previous (first) version and some users that have never installed it.  The previous installers will have the LV runtime already installed but the others won't.
    Is there a way to have the install package check to see if the runtime is installed so it doesn't waste time installing it again? (Vers 2011) 
    Likewise, is there a way to check the version of the runtime (main version and patched versions) to know whether to update it?
    Trying to make this a semi-professional install package.
    Thanks
    Doug
    Doug
    "My only wish is that I am capable of learning each and every day until my last breath."

    It should already do this, assuming you need the same version of the RTE.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Help with Advanced Form Checker Checkboxes

    Hi
    Before I give my code I just want to say that the following code is in good working order.
    I will give my question/problem at the end.
    It might be a little advanced for this forum so I don't want to explain every step but,
    What the script does is it checks the form and shows a popup window after you click on
    the submit button. When one or more input boxes are empty (you will see in the the button script
    there are some advanced script checking and this must be in the correct order and is Case sensitive)
    When all the input boxes are filled out corectly as you want it to be, it gives
    another popup window asking you if your Details are correct.
    Here is the magic code
    The JavaScript validation code just below the head of your html
    <SCRIPT>
    function checkcomb(form,title)
         var result=true;
         var missinginfo = title;
         for (var i=0; i<form.elements.length; i++)
              var validateType = form.elements.getAttribute('alt');
              var validateObj = form.elements[i];
              if (validateType)
                   var params = validateType.split("|");
                   for (var j=0;j<params.length;j++)
                        switch (params[j])
                        case 'COMB' :
                             var combineObjs = validateObj.getAttribute('combine');
                             var combineObj = combineObjs.split("|");
                             result = false;
                             for (var k=0;k<combineObj.length;k++)
                                  var x = combineObj[k];
                                  for (var l=0;l<form.elements.length;l++)
                                       if (x == form.elements[l].name)
                                            if (form.elements[l].value != 0)
                                                 result = true;     
                             if (!result)
                                  missinginfo += "\n - " + validateObj.getAttribute('emsg') ;
                             break;
                        if (!result)
                             break;
         if (result)
              form.submit();
         else
              alert(missinginfo);          
         return false;
    function checkform(form,title)
         var result=true;
         var nosubmit=false;
         var missinginfo = title;
         for (var i=0; i<form.elements.length; i++)
              var validateType = form.elements[i].getAttribute('alt');
              var validateObj = form.elements[i];
              if (validateType)
                   var params = validateType.split("|");
                   for (var j=0;j<params.length;j++)
                        switch (params[j])
                        case 'NOSUBMIT' :
                                  nosubmit = true;
                             } break;
                        case 'ZERO' : if (validateObj.value == 0)
                             missinginfo += "\n - " + validateObj.getAttribute('emsg') ;
                             if (result) validateObj.focus();
                             result = false;
                             } break;
                        case 'BLANK' : if (validateObj.value == '')
                             missinginfo += "\n - " + validateObj.getAttribute('emsg') ;
                             if (result) validateObj.focus();
                             result = false;
                             } break;
                        case 'EMAIL' :
                             var re_mail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z])+$/;
                        if ((validateObj.value == '') || (validateObj.value == ' ') ||!re_mail.test(validateObj.value) )
                             missinginfo += "\n - " + validateObj.getAttribute('emsg') ;
                             if (result) validateObj.focus();
                             result = false;
                             } break;
                        case 'RANGE' :
                             var lb = parseInt(validateObj.getAttribute('mini'));
                             var ub = parseInt(validateObj.getAttribute('maxi'));
                             if (isNaN(validateObj.value) || (validateObj.value < lb) || (validateObj.value > ub))
                             missinginfo += "\n - " + validateObj.getAttribute('emsg') ;
                             if (result) validateObj.focus();
                             result = false;
                             } break;
                        case 'COMB' :
                             var combineObjs = validateObj.getAttribute('combine');
                             var combineObj = combineObjs.split("|");
                             result = false;
                             for (var k=0;k<combineObj.length;k++)
                                  var x = combineObj[k];
                                  for (var l=0;l<form.elements.length;l++)
                                       if (x == form.elements[l].name)
                                            if (form.elements[l].value != 0)
                                                 result = true;     
                             if (!result)
                                  missinginfo += "\n - " + validateObj.getAttribute('emsg') ;
                             break;                         
                        if (!result) break;
         if (result)
              if (!nosubmit)
                   form.submit();
              else
                   return true;     
         else
              alert(missinginfo);          
         return false;
    </SCRIPT>
    If you want to tidy up the abave code in your html head then just create a separate validate.js file and put this into your head
    <SCRIPT language=javascript src="scripts/validate.js" type=text/javascript></SCRIPT>
    This is the Form That fits within your html
    <FORM name=form action=preview.php method=post >
      <table width="100%">
        <tr>
          <td width="49%"><div align="right"><span class=style2><font face=arial,helvetica size=2>*
              </font>Name:</span></div></td>
          <td width="51%" valign="middle"> <input maxlength=40 size=25 alt=BLANK name=realname emsg="Please enter your Name"></td>
        </tr>
        <tr>
          <td><div align="right"><span class=style2><font face=arial,helvetica size=2>*
              </font>Display Name:</span></div></td>
          <td valign="middle"> <input maxlength=40 size=25 alt=BLANK name=displayname emsg="Please enter your Display Name"></td>
        </tr>
        <tr>
          <td><div align="right"><span class=style2><font face=arial,helvetica size=2>*
              </font>Email Address:</span></div></td>
          <td valign="middle"> <input maxlength=40 size=25 name=email alt=EMAIL emsg="Please enter your Email" ></td>
        </tr>
        <tr>
          <td><div align="right"><font face=arial,helvetica
                    size=2><span class=style2><font face=arial,helvetica size=2>*</font></span>
              Race</font></div></td>
          <td valign="middle"> <select name=race emsg="Please choose your Race" alt="ZERO">
              <option value=0 selected>Any</option>
              <option value=1>American Indian</option>
              <option value=2>Asian</option>
              <option value=3>Black</option>
            </select></td>
        </tr>
        <tr>
          <td> </td>
          <td valign="middle"><input tabindex="1"  type="file" name="img1" emsg="You must upload 1 Image" alt="ZERO" /></td>
        </tr>
        <tr>
          <td><div align="right">Language</div></td>
          <td valign="middle"><font face=arial,helvetica
                            color=white size=2>
            <input name="afrikaans" type=checkbox value=1>
            </font><font face=arial,helvetica size=2> Afrikaans<br>
            <input name="arabic" type=checkbox value=1>
            Arabic<br>
            <input name="chinese" type=checkbox value=1>
            Chinese<br>
            <input name="dutch" type=checkbox value=1>
            Dutch<br>
            <input name="english" type=checkbox value=1>
            English</font></td>
        </tr>
        <tr>
          <td> </td>
          <td valign="middle"><input name="button" type=button onClick="this.form.submitted = checkform(this.form,'Please correct the following...');&#10;if (this.form.submitted && confirm('Is the following information correct?\n\n ::PERSONAL DETAILS:: \nYour Name: '+&#10;document.form.realname.value+'\nDisplay Name: '+&#10;document.form.displayname.value+'\nYour Eamil: '+&#10;document.form.email.value+'\nYour Race: '+&#10;document.form.race.value+'\nYour Image: '+&#10;document.form.img1.value&#10;)) &#10;{&#10;form.submit();&#10;}" value=Submit... alt=NOSUBMIT></td>
        </tr>
      </table>
    </FORM>
    Please note: The code on the submit button must remain in one line as per above example.
    My Question/Problem
    If I want the person to select at least one checkbox (anyone of the for) How would I modify the code.
    I can make the javascript check the checkboxes in the form by simply adding the following code into the submit button
    +'\nYour Language: '+&#10;document.form.english.valueThis code must be in one line as per the submit button code
    And then modifying the Checkbox code like this
    <input name="english" type=checkbox value=1 emsg="Please Select this Language" alt="ZERO">But this you will find does not work as desired.
    I want the user to select any of the four languages available but at least one must be selected and no more than four languges if there are more.
    If anyone could help me modify the code I would appreciate it.

    in the onclick method of the checkbox just increment a counter when it's checked, and decrement it when it's unchecked... not exactly rocket surgery.

  • How to set an ON_TOGGLE event on a checkbox during runtime

    Hi everybody,
    I've some problems to create an ON_TOGGLE event on my checkbox. Actually i created checkbox using this method:
      wd_this->m_process_handler->add_parameter_field(  i_id  = 'ORPHAN'
          i_within_block               = 'PROC'
          i_description                = l_text
          i_as_checkbox                = abap_true ).

    As you are using check box for a select option, you might not be able to handle On toggle for this check box. Instead try to use the memory id (I_MEMORY_ID) parameter in the method mentioned and using that you can do your processing.

  • How to mandate the checked checkbox of propose delivery date on saleorder

    HI,everyone.
    As an ERP clerk in headquarters,  I want to the system make the checkbox of propose delivery date checked  when all other users in lower companies create their own sales document type.
    I dont want to create or assign all sales order type for them because I want to control nothing of creating of sales document type but this element.
    I have many similiar requiremnt of control over other companies,
    can some one give me a general solution for those things?
    thank you very much.

    Hi,
    the settings for the order type are read here during order creation:
    MV45AF0T_TVAK_SELECT
    SELECT SINGLE * FROM TVAK WHERE AUART = US_AUART.
    I think the easiest way is to modify the field TVAK-DATVO afterwards in the user-exits of MV45AFZZ depending on the user. The form where you should fill it is FORM USEREXIT_FIELD_MODIFICATION.
    Regards,
    Andreas

  • Conditionally checking checkboxes

    Hi.
    I need a checkbox for which the checking operation is conditional -- in certain illegal states of the containing frame and its components none of the checkboxes should change their state. I do not want to use checkbox.setEnabled(false). The changeListener does not sound good either.
    (Also I had to prevent combobox popup from appearing on same conditions. I was able to solve that by implementing my own ComboBoxUI with show() method modified. I can't think of a similar approach for the checkboxes at the moment.)
    Any ideas how to do it?

    That sure is an interesting link, rkconner, thank you, I think I'll need to read something like this soon.
    As for current case -- I have a really complex page (lots and lots of them, actually), with some fields disabled, and others enabled. Some fields need verification and the focus (generally) should not be able to leave such field unless the field value is legal. The legality is determined by querying a remote database.
    When I click an enabled checkbox, the verify() method for recently focused field starts. If the remote query returns negative response, I shouldn't be able to change the checkbox value, until the recent field is considered legal. So, I can't use setEnabled(false) for the checkbox, because, when I change the illegal value to a legal one, the checkbox should become changable instantly. I mean, I should be able to launch the verification process by clicking the checkbox.
    That's why I'm looking for another solution. Still looking :)

  • Checking Checkboxes & setting filename

    Hi,
    I am fairly new in creating acrobat forms and scripting.
    And now I will create a form for a friend and would of course create as user friendly as possible.
    The Scenario is:
    I have a form which has totally 6 Checkboxes, 2 Textfields and 2 Buttons.
    Now i want to realise the following tasks:
    1.) If one of the Checkboxes 1 - 3 is selected, the other two are automaticly unchecked. Also, if Checkbox 3 is selected the Textfield 1 is required. The same should be with the Checkboxes 4 - 6 and Textfield 2.
    2.) If the Textfield 1 is required it should be checked if the something is entered and the length is 6, 8 or 10.
    3.) It should be not possible to overwrite the original file. The user should be prompted to save a copy when he clicks the save button at the toolbar or the button at the form. Also the filename should be suggested based on which checkboxes are selected.
    In example: "Copy_ChkBx2_ChkBx4.pdf"
    4.) I want also add an button to let the user directly the pdf via email. The filename whould be generated like in at 3.). I want also to add some text to the email and set the subject to the filename.
    I don't know if all that is possible but it would be great when it is possible that somebody would show me how it is possible.
    Many thanks for your help.

    No, the hidden field is in a while loop, so value="<%= moduleBean.getModuleId() %>" is always different.
    This <td> tag
    <td><input type="hidden" name="checkbox" value="<%= moduleBean.getModuleId() %>"><input type="checkbox" name="checkbox1" value="<%= moduleBean.getModuleId() %>"></td>
    is in the while loop.
    Does it matter that the hidden field name, checkbox, is different from the checkbox name, checkbox1, that the user sees?

Maybe you are looking for

  • Is there any way to include all the info on a form as an attachment?

    Hi. I would like to find out if there is a way to include the same info that is entered in the fields of a standard html form as a data file attachment? I'm thinking along the lines of an xml file that would usually be sent to the recipient once a pd

  • Loading swf file with dynamic text

    For a website I'm creating I'm going to have a main swf file that loads individual swf files for each page. Each page's swf file loads in external text files through dynamic text boxes so i can edit the website easily. To load the swf files into the

  • Music + Video Kind is not 'Music Video' incompatible in smart playlists

    When iTunes introduced [Videos], they started showing up in my [Smart Playlists] used to maintain [Music] (too many to list). I was able to correct this by adding: [Playlist] is [Music] ...to all playlists. However, [Music Videos] still show up in my

  • MDM WF's Vs BPM and CAF GP

    Hi All, How are MDM WF's positioned against BPM and CAF GP in terms of performance, flexibility, capability? Which WF should be preferred over others? Thanks. AK

  • Search/address bar problem

    whatever i put into the safari search/address bar it just loads the same page? I've restarted & flushed the cache, still the same?