HTML option in webforms

Hi there,
I have been happily working on html option in business catalyst to customise my web form.
Now all of  sudden I can no longer access the html code.  has something changed?
ciao
Cathy

Hi Matt,
The button changed - now at the top - So problem solved thanks a lot.
New problem - can I put 2 x forms on one webpage? Client wants 10 x friend  referrals on business catalyst form - I have logged a ticket apparentlythe system only allows 5.
So thought I would put 2 x forms on the one page. However form disappears from business catalyst forms list, when I fill it out on the website.
error message appears
ERROR: You have deleted your web form. Please login to the Admin panel of your website and remove the previously submitted form from the web page you last visited. You will need to recreate this web form by going to Modules -> Webforms. After recreating simply insert this new web form into the web page and your web form should work properly.
Is there a way to make 2 forms work on one business catalyst page??
ciao
Cathy

Similar Messages

  • ITS 620 - how to create a service file for SAPGUI for HTML option

    Hi,
    We have the following configuration :
    ITS 620 installed
    IIS webserver
    NTLM Authentication on webserver
    SAP 46C
    We have some reports that use the IACs option of creating ITS reports and we are able to create the service files using webstudio where we can save a service id and password so that when the ITS page is called, it logs on the user directly into the system.
    Now, we are trying to create a new ITS page for a custom Z transaction and would like to use the SAPGUI for HTML option so that we do not have to use Webstudio to create and modify the HTML pages.
    When I call the ITS page for the new transaction, it brings up the logon screen for the user, which we want to avoid. If I create a new service file for this Z transaction without any HTML pages then I get an error.
    Is there a way to copy the WEBGUI.SRVC file to a custome SRVC file, I tried to create to copy it to a test file called ZTEST.SRVC for my test transaction called ZTEST and now I get an error.
    thanks in advance
    N.S.

    Hello N.S.
    You can create a service file, like ZSERVICE.SRVC.  The parameters should be:
    ~webgui 1
    ~transaction ztransaction
    ~client  001
    ~login   username
    ~password  password
    ~language  EN
    The "~webgui 1" allows the ITS to use the Webgui to dynamically generate the page (no IAC needed.)
    The "~transaction" is the transaction code of your service.
    The "~client" is the client number.
    The "~login" is the username.
    The "~password" is the user's password.
    the "~language" is the language for the users.
    Note that the last four are required for automatic logon.  If end users use a variety of languages though the ~language can be prepended to the URL to support different languages.  (Leave it blank in the srvc file then.)
    Edgar

  • Trying to dynamically populate html:options

    I am using iframe.
    on the first frame the user inputs letters and the database is searched for anything that starts with those letters.
    <html:text property="usersInput"/>
    <html:submit value="search" onclick="middle.document.forms[0].property='list'"/>
    the second frame "middle" is suppose to display the results of the search.
    html:select property="list">
    <html:options property="list"/>
    </html:select>
    of course with this code the second frame "middle" gives an err msg, because list is null.
    Is there anyway to get around this so that initially the select list that appears on the pages is empty and then when the search is done (button is clicked) the list will populate with the results?

    I guess there must be something wrong with my question :( no one is helping me. Well let me ask this...
    With formbeans and iframes...
    Is the information process while in the <html:form>...</html:form> or once it leaves the form? because now I'm doing the search in one frame and then onclick="..." I'm calling another frame to display the results of the search using <html:select><html:options>...</html:select>, but I keep getting an err msg "null pointer".
    It seems like the information from the first iframe, either has not been "processed" or got "deleted" by the formbean, when the second frame tries to access it.
    Can someone please give me an idea of what's going on. I'VE HIT A WALL!!!!

  • html:option question

    I want to set a default value of select,such as follows:
    <html:select property="loglevel" size="1">
    <html:option value="0">0</html:option>
    <html:option value="1" selected>1</html:option>
    <html:option value="2">2</html:option>
    <html:option value="3">3</html:option>
    </html:select>
    But when I run it,it raise error:
    org.apache.jasper.JasperException: /index.jsp(8,48) equal symbol expected
    I want to know how to make a select option was selected using Struts?

    Hmm...
    Struts will automatically set one of your options to selected if the form bean's loglevel property matches one of the options. You may be able to override it by setting selected="selected", but I'm not sure.

  • Html:options question?

    Hello,
    Is it possible to change font (bold) of a collection thats inside html:option like below?
    <div align="left">
    <html:select property="istekli" styleClass="metin">
    <html:options collection="istekli" property="key"
    labelProperty="value" />
    </html:select>
    </div>
    Lets say i have an element called "id" inside of the collection above. Is it possible to change the font of this specific element (id)?
    thanks

    this is not perfect forum for this Question

  • html:option tag in STRUTS

    How can I put a "selected" attribute in the <html:option> tag in STRUTS? In regular HTML, I can say:
    <select name="test">
    <option name="opt1" selected>Option 1</option>
    </selected>
    But I can't use the "selected" key word in the STRUTS tag:
    <html:select property="myList">
    <logic:equal name="myListElement" value="Hello World">
    <html:option value="opt1" selected>Option 1</html:option>
    </logic:equal>
    <logic:notEqual name="myListElement" value="Hello World">
    <html:option value="other opts">Other opts</html:option>
    </logic:notEqual>
    </html:select>
    How can I get the following to work?
    Thanks,
    Dylan

    DavidHymes wrote:
    He is trying to pre-select an option, not determine which option is selected. I have the same question, anyone know the answer?Ugh! Why're you replying to a thread from over 4 years ago?? Couldn't you start your own topic?
    Take a look at this topic from yesterday: http://forum.java.sun.com/thread.jspa?threadID=5223675

  • Can u create a default category using html:option ?

    Hi
    How do make the option chooseCategory the default category ,also if the user proceeds without choosing a category (apart from default category) i need to show an error.
    how do i do this.
    Can i do it thru validation.xml.
    <bean:message key="label.sms.category"/></b>    <html:select property="category">
    <html:option key="label.sms.chooseCategory" value="key"/>
    <html:option key="label.sms.students" value="key"/>
    <html:option key="label.sms.customer" value="key"/>
    <html:option key="label.sms.other" value="key"/>
    </html:select></td></tr>
    thanks in advance
    manasi
    Edited by: ram.manasi on Jul 2, 2008 1:37 AM
    Edited by: ram.manasi on Jul 2, 2008 1:39 AM

    You might have more luck in the Struts forum/mailinglist at their own homepage at apache.org.

  • Best approach to store collection for html:options

    I am using struts to develop my web application. I am trying to figure out the best way to store a Collection for html:options inside a html:select element.
    My JSP page has a html:select statement which lists all the groups in a system. I have a member variable called getGroupNames() in my ActionForm class. When the JSP page is first requested, I populate the groupNames attribute of ActionForm class with a list of names. The html:options reads the groupNames attribute and lists all the group names.
    The problem: Once the user selects a group name and then submits, if there is any validation problems in other fields in the JSP, I build ActionErrors object and forward the request back to the same JSP. However, now I get an error saying the groupNames is NULL.
    Option1: One way to avoid this error is to AGAIN populate the groupNames list if there is a validation problem.
    Option 2: Another way is to store the list of groupnames in a seperate bean (and NOT as an attrib of the ActionForm) and store it in the REQUEST scope. This way I think the I don't have reload the groupName list in case of a validation failure.
    Could someone please help me in deciding which will be the right approach.
    Thanks

    Hi,
    1,2 billion rows and each row of 50 bytes - approximately 56 GB around. Huge segment. As you stated it's an OLTP database, can you check across what is the percentage or maximum number of queries with developers - important column which they are querying across and application dealt with.
    Based on the input of the above question we can check how best we can partition and columns we are dealing. Perhaps you have stated across historical data. From this kindly verify across what is the % of users check or go-back to historical information - based on that we can estimate the number of partitions we can create on segment and looking forward, you must estimate the % of increase of new/incoming data and day/month wise. so that you might be plan what can we do the old historical data.
    HTH
    Note- Part of Performance dealt with writing efficient tuned queries
    - Pavan Kumar N

  • How to set selected value in html:options that isusing HasMap Long,String

    So here is my problem
    I have a HashMap<Long,String> where key is the country id and value is the country name. So I am displaying it in the jsp using the below code
    <c-rt:set var="countriesMap" value="<%=countriesMap%>" target="java.util.HashMap<Long,String>"/>
    <html:select size="1" property="countryId" >
    <html:option value="" />
    <html:options collection="countriesMap" property="key" labelProperty="value" />
    </html:select>
    And my Action form has the property countryId.
    So it works fine , it displays all the countries and sets the country ID in the form's property that we set in the property attribute of <html:select>.The form's property is of type Long.
    But suppose if some error occurs in the validate method for some other property then when the page renders back it does not set the selected country in the list box.
    Can anyone please help me out of this.Thanks in advance.
    Edited by: AmitDsm on May 9, 2008 8:01 AM

    Hi,
    I had the same issue. Altho I am using Spring, the solution is the same.
    <select name="expMonth">
         <option value=""></option>
         <c:forEach items="${form.data.months}"
              var="month">
              <c:choose>
                   <c:when test="${form.data.pDet.expDate_month eq month}">
                        <option selected="selected"><c:out value="${month}"/></option>
                   </c:when>
                   <c:otherwise>
                        <option><c:out value="${month}"/></option>
                   </c:otherwise>
              </c:choose>
         </c:forEach>
    </select>Disclaimer: Not sure if this is the correct way to do it, but it works for me
    Edited by: Reegz on 2008/05/12 05:58

  • Export to HTML Option in 7

    I have just started using Captivate 7. In 5.5, when you published to swf, you could deselect the "Export To HTML" option to prevent Captivate from making HTML, js, and css files. Since my authoring tool does not require these files with swfs, I always did this to cut down on the amount of output files. I can't find this option in Captivate 7. Anyone know where it went to?

    Yes, you are right. There are times when you need Captivate to create the HTML, CSS, and js files. However, there are times when these files are not needed. In my case, I don't need them because my authoring tool launches the swf from an HTML file and creates the js and CSS files. In 5.5, you could turn off the publishing of the extra files (see the below image). I was just wondering if there was somewhere in 7 where you could do the same.

  • List of Map objects with html:options collection

    Hello All,
    I'm trying to get an arraylist of map objects to display dynamically as a dropdown select with html:options collection. I've spent hours on this and I haven't been able to get it working. Any ideas as to how this is done?
    Thanks,
    James

    An arraylist of Map objects?
    What is it that you want to show up in the dropdown box - all the name value pairs included in all the maps of the list?
    Assuming with a Map the "key" is what you want submitted and the "value" is what to display to the user
    Definitely sounds like a double loop structure is required. One to loop through all the maps. Another to generate all the options in each map.
    This one does it at the basic level of things
    <c:forEach var="map" items="${listOfMaps}">
      <c:forEach var="entry" items="${map}">
        <html:option value="${entry.key}">${entry.value}</html:option>
      </c:forEach>
    </c:forEach>The following might also work.
    <c:forEach var="map" items="${listOfMaps}">
      <html:options collection="map" property="key" labelProperty="value"/>
    </c:forEach>Cheers,
    evnafets

  • Html options

    Hi,
    I am using following code to display a drop down in jsp.
    <logic:present name="ALLBRANDS" scope="request">
         <html:select property="selBrand" styleId="brandBox" >
              <html:options collection="ALLBRANDS" property="strBrandDesc"/>
         </html:select>
    </logic:present>     
    ALLBRANDS is of type java.util.ArrayLIst which contains object of type Brand
    Brand has just two properties strBrandId and strBrandDesc.
    I am using property strBrandDesc to display elements in drop down.
    Up to this, every thing is working ok.
    What I want to do is:
    Whenever a user selects some value, on onchange I want to call a java script method and I want to pass strBrandId to java script function.
    I can't use bean write here..I son't want to retrieve strBrandDesc
    I tried different things but couldn't succeed.
    Can any one help me in this?
    Thanks
    nmadhava.

    I am sorry for asking simple question. Anyways I got it now.
    <logic:present name="ALLBRANDS" scope="request">
                                                      <html:select property="selBrand" styleId="brandBox" styleClass="tdDisplayDropDownText">
                                                                <logic:iterate id="brands" name="ALLBRANDS" type="com.archway.core.bean.MFBrand" scope="request">
                                                                     <html:option value=" <%= brands.getStrBrandId()%> ">
                                                                <bean:write name="brands" property="strBrandDesc"/>
                                                      </html:option>
                                                                </logic:iterate>
                                                      </html:select>
                                                      </logic:present>
    From java script we can access it using
    document.form.brandBox.value which gets id value not description.
    nmadhava

  • html:option tag with jbo:RowSetIterate

    Hi
    I am trying to build a list box using the following code.
    <html:select property="providerTypeId">
    <html:option value=""> </html:option>
    <jbo:RowsetIterate datasource="PModule.ProviderTypeLuVO">
    <html:option value="<jbo:ShowValue datasource='PModule.ProviderTypeLuVO' dataitem='ProviderTypeId' />"> <jbo:ShowValue datasource="PModule.ProviderTypeLuVO" dataitem="ProviderType" />-<jbo:ShowValue datasource="PModule.ProviderTypeLuVO" dataitem="ProviderTypeDesc" /> </html:option>
    </jbo:RowsetIterate>
    </html:select>
    -- The list box builds like this
    <option value="<jbo:ShowValue datasource="P.ProviderTypeLuVO" dataitem="ProviderTypeId" />">10-PHYSICIAN, M.D</option>
    The value is not retrieved from the ShowValue tag.
    Can some one help on this issue.
    Thanks

    Do you have the taglib correct at the top of the page ?
    i.e.
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    Rather than the ShowValue tag I tend to use the Row tag to have the row as an object on which I can call the getAttribute method to then populate the combo / list box.
    e.g.
    <select name="recallPriorityCode">
    <option value="">
    </option>
    <jbo:RowsetIterate datasource="spds">
    <jbo:Row id="sprow" datasource="spds" action="Current" />
    <%
    String priorityCode = sprow.getAttribute("PriorityCode").toString();
    String priorityDescription = sprow.getAttribute("PriorityDescription").toString();
    %>
    <option value="<%= priorityCode %>">
    <%= priorityDescription %>
    </option>
    </jbo:RowsetIterate>
    </select>
    Hope this helps.

  • How to add a value(text) from javascript to html:option tag .....

    How to populate the <html:option> tag dynamically
    I have a tree view, in tree view tag ( <layout:maeuItem> tag i have written "onclick " event )
    <layout:menuItem key="${agrovoc.AGURI}" link="#"
                                       onClick="return copyVal(this)">
    <script language="javascript" type="text/javascript">
                   function copyVal(obj){
                   str= obj.innerHTML; 
                   l = str.length-4;
                   xyz= str.substring(12,l);
                   document.getElementById('agrovoc').value =document.getElementById('agrovoc').value + xyz+'\n';
                   </script>Here "xyz" contains the Term ( the term clicked in the tree view) now i want add these terms ( clicked in tree view) into <html: option> tag.... how to do this.. plz give me some ideas
    <html:select  property="agrovocbuffer" size="10" >
                        <html:option value="" styleId="agrovoc1"></html:option>
                        </html:select>

    Hi,
    i have tried with this, it's works fine... but when i click on the next page ( i mean 2 or 3 page etc ) the content of <html:option> are erasing (deleting).. i wanted those terms wht i have selected in the 1st page to remain in <html:option> when i click on 2 nd page also...
    Tree view code
    <layout:menuItem key="${agrovoc.AGURI}" link="#"
                                       onClick=" copyVal(this)">JavaScript
    <script language="javascript" type="text/javascript">
                    var i=0;     
                    var myArray=new Array();
                   function copyVal(obj){
                        var flag=0;     
                   str= obj.innerHTML; 
                   l = str.length-4;
                   xyz= str.substring(12,l);
                   while (xyz != null) {
                   for( var l=0;l<myArray.length;l++){
                   if( myArray[l]==xyz){flag=1;alret("The Term is already selected.");}
                   if(flag!=1){
                   document.getElementById('agrovoc').options[i] =new Option(xyz,xyz);
                   myArray=xyz;
                   i++;
                   //alert(i);
                   xyz=null;
                   function del(){
                                  var oc=document.getElementById('agrovoc').options;
                                  //alert(oc.length);
                                  firstBox = document.getElementById('agrovoc');
                                  selectedOption = firstBox.options[firstBox.selectedIndex].value;
                                  selected = firstBox.options[firstBox.selectedIndex].index;
                                  //alert(selected);
                                  for( var l=0;l<myArray.length;l++){
                   if( myArray[l]==selectedOption){myArray[l]="";}
                                  firstBox.options[firstBox.selectedIndex] = null;
                                  var oc=document.getElementById('agrovoc').options;
                                  //alert(oc.length);
                                  for(var x=selected;x<oc.length;x++,selected++)
                                  document.getElementById('agrovoc').options[x] =new Option(firstBox.options[selected].value);
                                  i=oc.length;
                   </script>
    <html:select> code<div align="left" id="hopt">     
                   <td valign="top">
                   <logic:present name="hcount">
                        <html:select property="agrovocbuffer" size="15" styleId="agrovoc" multiple="true" style="width:200px;" >
                        <html:option value="" ></html:option>
                        </html:select><html:button property="button" onclick="del()"> DEL</html:button>
                   </logic:present>
                   </td>
                   </div>
    And all the above code is in <html:form> tag & i have written a custom pagination page
    Now i want  all terms which are in <html:option> remain  in options when i goto 2 nd page..
    how to do this? In the DOM inspector i'm getting the options, but when see the source HTML there are no <html:options>.. when click on the 2 page link the terms which are in <html:option> are not going to the "Action" class ..  :(
    how to do this .. any idea plz..?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • html:select and html:options simple question  - please help

    Hi Friends,
    I am having a problem, please help me .I want to run a query and display all the lastnames of all the users in my database.Here are my files:
    UserForm.java
    public class UserForm extends ActionForm{
         private name firstName;
         private name lastName;
         //all getter and setters
    viewuser.jsp
    <html:select property="lastName">
        <html:options collection="users" property="lastName" labelProperty="lastName" />
    </html:select>
    and my Java Utility class method
    public ArrayList getusers() throws Exception {
             ArrayList aList = new ArrayList();     
              Connection con = ConnectionUtil.getConnection();
              PreparedStatement stmt = null;
              try {
                   stmt = con.prepareStatement("select last_name from USERS);     
                   ResultSet rs = stmt.executeQuery();
                      if (rs.next()) {
                          aList.add(rs.getString(1));
                      }else {
                           return null;
                      rs.close();
                      return aList;
              } catch (SQLException e) {
                   e.printStackTrace();
                   throw new ServiceProcessingException(e.getMessage());
              } finally {
                   ConnectionUtil.closeStatement(stmt);
                   ConnectionUtil.closeConnection(con);
         }My problem is what i need to do in my Action class,so that it sets the "users" variable
    properly and i would be able to read that variable in my jsp and display the lastname
    of all the users.I am tryin this but failing badly:
    public class UserAction extends Action{
      ArrayList userssList = Utility_class_obj.getUsers();
      request.getSession().getServletContext().setAttribute("users", usersList);Please Please help,I would really appreciate your help.
    Thanks

    Thanks a lot friend...this time i made it work my style,next time i will use tha mehod.But I think I am not doing it the right way,please correct me:
    This is the method in my utility class where i run the query and I doubt I am not doing it right here:
    PreparedStatement stmt = null;
    ViewForm vForm = null;
    try {
    stmt = con.prepareStatement("SELECT LAST_NAME FROM   USERS_ADD");     \
    ResultSet rs = stmt.executeQuery();          
    while(rs.next()) {
           vForm = new ViewForm(rs.getString(1));          
          aList.add(vForm);          
       rs.close();
       return aList;          }
    }And I made this constructor in my viewForm class:
    public ViewForm(String lastName){          this.setLastName(lastName);     }I do this in my Action class then:
    ArrayList pList = csDAO.getUsers();  
         if(pList  != null){         
         request.getSession().getServletContext().setAttribute("plist", pList);      
    }And finally this in my jsp:
        <html:select property="lastName"> 
        <html: options collection="plist" property="lastName" labelProperty="lastName" /> And it works,but i don't think I can keep adding constructors to my form class like that,and moreoever if I want to search by first name ,there would be a conflict between 2 constructors,so can someone please tell me the right way to do this.
    Thanks
    Mick

Maybe you are looking for