Browse and Edit Form - JSP

Hi all,
Using BC4J and BC4J JSP to generate Browse and Edit Form, e.g. EmpView_browse.jsp, and EmpView_Edit.jsp, I want to show only a few attributes in browse, and all fields in edit. If I change the "display" in control hint to hide, the attribute will not be displayed in both pages.
Please help.
Regards,
Terry Luk

Hi,
try something like this :
<jbo:ViewObject id="voBrowse" name='<%=dsParam%>' />
<jbo:AttributeIterate id="df" datasource="<%=dsParam%>">
<% if (df.getName() == "InvoiceNr") {
<th class="clsTableHeader" title="<jbo:ShowHint hintname='TOOLTIP'></jbo:ShowHint>" ><jbo:ShowHint hintname="LABEL"></jbo:ShowHint></th>
<% }%>
</jbo:AttributeIterate>
<jbo:RowsetIterate datasource="<%=dsParam%>" changecurrentrow="false" userange="true">
<tr>
<jbo:AttributeIterate id="dfv" datasource="<%=dsParam%>">
<% if (dfv.getName() == "InvoiceNr") {
<td title="<jbo:ShowHint hintname='TOOLTIP'></jbo:ShowHint>" valign="top" > <jbo:RenderValue datasource="<%=dsParam%>"/> </td>
<% } %>
</jbo:AttributeIterate>
</tr>
</jbo:RowsetIterate>

Similar Messages

  • ADF Task Flow: Browse and Edit pages

    Hi,
    My application includes two pages, a Browse page and an Edit page. The Browse page provides the list of departments (read-only table) and allows you to select a department from the list to edit the department details (form).
    How can I develop this common scenario using ADF task flows? Important - I need to display Browse and Edit on two different jsf pages.
    Thanks, Al

    It should be pretty easy.
    1) Create your browse and edit page
    2) drop them onto a task flow
    3) Connect the pages with navigation cases.
    4) Set the ACTION property of a button on the browse page to reference the navigation case that goes to the edit page
    5) Hook up the reverse to go back to the browse page
    Done!

  • How to hide "View in Browser" and "Edit in Browser" from ECB injected by Office Web Apps Feature

    Hi,
    i am currently using custom_AddDocLibMenuItems to implement a custom ECB menu for my document library. I need to activate Office Web Apps. My custom_AddDocLibMenuItems has two items
    -> custom dialog
    -> open in office web apps
    After activating the Office Web Apps Feature at the SiteCollection Level, this Feature "injects" in my custom menu the following
    additional menu items:
    -> View in Browser
    -> Edit in Browser
    Its curious to see that, cause implementing the js function custom_AddDocLibMenuItems with
    return true should be the way to impolement a custom ECB menu without having other features/solutions injecting things in this menu!? Or did i misunderstood something here?
    My question is: How can i prevent this ...
    a) without deactivating the Office Web Apps Feature
    b) without modifying the core.js
    I hope someone can help!
    Best Regards
    Bog
    Developers Field Notes | www.bog1.de

    May be this can help
    http://extreme-sharepoint.com/2011/10/29/hide-menu-ecb/http://pholpar.wordpress.com/2011/07/24/hiding-ecb-custom-actions-based-on-specific-list-properties-using-the-client-object-model/Or tryhttp://stackoverflow.com/questions/13795858/how-to-hide-view-in-browser-in-document-library-in-sharepoint-2010-using-javascr $(document).ready(function(){
    $('.ms-MenuUIPopupBody').live('blur', function() {
    var elm = $("div.ms-MenuUIULItem a:contains('View in Browser')");
    elm.remove();
    $("div.ms-MenuUIULItem a:contains('Edit in Browser')").remove();
    It is hiding menu only on focus or blur or mouseover
    I wants it to be hide on load AS soon as i Click on "V" option on right side of document it should hide View in Browser and Edit in browser
    When I click on V option ![I wants As soon as i Click on v option right side of test it should hide view in Browser and edit in browser][1]
    If this helped you resolve your issue, please mark it Answered

  • Form load rules are not working on display and edit forms

    Hi
    I have customized SharePoint 2013 list form using InfoPath 2013. I want to hide certain fields based on user group. I created rules on form load for that. These rules are working fine on New Form but are not working on display and edit form.
    What can I do?

    It could be because the value might have not changed ie, you might be checking for a particular value, the values might have got overwritten when the new form is saved, see if that value is blank or overwritten in display and edit forms.
    I would first check the form load rules and check those values again in Display form and edit form, if the values are not getting cleared/overwritten.
    It would be better if you could upload the screenprint.
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Emailing and saving and editable form

    Hi there
    HELP!
    I have converted an existing legal agreement to an editable pdf form, which will be filled out by users. Once it has been filled out, I would like the user to have the option to either email/save this form. The user will need to email the form to their client who will print it out sign it an fax it back to the user. This form might be filled in by more than one user. Hope this makes sense!
    Is this possible??
    Thanks in advance
    Sophia

    Hi aunkster,
    Yes, in Numbers you can have several tables on a sheet.
    Click anywhere in a table to make it active. Then click on the top left to select the whole table.
    In Numbers '09:
    In Numbers 3:
    Then Menu > Edit > Copy
    Open a new document.
    Delete any default tables.
    Paste.
    Save.
    Email that document.
    Please update your profile to show your current version of OS X and Numbers. That makes it easier to answer questions .
    Regards,
    Ian.

  • How to implemenet "Edit in Browser" and "View in Browser" in custom ECB Menu

    Hi,
    i have build a custom ECB menu. I implemented for example "Edit in Microsoft xxx" Item successfully.
    setDocType();
    if (currentItemAppName != "" && currentItemOpenControl != "") {
    strDisplayText = "";
    if (currentItemAppName != " ")
    strDisplayText = StBuildParam(L_EditIn_Text, currentItemAppName);
    else {
    var objEditor = StsOpenEnsureEx2(currentItemOpenControl + ".3");
    if (objEditor != null)
    strDisplayText = L_EditInApplication_Text;
    if (strDisplayText != "") {
    strAction = "editDocumentWithProgID2('" + currentItemFileUrl + "', '" + currentItemProgId + "', 'SharePoint.OpenDocuments', '0', '" + ctx.HttpRoot + "', '0')";
    strImagePath = ctx.imagesPath + currentItemIcon;
    CAMOpt(m, strDisplayText, strAction, strImagePath, null, 260);
    CAMSep(m);
    But i couldnt find any information to "Edit in Browser" and "View in Browser". I also look in the core.js and couldnt find any information about this.
    Can someone help? How could i
    implemenet "Edit in Browser" and "View in Browser" in my custom ECB Menu?
    Best Regards
    Bog
    Developers Field Notes | www.bog1.de

    Hi,
    According to your post, my understanding is that you wanted to custom the “View in Browser” and “Edit in Browser” with ECB menu.
    Per my knowledge, the view in browser and edit in browser use the STSNavigate method to navigate the page.
    The URL would like below.
    Edit in Browser:
    http://YourServerName/sites/YourSiteName/_layouts/WordEditor.aspx?id=/sites/YourSIteName/YourLibraryName/YourFileName
    View in Browser:
    http://YourServerName/sites/YourSiteName/_layouts/WordViewer.aspx?id=/sites/YourSIteName/YourLibraryName/YourFileName
    We can get the file name, then use following method to customize the view in browser or edit in browser.
    function Custom_AddDocLibMenuItems(m, ctx) {
    CAMOpt(m, 'Custom Edit In Browser', 'javascript:STSNavigate(siteurl+"_layouts/WordEditor.aspx?id="+currentItemFileUrl)');
    CAMSep(m);
    </script>
    http://weblogs.asp.net/jan/customizing-the-sharepoint-ecb-with-javascript-part-1
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to change the width of the EditForm.aspx and NewForm.aspx for both new and edited list entries?

    How to change the form widths for the EditForm.aspx and NewForm.aspx files that display both new and edited list entries?

    Hi  ,
    According to your description, my understanding is that you want to modify the width of the New Form and Edit Form of a list in SharePoint 2010 .
    1.Go to your SharePoint site -> your list.
    2.In top ribbon click  List tab(List Tools).
    3.Towards right you will see option as Form Web Parts, click on it, the three forms will be listed there [New Form, Display Form, Edit Form].
    4.Select the one on which you want to increase the width/height.
    5.It will open in edit mode, click on Add a Web Part.
    6. Click on Forms [Categories] => HTML Form Web Part.
    7.After adding the HTML Form Web Part, click on Edit WebPart.
    8.Click on Source Editor, Remove all code from it and put an empty HTML table with width and height as per your requirement ex. to increase width
    <TABLE WIDTH="800px">
    <TR><TD></TD></TR>
    </TABLE>
    9.Save the form and check out your respective modal by clicking on the same in your list view.
    Reference:
    http://sharepoint.stackexchange.com/questions/40580/how-to-modify-width-of-standard-dialog-form-sharepoint-2010
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Hide content type from the new menu but show in edit form

    SharePoint Online, I have following 4 site content types Word Document Excel document PowerPoint document General document
    These content types are being used in a document library and "Word Document" is the default content type, When user clicks on "new" menu, all 4 content types are shown.
    I don't want to show "General document" in the new menu but I want to show in edit form, I have marked it hidden in the library settings but now it is not visible in the edit form.
    Any idea how can I hide content type from the new button but show in edit form?

    Hi,
    Whether you use SharePoint online 2013.
    If we hide the content type in the library settings, the content type will not be displayed in both new menu and edit form.
    To accomplish your qequirement, we need to use css code:
    style <style type="text/css">
    ul.ms-cui-menusection-items32 li:nth-child(4) {
    display: none !important;
    </style>
    perhaps your environment is different with mine, you need to make a little change to the code. 
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have
    feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • One JSP with an Action Link and a Form

    I have a JSP and there are a link (it invokes an action) and a form (the form has a submit button). My struts-config.xml looks lik
    Message was edited by:
    jiapei_jen

    Hi,
    your strtus config file looks like
    <form-beans >
    <form-bean name="manageAuditFindingsForm" type="com.lib.struts.form.ManageAuditFindingsForm" />
    </form-beans >
    <action
          attribute="manageAuditFindingsForm"
          input="/New.jsp"
          name="manageAuditFindingsForm"
          path="/manageauditfindings"
          scope="request"
          type="com.lib.struts.action.ManageAuditFindingsAction">
          <forward name="success" path="/AuditFindings.jsp" />
        </action>Thanks
    Edward

  • Record locks created when user closes the Browser and not the Web Form

    Hi. We sometimes encounter the issue where a user updates a record, locking the record on the table, but then they unexpectedly closes the browser without saving by clicking the X in the upper-right of the browser window. Then when another user comes along and attempts to edit that record they get the message Unable to Reserve Record. The orphaned record lock eventually does seem to clear itself out, but that can often take 15-20 minutes.
    Is there any way to speed this up? Or to pragmatically keep this from occurring? Either on the database side or with some code in a particular application?
    Please let me know your thoughts. Thanks in advance.

    If a user closes the browser window the forms runtime on the application server holding the locks is in most cases still up and running. The FORMS_TIMEOUT controls on how long a forms runtime on the server is up and running without the client applet not sending a heartbeat (See MOS note 549735.1). By default this is 15 minutes which would explain your locks being held 15 minutes.
    You could decrease the FORMS_TIMEOUT in the default.env, so the forms runtimes get cleaned earlier and thus the locks get released earlier.
    Note that if you have blocking client_hostcalls with webutil this might be a problem, as it prevents the forms applet from sending the heartbeat and after the FORMS_TIMEOUT passed while the forms applet is blocked the forms runtime on the server gets closed.
    cheers

  • Browse and upload file - Forms(6i)

    Hi Friends,
    How to enable users to browse and select a file from their local machine in a D2K forms (6i) and upload to the database unix directory
    Thanks
    Ramya

    Hi Friends,
    my exact requirement -
    I have a form with 2 buttons -
    First Button -
    I have to create a external table,the file that is associated with external table is browsed in the form through button,after the file is browsed ,the same file has to be placed in unix directory.
    Second button -
    This button is to execute a packaged procedure which will be using the data from the file associated with the external table that we placed in the unix directory ( which i explained under button1)
    Thanks
    Ramya

  • I have created a form in InDesign, exported to a pdf, created an editable form and saved.  When I open the form and make changes and save, the reopen the changes are there.  If try to email this form as an attachment after editing, the attachment is alway

    I have created a form in InDesign, exported to a pdf, then created an editable form and saved.  When I open the form and make changes and save, then reopen the changes are there.  If try to email this form as an attachment after editing, the attachment is always minus the edits.   ????

    Hi chuck,
    If you ave created the form and then filling it yourself and saving the form, the filled data should be there when you reopen the same form.
    Can you please send the form to me at [email protected]  so that I can have a look.
    Regards,
    Rave

  • How to distribute on browser a PDF form but editing it only online?

    Hi,
    this is my issue:
    I need to distribute a PDF form made with InDesing or Acrobat X Pro and collect data. But...I have  some other requirements/constraints.
    1)     The final user have to edit form only online
    2)     The final user have to edit the form in more work session (also day by day…the form is very long).
    3)     I have to collect data on a database for reporting
    Optionally…
    4)     The final user could not download the final pdf (I would have avoid that he/she print the pdf).
    Could you propose a technical solution to implement all this?
    Thank in advance!
    Valerio

    Hi Bernd
    I saw that Adobe have web tool also to publish and edit online the PDF... (into Acrobat X Pro - trial ed. - I see that it's possible publish on "some" server).
    But - after published - accessing to the form on line I could save locally the file?... will be open with a standard Acrobat Reader to fill the form?
    thk  u

  • Display and edit currently selected row of ADF Table in ADF Form

    I have an ADF Read-only Table and ADF Form, which were created from the same Data Control.
    I need to be able to edit the selected row of the table in the form (just like in "Binding Data Controls to your JSF page" part of "Developing RIA Web Applications with Oracle ADF" Tutorial). However, I can't figure out how to do this :(
    I found the following solution on the Web: #{bindings.DeptView1.currentRow.dataProvider.dname} - but it doesn't work, since "the class oracle.jbo.server.ViewRowImpl does not have the property dataProvider".
    Sorry for the newbie question.
    Thanks in advance for any help!

    Hi,
    AFAIK, dataProvider is not supported on ADF BC, hence the error.
    If you have created ADF Read only table and form from the same data control you just need to refresh the form based on table selection to show up the selected record, to do which you just need to add partialTriggers property to the panelFormLayout and set its value to the id of table
    Sireesha

  • What is tthe Best practice for Variant List, Add, Edit and Display Forms?

    Requirement:
    I have single list.  The list has a large number of columns and a large number of items (lets say 20,000).
    I want to show users a different view of the list based on clicking on a different left-hand navigation option.
    Lets say I have four types of users:  Sales, Manufacturing, Shipping and Finance. I would like to have four options in the left-hand navigation.
    All of them would be pointing at the same list, BUT, I want each of them to have a customer list form.  The only difference between the custom list forms would be:
    Each would have its own set of views, and hence its own default view.
    Each would have its own New, Edit and Display Forms.  The only difference between the forms in one variant list and another would be: The order of the columns and which columns are modifiable.
    I would like to achieve this in SharePoint Designer in such a way that the "users" could still add/modify views and could even modify the forms from the SharePoint Menu.  BTW, I don't want to use InfoPath for obvious reasons.
    What is the best approach to meeting this requirement?  I have at least 20 sites and 70 lists overall that need variant forms made.
    HELP!!
    Savin
    BTW We are using SharePoint 2013 and I selected the wrong forum *sigh*.  But I think its probably the same answer.
    Cheers, Savin Smith

    Hi,
    I understand that you want to have different forms based on different view.
    Per my knowledge, there are no out of box method to achieve it.
    As a workaround, you can add the JavaScript code to the different view page.
    For example, to open different new form based on different view, you can get the windows.location, and then judge the view, then change the onclick event of the "New item" button.
    For more information, you can refer to:
    http://css-tricks.com/snippets/javascript/get-url-and-url-parts-in-javascript/
    http://samsharepoint.wordpress.com/2013/05/01/change-the-default-sharepoint-ok-and-cancel-button/
    Thanks,
     Linda
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

Maybe you are looking for