Add/Edit Form with object

OK, I'm somewhat of a newbie, but I know enough to make me dangerous. Here's my problem.
I have a form that I want to use for both Adding a course and Editing an existing course. I have a Course object. My ideal situation is to check an "action" parameter when the page is loaded. If action == Add, then I would like to instantiate an object with default values, if action == Edit, then get the Course object that corresponds to the CourseID that is also passed in. The form values would be set to Course.getXXX(). That part is pretty basic.
When the form is submitted I want to validate the fields. If they are valid, then update the DB, otherwise, go back to the form with the fields restored to the users input plus error messages. Here's where I am getting tripped up.
First, I would like to save the Course object in the Request scope, so I check that first on the Form page. If a course already exists in the Request scope, then I use that Course object, otherwise I create a new Course object like I described in the first paragraph. The problem is really passing that on to the next page that does the validating. I was told to use a JSP tag and setProp="*" blah blah blah, then call a validate method. The question I have is what happens to Course fields that are set to datatypes such as long or timestamp ??? And what kind of validate method should I write? Should I pass it a long or String? Do I really have to write TWO validation methods for every field I have that isn't a String? What's the most common way to do this? And should I validate BEFORE I try to set properties? Maybe through a static method or something?
The other thought I had was to create a CourseView object in which everything field was a String, then I could validate, then if everything was fine and dandy, I could set or create a new Course object using CourseView and then update the DB. This would mean I would use the CourseView instead of Course for the forms. The problem I have is what's the best way to go about that? I'm not that familiar with abstraction, extending or implementing. What would work best? I would like to have the validation methods with the Course object and just utilize them in CourseView, but I'm sure there are loopholes to that.
Oh, and the other big problem...null values. How do forms treat null, how do validation methods treat nulls and what about objects that require some fields but not others? Or even worse yet, a field that is not required unless another field is not null. There has to be an answer for this already.
Oh yeah, Struts is out of the question for reasons to involved to go into here.
I thank everyone in advance and hope any response help many more people then just I.

Basically lets say I have this:
AddEditForm.jsp
<%@ import com.mycomp.Course, com.mycomp.CourseMgr %>
<%
String action = request.getParameter("action");
Course crs;
if (request.getAttribute("crs") != null){
//if crs exisits in request, then form was submitted and rejected
crs = request.getAttribute("crs");
//otherwise this is the first time the page has been loaded
} else if (action == add){
crs = new Course();
}else if (action == edit){
//course_id is a long
crs = CourseMgr.getCourse(course_id);
%>
<HTML>
<BODY>
<% Custom tag here to display errors from errorMsg hashtable %>
<FORM action="process.jsp">
<input type="text" name="course_id" value="<%=crs.getCourse_id()=%>">
<input type="text" name="status" value="<%=crs.getStatus()=%>">
<input type="text" name="created_by" value="<%=crs.getCreated_by()%>">
<input type="text" name="created_date" value="<%=crs.getCreated_date()%>">
</FORM>
</BODY>
</HTML>
Process.jsp
//Call validation methods and set methods
//If everything validates OK, then call CourseMgr.setCourse(Course crs);
//The question is, do I write the Course class to have all String values
//and then change them to longs before I send to the DB?
//Should I try to validate before I set course_id (my idea)
//or set them and validate before I call setCourse() (someone else's)
//If the later is the case, then the object must be very loose
//and you have to trust that a person is going to call the validation
//method. I would like to not allow sets without validation. The only
//way I see it right now is to have a set for both String and long
//and validations for both. You can still leverage all the code,
//but it still seems stupid. I worked with ColdFusion for a while
//and the loose datatypes were a god send for this kinda thing.
Course.java
import com.mycomp.CourseMgr;
public class Course {
     private long course_id;
     private String status="";
     private String version;
private long created_by;
private Timestamp created_date;
public static Hashtable errorMsg;
     public Course() {
course_id = CourseMgr.getNextCourse_ID();
public long getCourse_id(){
return course_id;
public void setCourse_id(long l){
this.course_id = l;
//I would like to be able to not have to write two sets
//for every long. If the form input is named course_id
//doing a setProp(*) should reflect it.
//But it reflects as a String, doesn't it?
//I also don't know if I should put a try in here.
//A try is part of the validation method and it seems
//redundant. But how do I ensure validation before set?
public void setCourse_id(String s){
this.course_id = Long.parseLong(s);
public boolean validateCourse_id(long vL){
if ( valUtils.isInRange(vL,"Course_id")){
//if it's within a predetirmined range
return true;
}else{
errorMsg.put("course_id","Course ID out of range.");
return false;
//I would love to be able to call only one validation method
//but other objects need to use a long. It's only the
//view that uses Strings all the time. I would like it
//if the request could keep the form field for course_id as
//the type t was meant to be.
public boolean validateCourse_id(String vS){
if ( valUtils.isPositiveLong(vS)){
//if it can be parsedLong and is positive
return validateCourse_id(Long.parseLong(vS));
}else{
errorMsg.put("course_id","Course ID is invalid Long.");
return false;
I really hope this helps. Thank you greatly in advance for any assitance.

Similar Messages

  • How to handle Lookup Field in Add / Edit Forms

    I have a list of properties and a photo library where each image has a 'property' column that defines which property it pertains to.
    I've customized the DefaultDisplayForm and added a web part to show the images from Photo library related to the selected property.  This works because I've "connections" so that filtering takes place (the property list "Provides
    Row" to the Photos Web part which obtains 'Filtered Value from' the selected property
    While this works fine, I am not sure how to extend this so that
    1) Modify the DefaultEditForm so that user can drag / drop additional photos to the Photos List View web part, and have the lookup field be populated automatically.
     2) Modify the DefaultAddForm to allow user to drag / drop photos for a new property (using drag drop) and have the lookup field be populated automatically.
     3) Modify the DefaultDisplayForm to disallow the user from adding photos using drag / drop (i.e.l to force them to use the Default Edit Form to do this).
    I would imagine I need to add some JavaScript snipped that sets the value of the lookup field in each photo being uploaded to the Property selected in the other webpart but I am not sure where I should do that ? 
    Any guidance appreciated.,

    Hi,
    As there is no such OOTB feature can meet your requirement, it will need some customization with the REST API and JavaScript to implement the effect of drag and drop and the
    auto-populated functionality.
    Here is a demo about how to use the HTML file upload control to perform the picture uploading with “drag and drop”:
    http://www.html5rocks.com/en/tutorials/file/dndfiles/
    Another demo about how to upload file using REST API:
    http://anthony-verschraegen.blogspot.com/2013/12/sharepoint-2013-js-upload-file-to.html
    SharePoint 2013 REST API:
    http://msdn.microsoft.com/en-us/library/office/fp142380(v=office.15).aspx
    http://msdn.microsoft.com/en-us/library/office/jj164022.aspx
    Best regards
    Patrick Liang
    TechNet Community Support

  • ADF Edit Form with column spacing

    Hello,
    I have an ADF edit form, right now, all fields are displayed one below one, I want to put the fields in two rows.
    How can I do this?
    Tahnks

    <afh:tableLayout cellPadding="3" cellSpacing="3" width="100%">                           
         <afh:rowLayout>
                 <afh:cellFormat  width="20%" columnSpan="1">
                         <af:outputLabel value="#{bindings.BrgaNumMesVigCom.label}"/>
                    </afh:cellFormat>                       
                    <afh:cellFormat  width="30%" halign="left" columnSpan="1">                 
                         <af:inputText value="#{bindings.BrgaNumMesVigCom.inputValue}"
                                          simple="true"
                                          label="#{bindings.BrgaNumMesVigCom.label}"
                                          required="#{bindings.BrgaNumMesVigCom.mandatory}"
                                          columns="#{bindings.BrgaNumMesVigCom.displayWidth}">                          
                            </af:inputText>
                     </afh:cellFormat>                               
                     <afh:cellFormat  width="20%" columnSpan="1">
                          <af:outputLabel value="#{bindings.BrgaNumVigEspCom.label}"/>
                     </afh:cellFormat>                       
                     <afh:cellFormat  width="30%" halign="left" columnSpan="1">                            
                          <af:inputText value="#{bindings.BrgaNumVigEspCom.inputValue}"
                                       simple="true"
                                          label="#{bindings.BrgaNumVigEspCom.label}"
                                          required="#{bindings.BrgaNumVigEspCom.mandatory}"
                                          columns="#{bindings.BrgaNumVigEspCom.displayWidth}">                          
                            </af:inputText>                                  
                      </afh:cellFormat> 
         </afh:rowLayout>
    </afh:tableLayout><afh:tableLayout>
    <af:panelForm>
    <af:panelLabelAndMessage>
    which you use or your prefer ?
    Message was edited by:
    VictorHugoMuniz

  • How to create editable form with non-updatable vo

    Hi,
    i need to create a new form on non-updatable VO.
    My requirement is: i have Data base View, based on that view i have created VO, based on this VO i need to create new form, when ever i submit a request, web service will invoke and that validate the data and sends to the data base.
    when ever i drag drop the vo i couldn't able to enter any data bcoz all the data are coming in the form of output boxes.
    can any one help how can i create this.

    Check the setting of your viewobject attributes settings, most probably they are 'updatable never', set them to "updatable always".
    This way you can drag the view as an editable form.
    About sendind data to the database, i guess you have an idea how to do it afterwards :)

  • Edit form with an Inner Join - Can not update/delete data?!

    Hi all,
    I have an Edit form which shows me data from 2 tables (through an Inner Join SQL-Statement). I just realized that I can not edit data anymore, the following error msg appears:
    Error in mru internal routine: ORA-20001: no data found in tabular form
         Error     Unable to process update.
    OK     
    Can someone please help me?

    The ringed in red are from the second table, but the first table has some more data. Here is the SQL Statement I have (D1 and D2 are from the second table - Whereas the DOBJ_NR1 and the DOBJ_NR2 are both primary keys and foreign keys in table one, but the user selects the key from table two...):
    SELECT
    D1.DOBJ_NR DOBJ_NR1,
    D1.NAMSP NAMSP1,
    D1.DOBJ_NAME DOBJ_NAME1,
    D2.DOBJ_NR DOBJ_NR2,
    D2.NAMSP NAMSP2,
    D2.DOBJ_NAME DOBJ_NAME2,
    R.RS_NAME,
    R.ROLE1TO2,
    R.CARDMIN1TO2,
    R.CARDMAX1TO2,
    R.ROLE2TO1,
    R.CARDMIN2TO1,
    R.CARDMAX2TO1,
    R.ON_DELETE,
    R.ON_UPDATE,
    R.O_RS_COMMENT,
    R.INS_BY REL_INS_BY
    FROM
    DO_RELATIONSHIP R
    INNER JOIN DATAOBJECT D1 ON R.DOBJ1_NR = D1.DOBJ_NR
    INNER JOIN DATAOBJECT D2 ON R.DOBJ2_NR = D2.DOBJ_NR
    Edited by: user12067949 on Dec 5, 2009 3:18 AM

  • Editable form with stationary image?

    I'm creating an editable .pdf form in which someone can add their own image but I want a watermark or a specific image to alway be on top. How can I do that?
    The main goal is to let people swap out the house photo but alway keep the sold sign on top.

    Use three buttons, all the same size in the same location. The bottom-most one would be the one for the image of the house. The middle one would be the one for the sold sign. These two should be read-only. The top button should be transparent with no border. It is the one that triggers the code to prompt the user to select an image, using the buttonImportIcon method. For exmaple:
    // Mouse Up script for top-most button
    // Get a reference to the house image button
    var f = getField("house_image");
    // Prompt the user to select an icon source for the house image
    f.buttonImportIcon();
    where "house_image" is the name of the bottom button used to display the image of the house.

  • 10g Forms - 11g Forms with Object Library and PLLs

    Hey All,
    Our organization is working towards converting our existing Forms 10g architecture to 11g / Weblogic. I'm currently attempting to get the 11g Developers suite working locally, and hit a bit of a snag.
    I'm using Windows XP Prof SP3.
    Here is what I have working:
    * I got the correct version of WLS installed
    * I got the Dev suite itself installed
    * I can start and run WLS
    * I can open form builder, create a simple form, run it, it works.
    Here is where I am stuck:
    I am trying to get our existing 10g forms to compile and run under the 11g architecture. These forms were all developed using smart classes in an object library and all call various PLSQL procedures in a PLL file.
    I've done the following:
    * Recompiled all PLLs and menu modules using 11g compiler binaries
    * Made sure the FORMS_PATH registry key included where my PLX, OLB and FMX files are (under the correct, HOME key, I hope).
    * changed default.env file so FORMS_PATH points to where my PLX , OLB and FMX files are
    However, when I try to run any of the forms, I get the following error immediately :
    "FRM-93652: The runtime process has terminated abnormally.
    Contact your administrator.
    Details....
    Forms Session ID is formsapp.1"
    And in the trace file, there isn't much helpful information:
    Last Trigger FORM/BLOCK/FIELD: AIS_WELCOME.<NULL>.<NULL>
    Last Trigger: PRE-FORM - (In Progress)
    --- Call Stack Trace ---
    EnumerateLoadedModules64 failed with error -1073741819
    calling call entry argument values in hex
    location type point (? means dubious value)
    EnumerateLoadedModules64 failed with error -1073741819
    01571C5E 00000000
    015714A4 CALLrel 01571870 314E9E8 314ADA4
    0157151D CALLrel 015713BC 314E9E8 314EA28 3 12BB4C
    12BB48
    014B131F CALLrel 015714FC 314E9E8 314EA28 3 314EA94
    12BD28
    014A20F5 CALLrel 014B112C 314E9E8
    014797FE CALLrel 014A1E1C 314E9E8 1 0
    665F1DEE CALLrel 66614E06 2E4C6F4 314E9E8 0 80000400
    80000040 100000
    6611B066 CALLrel 6619E0FC 24E3CF0 32105D8 2E44D10
    2E13B64 0 6611A492
    00000001 CALL??? 00000000
    --- End of Call Stack Trace ---
    Since I can create forms from scratch, it has SOMETHING to do with the subclassing / Object Library or the PLL/PLX. Can anyone give me any clues or hints? Is there any more tracing or logging I can turn on to get a better clue of the problem?
    Thanks!

    * ***NEVERMIND*** *
    I figured it out. I missed one of the the PLX files, and it was not recompiled under 11g. It is working now! Sorry to gum up the forum!

  • Create forms with objects embedded (photos, docs, etc)

    Hi gurus,
    I am designing a solution for a client on EH&S, and I am searching for some ideas.
    The solution have 3 stages:
    1- Adding an User Exit at "Acc/Inc Log Entry" (Trx. CBIH82) to upload all the docs related to a specific Entry Log such as PDF, photos, documents, Medical documents, etc.
    2- Create a form for Log Entries that can have all the info of one entry, with all the extra docs uploaded at stage 1 attached, and that can be send by email to the persons responsables to take care of the entries.
    For example, I am thinking that implementing a new tab on the transaction to upload all the documents by type will be easy, but don't know where this files will be stored and how to obtain them.
    For the form, I think that I can use Smartformt, and then convert it to PDF, but don't know how to retrieve all the file uploaded at stage 1, and how can I attach them.
    If someone did some solution like this, no matter is no relative to EH&S will also be a great help.
    Thanks in advanced!

    Howard Pettigrew1 wrote:
    under Safari, Activity shows an error message that starts - 'An SSL error has occurred and a secure connection to docs.google.com can't be made'
    See
    <http://support.apple.com/kb/HT2900>
    The problem is Parental Control's Internet content filter. It blocks all https requests:
    https note: For websites that use SSL encryption (the URL will usually begin with https), the Internet content filter is unable to examine the encrypted content of the page. For this reason, encrypted websites must be explicitly allowed using the Always Allow list. Encrypted websites that are not on the Always Allow list will be blocked by the automatic Internet content filter.
    You need to set it up explicitly to allow it, as described in the Apple KB doc I quoted.

  • Sharepoint 2010 add/edit form: Insert link from sharepoint disabled

    Hello!
    I have a list with enhanced rich textbox field. I can click on Insert link, "from addres" is enabled, but "from Sharepoint" is disabled.
    Is there a reason why is this button disabled? Field is enhanced rich textbox... Paste button is also disabled.
    Thanks

    Microsoft says
    it is an issue but you can check
    design this strange behavior on other occasions:
    If we have a Web page in the root
    of the site and insert a Web Part content "from SharePoint" will
    disabled, but if this same Web Part Page
    is in a library "from SharePoint"
    is enabled What is the difference? I do not know.
    Worse. If we insert the Web Part
    to a page in the root of the site is
    a list or library that has a link produced by a
    workflow, an error as seen in
    http://www.danielroot.info/2010_07_01_archive.html
    But the link works correctly if the
    page is within a library.
    Are these design issues also?
    Sorry for my English.
    Soy Miguel de Torre Arias

  • Adding mxml form with actionscript

    In my application, I have a form that is generated with an
    accodion and a repeater. The repeater is used to generate the
    number of forms needed based on the number of children in the xml
    dataprovider. Now what I would like to do is to add new forms with
    actionscript and a button. Can this be done? Here's to code:
    <!--Create an accordion for Contacts-->
    <mx:Accordion width="360" height="610" x="837" y="10"
    backgroundColor="#FFD897" cornerRadius="5" borderThickness="3"
    id="contactAccordion" creationPolicy="auto">
    <mx:Repeater id="repeat"
    dataProvider="{populateContactXML}" >
    <mx:Form xmlns:mx="
    http://www.adobe.com/2006/mxml"
    id="contactForm" width="360" height="585" borderStyle="none"
    backgroundColor="#E1E1E1" cornerRadius="5" borderThickness="3"
    label=" >
    <mx:FormHeading id="contactHeading" label="Contact
    Information"/>
    <mx:FormItem label="Contact Type" width="290" x="790"
    y="10">
    <mx:FormItem id="address1Item" label="Address 1"
    width="290">
    <mx:TextInput id="address1" change="onChange(event,
    event.currentTarget.repeaterIndex, 'Address_1')" width="183"
    borderStyle="solid" cornerRadius="5"
    text="{repeat.currentItem.@Address_1}" >
    <mx:Script>
    <![CDATA[
    public function onChange(event:Event, idx:int,
    str:String):void
    populateContactXML[idx]["@" + str] =
    event.currentTarget.text;
    trace("index = ", idx);
    tmptxt3.text = "index = " +idx;
    ]]>
    </mx:Script>
    </mx:TextInput>
    </mx:FormItem>
    </mx:Form>
    </mx:Repeater>
    </mx:Accordion>

    Hi,
    All you need to do is add a node (XMLList) to your
    populateContactXML object (make sure populateContactXML is a
    XMLListCollection and not an XMLList so that binding works
    flawlessly) on the click of a button.

  • How to get add/edit button in classic report

    Hi,
    Iam trying to built a classic report,but here i need to have add/edit button.How can i achieve this in classic reports?
    I know this add/edit button with a pencil on note will come through the interactive report.
    But here iam trying to build a page same as the sample application Orders tab i.e. My Orders page.Here he created a classic report with alternating rows but has an add/edit button to it.How could that be achieved??
    Can Anyone help me in this regard to built the My orders page including the add/edit navigation getting to order for items.How can tat sample application of My orders built?
    TIA,
    Regards,
    Kranthi.
    Edited by: Kranthi.K on Sep 29, 2009 12:38 AM

    One more doubt is
    But here iam trying to build a page same as the sample application Orders tab i.e. My Orders page and when we hit add/edit image it directs us to the My orders info and order items.
    How can we build that page of My orders info and order items.Can anyone guide me through the steps the sample is created.
    I tried many times with master detail,but dint achieve what the default Sample Application has been done.
    Thanks in Advance
    Edited by: Kranthi.K on Sep 29, 2009 4:54 AM

  • Editable Form: Reader Extensions

    I created an editable form with a digital signature field using Adobe Acrobat Pro X on a Mac and posted that form online. I enabled Reader Extensions.
    A user trying to fill out the form is consistently having problems where she can save the filled in form to her computer, but when she emails it, the content she entered in the fields is gone.
    I downloaded the form and tested filling it out and emailing it, and it worked fine. I also had a colleague who only has Acrobat Reader test it by downloading the form, filling it out and emailing it to me, and the content was there.
    Does anyone know what would be causing the issue for this one particular user? The form has a rapidly approaching deadline, so I would like to help her ASAP.
    Thanks!

    This is a known issue when the file is filled-in in Preview instead of in Adobe Reader.
    See here for a solution: http://blogs.adobe.com/pdfdevjunkie/2009/11/script_to_fix_mac_osx_previewa.html

  • Error with Provider Hosted App on Edit Form of a list item

    We have an error on the Edit Form of one of our pages.
    We have developed a SharePoint Online Provider Hosted app which replaces the standard edit form of a list item and has some further events behind the save button. Since this is rather new territory for us, we're using a roundabout way of achieving this by
    using a script editor web part to display an iFrame of our app. That way we can pass the Url through to our app and retrieve query strings from them.
    Our issue comes quite intermittently in that we sometimes get a "web page cannot be found" error or sometimes a "resource cannot be found" error, however, when we load another app on the site (from the same app project, but using an app
    part), then go back to the Edit Form, the information in the iFrame suddenly renders.
    Any ideas on what might be causing this issue at all? Ideally, we should be rendering the app to the Edit Form is the proper manner, rather than scripting an iFrame that points to out app in Azure. Would this be the cause of the problem?
    Thanks
    Tom

    Hi thumper, if you have access to InfoPath, you can add the form to a page using the InfoPath web part. Otherwise, use SP Designer with instructions below:
    http://sharepoint.stackexchange.com/questions/70287/display-new-form-of-a-list-in-a-web-part-page
    cameron rautmann

  • How to create a login page for my client and a form so he can add/edit or delete information ?

    I have a real state client and one of the pages is to show all the houses he is selling with their information.
    And he wants to have a login page so that only him have permission to add, edit or delete a house from his web page.
    Also when adding a new house i want to have a form(kinda like craigslist, ebay,amazon) so he can chose type of house,price,adress,  floor, used , new, etc...?
    I hope i was specif enough.
    thanks

    If this was me, I would just create a log in page. Set the users default access level to 0 and then go into the database and set your's to 1. From there, I would have a page that only is accessable to people with a user access level > 0 .
    On this second page, make a table where you can insert picture(s) of the house, as well as information about the house. Have this page insert records into a database.
    Finally, you will have your house listing on a page that is a dynamic table, which populates itself from the database of housing pictures and information.
    It involves some database work, but with the built in functions of Dreamweaver, it is simple. I would suggest however, that you store links to the pictures in your database as opposed to storing the actual picture, but that's more up to you.
    By doing all this, you have made it so at any time, your admin, and only the admin, can log in, upload pictures and information about a listing, and have it go live to the site.

  • Custom edit form for my Wiki Page library with only "Page Name" field included

    I want to create a new custom edit form for my Wiki page library, and to only allow users to edit the Page name inside the edit form. now i created a new Edit form using SharePoint Designer , and i select the Enterprisewiki content type for it , which generates
    the following markup :-
    <%@ Page language="C#" MasterPageFile="~masterurl/default.master" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:webpartpageexpansion="full" meta:progid="SharePoint.WebPartPage.Document" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
    <SharePoint:ListFormPageTitle runat="server"/>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
    <span class="die">
    <SharePoint:ListProperty Property="LinkTitle" runat="server" id="ID_LinkTitle"/>
    </span>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server">
    <img src="/_layouts/15/images/blank.gif?rev=23" width='1' height='1' alt="" />
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
    <SharePoint:UIVersionedContent UIVersion="4" runat="server">
    <ContentTemplate>
    <div style="padding-left:5px">
    </ContentTemplate>
    </SharePoint:UIVersionedContent>
    <table class="ms-core-tableNoSpace" id="onetIDListForm">
    <tr>
    <td>
    <WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main"><ZoneTemplate>
    <WebPartPages:DataFormWebPart runat="server" EnableOriginalValue="False" DisplayName="Customer Service KB" ViewFlag="1048584" ViewContentTypeId="" Default="FALSE" ListUrl="" ListDisplayName="" ListName="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}" ListId="6a6ece84-4d39-48e2-bd6a-c20b2ac6355b" PageType="PAGE_EDITFORM" PageSize="-1" UseSQLDataSourcePaging="True" DataSourceID="" ShowWithSampleData="False" AsyncRefresh="False" ManualRefresh="False" AutoRefresh="False" AutoRefreshInterval="60" NoDefaultStyle="TRUE" InitialAsyncDataFetch="False" Title="Customer Service KB" FrameType="None" SuppressWebPartChrome="False" Description="" IsIncluded="True" PartOrder="2" FrameState="Normal" AllowRemove="True" AllowZoneChange="True" AllowMinimize="True" AllowConnect="True" AllowEdit="True" AllowHide="True" IsVisible="True" DetailLink="" HelpLink="" HelpMode="Modeless" Dir="Default" PartImageSmall="" MissingAssembly="Cannot import this Web Part." PartImageLarge="" IsIncludedFilter="" ExportControlledProperties="True" ConnectionID="00000000-0000-0000-0000-000000000000" ID="g_f1c88e12_e91d_4300_91f2_62f0bd7825fb" ChromeType="None" ExportMode="All" __MarkupType="vsattributemarkup" __WebPartId="{F1C88E12-E91D-4300-91F2-62F0BD7825FB}" __AllowXSLTEditing="true" WebPart="true" Height="" Width=""><DataSources>
    <SharePoint:SPDataSource runat="server" DataSourceMode="ListItem" SelectCommand="&lt;View&gt;&lt;Query&gt;&lt;Where&gt;&lt;Eq&gt;&lt;FieldRef Name=&quot;ContentType&quot;/&gt;&lt;Value Type=&quot;Text&quot;&gt;Enterprise Wiki Page&lt;/Value&gt;&lt;/Eq&gt;&lt;/Where&gt;&lt;/Query&gt;&lt;/View&gt;" UseInternalName="True" UseServerDataFormat="True"><SelectParameters><WebPartPages:DataFormParameter ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0" Name="ListItemId"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="weburl" PropertyName="ParameterValues" DefaultValue="http://sharepointdev:12341/sites/wiki1" Name="weburl"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}" Name="ListID"></WebPartPages:DataFormParameter>
    </SelectParameters><UpdateParameters><WebPartPages:DataFormParameter ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0" Name="ListItemId"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="weburl" PropertyName="ParameterValues" DefaultValue="http://sharepointdev:12341/sites/wiki1" Name="weburl"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}" Name="ListID"></WebPartPages:DataFormParameter>
    </UpdateParameters><InsertParameters><WebPartPages:DataFormParameter ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0" Name="ListItemId"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="weburl" PropertyName="ParameterValues" DefaultValue="http://sharepointdev:12341/sites/wiki1" Name="weburl"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}" Name="ListID"></WebPartPages:DataFormParameter>
    </InsertParameters><DeleteParameters><WebPartPages:DataFormParameter ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0" Name="ListItemId"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="weburl" PropertyName="ParameterValues" DefaultValue="http://sharepointdev:12341/sites/wiki1" Name="weburl"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}" Name="ListID"></WebPartPages:DataFormParameter>
    </DeleteParameters>
    </SharePoint:SPDataSource>
    </DataSources>
    <Xsl>
    <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">
    <xsl:output method="html" indent="no"/>
    <xsl:decimal-format NaN=""/>
    <xsl:param name="dvt_apos">&apos;</xsl:param>
    <xsl:param name="ManualRefresh"></xsl:param>
    <xsl:variable name="dvt_1_automode">0</xsl:variable>
    <xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
    <xsl:choose>
    <xsl:when test="($ManualRefresh = 'True')">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td valign="top">
    <xsl:call-template name="dvt_1"/>
    </td>
    <td width="1%" class="ms-vb" valign="top">
    <img src="/_layouts/15/images/staticrefresh.gif" id="ManualRefresh" border="0" onclick="javascript: {ddwrt:GenFireServerEvent('__cancel')}" alt="Click here to refresh the dataview."/>
    </td>
    </tr>
    </table>
    </xsl:when>
    <xsl:otherwise>
    <xsl:call-template name="dvt_1"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="dvt_1">
    <xsl:variable name="dvt_StyleName">ListForm</xsl:variable>
    <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row"/>
    <div>
    <span id="part1">
    <table border="0" width="100%">
    <xsl:call-template name="dvt_1.body">
    <xsl:with-param name="Rows" select="$Rows"/>
    </xsl:call-template>
    </table>
    </span>
    <SharePoint:AttachmentUpload runat="server" ControlMode="Edit"/>
    <SharePoint:ItemHiddenVersion runat="server" ControlMode="Edit"/>
    </div>
    </xsl:template>
    <xsl:template name="dvt_1.body">
    <xsl:param name="Rows"/>
    <tr>
    <td class="ms-toolbar" nowrap="nowrap">
    <table>
    <tr>
    <td width="99%" class="ms-toolbar" nowrap="nowrap"><IMG SRC="/_layouts/15/images/blank.gif" width="1" height="18"/></td>
    <td class="ms-toolbar" nowrap="nowrap">
    <SharePoint:SaveButton runat="server" ControlMode="Edit" id="savebutton1"/>
    </td>
    <td class="ms-separator">&#160;</td>
    <td class="ms-toolbar" nowrap="nowrap" align="right">
    <SharePoint:GoBackButton runat="server" ControlMode="Edit" id="gobackbutton1"/>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td class="ms-toolbar" nowrap="nowrap">
    <SharePoint:FormToolBar runat="server" ControlMode="Edit"/>
    <SharePoint:ItemValidationFailedMessage runat="server" ControlMode="Edit"/>
    </td>
    </tr>
    <xsl:for-each select="$Rows">
    <xsl:call-template name="dvt_1.rowedit"/>
    </xsl:for-each>
    <tr>
    <td class="ms-toolbar" nowrap="nowrap">
    <table>
    <tr>
    <td class="ms-descriptiontext" nowrap="nowrap">
    <SharePoint:CreatedModifiedInfo ControlMode="Edit" runat="server"/>
    </td>
    <td width="99%" class="ms-toolbar" nowrap="nowrap"><IMG SRC="/_layouts/15/images/blank.gif" width="1" height="18"/></td>
    <td class="ms-toolbar" nowrap="nowrap">
    <SharePoint:SaveButton runat="server" ControlMode="Edit" id="savebutton2"/>
    </td>
    <td class="ms-separator">&#160;</td>
    <td class="ms-toolbar" nowrap="nowrap" align="right">
    <SharePoint:GoBackButton runat="server" ControlMode="Edit" id="gobackbutton2"/>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </xsl:template>
    <xsl:template name="dvt_1.rowedit">
    <xsl:param name="Pos" select="position()"/>
    <tr>
    <td>
    <table border="0" cellspacing="0" width="100%">
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Title (Display In Search)</nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Edit" FieldName="Title" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}"/>
    <SharePoint:FieldDescription runat="server" id="ff1description{$Pos}" FieldName="Title" ControlMode="Edit"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Standard<span class="ms-formvalidation"> *</span>
    </nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff2{$Pos}" ControlMode="Edit" FieldName="Standard" __designer:bind="{ddwrt:DataBind('u',concat('ff2',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Standard')}"/>
    <SharePoint:FieldDescription runat="server" id="ff2description{$Pos}" FieldName="Standard" ControlMode="Edit"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Document Type<span class="ms-formvalidation"> *</span>
    </nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff3{$Pos}" ControlMode="Edit" FieldName="Document_x0020_Type" __designer:bind="{ddwrt:DataBind('u',concat('ff3',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Document_x0020_Type')}"/>
    <SharePoint:FieldDescription runat="server" id="ff3description{$Pos}" FieldName="Document_x0020_Type" ControlMode="Edit"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Departments<span class="ms-formvalidation"> *</span>
    </nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff4{$Pos}" ControlMode="Edit" FieldName="Departments" __designer:bind="{ddwrt:DataBind('u',concat('ff4',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Departments')}"/>
    <SharePoint:FieldDescription runat="server" id="ff4description{$Pos}" FieldName="Departments" ControlMode="Edit"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Hide physical URLs from search</nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff5{$Pos}" ControlMode="Edit" FieldName="PublishingIsFurlPage" __designer:bind="{ddwrt:DataBind('u',concat('ff5',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@PublishingIsFurlPage')}"/>
    <SharePoint:FieldDescription runat="server" id="ff5description{$Pos}" FieldName="PublishingIsFurlPage" ControlMode="Edit"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Page Content</nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff6{$Pos}" ControlMode="Edit" FieldName="PublishingPageContent" __designer:bind="{ddwrt:DataBind('u',concat('ff6',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@PublishingPageContent')}"/>
    <SharePoint:FieldDescription runat="server" id="ff6description{$Pos}" FieldName="PublishingPageContent" ControlMode="Edit"/>
    </td>
    </tr>
    <tr id="idAttachmentsRow">
    <td nowrap="true" valign="top" class="ms-formlabel" width="20%">
    <SharePoint:FieldLabel ControlMode="Edit" FieldName="Attachments" runat="server"/>
    </td>
    <td valign="top" class="ms-formbody" width="80%">
    <SharePoint:FormField runat="server" id="AttachmentsField" ControlMode="Edit" FieldName="Attachments" __designer:bind="{ddwrt:DataBind('u','AttachmentsField','Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Attachments')}"/>
    <script>
    var elm = document.getElementById(&quot;idAttachmentsTable&quot;);
    if (elm == null || elm.rows.length == 0)
    document.getElementById(&quot;idAttachmentsRow&quot;).style.display=&apos;none&apos;;
    </script>
    </td>
    </tr>
    <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
    <tr>
    <td colspan="99" class="ms-vb">
    <span ddwrt:amkeyfield="ID" ddwrt:amkeyvalue="ddwrt:EscapeDelims(string(@ID))" ddwrt:ammode="view"></span>
    </td>
    </tr>
    </xsl:if>
    </table>
    </td>
    </tr>
    </xsl:template>
    </xsl:stylesheet> </Xsl>
    <DataFields>
    </DataFields>
    <ParameterBindings>
    <ParameterBinding Name="ListItemId" Location="QueryString(ID)" DefaultValue="0"/>
    <ParameterBinding Name="weburl" Location="None" DefaultValue="http://sharepointdev:12341/sites/wiki1"/>
    <ParameterBinding Name="ListID" Location="None" DefaultValue="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}"/>
    <ParameterBinding Name="dvt_apos" Location="Postback;Connection"/>
    <ParameterBinding Name="ManualRefresh" Location="WPProperty[ManualRefresh]"/>
    <ParameterBinding Name="UserID" Location="CAMLVariable" DefaultValue="CurrentUserName"/>
    <ParameterBinding Name="Today" Location="CAMLVariable" DefaultValue="CurrentDate"/>
    </ParameterBindings>
    </WebPartPages:DataFormWebPart>
    </ZoneTemplate></WebPartPages:WebPartZone>
    </td>
    </tr>
    </table>
    <SharePoint:UIVersionedContent UIVersion="4" runat="server">
    <ContentTemplate>
    </div>
    </ContentTemplate>
    </SharePoint:UIVersionedContent>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">
    <SharePoint:DelegateControl runat="server" ControlId="FormCustomRedirectControl" AllowMultipleControls="true"/>
    <SharePoint:UIVersionedContent UIVersion="4" runat="server"><ContentTemplate>
    <SharePoint:CssRegistration Name="forms.css" runat="server"/>
    </ContentTemplate></SharePoint:UIVersionedContent>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleLeftBorder" runat="server">
    <table cellpadding="0" height="100%" width="100%" cellspacing="0">
    <tr><td class="ms-areaseparatorleft"><img src="/_layouts/15/images/blank.gif?rev=23" width='1' height='1' alt="" /></td></tr>
    </table>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleAreaClass" runat="server">
    <script type="text/javascript" id="onetidPageTitleAreaFrameScript">
    if (document.getElementById("onetidPageTitleAreaFrame") != null)
    document.getElementById("onetidPageTitleAreaFrame").className="ms-areaseparator";
    </script>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderBodyAreaClass" runat="server">
    <SharePoint:StyleBlock runat="server">
    .ms-bodyareaframe {
    padding: 8px;
    border: none;
    </SharePoint:StyleBlock>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderBodyLeftBorder" runat="server">
    <div class='ms-areaseparatorleft'><img src="/_layouts/15/images/blank.gif?rev=23" width='8' height='100%' alt="" /></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleRightMargin" runat="server">
    <div class='ms-areaseparatorright'><img src="/_layouts/15/images/blank.gif?rev=23" width='8' height='100%' alt="" /></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderBodyRightMargin" runat="server">
    <div class='ms-areaseparatorright'><img src="/_layouts/15/images/blank.gif?rev=23" width='8' height='100%' alt="" /></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleAreaSeparator" runat="server"/>
    so from the above  markup  the name field is not part of the edit form,, i think this is because the Name is part of the Document content type and not part of the enterprisewiki content type .. so is there a way to add the name field to the edit
    form ?.
    second question, the edit form will show all the content type fields such as ; standard, document type, department , title (display in search), etc   so what is the best way to remove these fields from the custom edit form ?

    Hello John,
    This can only be done by adding VBScript to the form. It would basically be:
    Sub Item_Open() 
    Item.GetInspector.SetCurrentFormPage "P.2"
    End Sub
    ... where "P.2" would be what you named the page you want to display first.

Maybe you are looking for

  • Error in uploading a File

    Hi All, when uploading a file i got a Exception <b>"Parse method is not possible for this type"</b> 1)i used only two UIs in view 2)FileUpload UI and Button 3)For FileUpload UI i assigned the FileResource context attribute value for data property 4)a

  • Is this a RegExp bug??? Matching double letters inside words...

    I'm trying to match double letters inside words, excluding ones that begin or end a word.  I'm running into a problem matching \B at the end of a line. example: My RegExp is /\Bdd\B/gi String is "dda adda add add" This will match twice, the dd in the

  • Archive log files are not being created

    I am doing some testing of the backup and recovery of our databases. I have a database which is in archive log mode. I have added some records to a table and I am expecting to see some archive files being written to but nothing is being produced. We

  • Optimum setting for LiveTrace

    Using Adobe Illustrator CS3 Livetrace feature. But why is the tracing function in Flash render more effective (and closer) vector objects (specially with low resolution pictures)? What is the optimum setting for Livetrace?

  • Is DVD Player higher quality than standalone DVD player?ne

    I tried finding an answer to this question with various searches and could not, but I apologize if this is a repeat question. I'm a teacher and I'm showing DVDs (not Blu-Rays) to my class. I have a fairly new LG HDTV in my classroom. I don' have the