Alpha Video Training
Results 1 to 6 of 6

Thread: Editing submitted New record with picture upload

  1. #1
    Member
    Real Name
    Oluotes
    Join Date
    Jun 2011
    Posts
    7

    Default Editing submitted New record with picture upload

    Dear All,

    I have an Online Registration system that allows users register their details. The registration page requires user to key in their information and also upload their picture.

    I am using a grid component for the registration form with allow update and allow insert properties set to true. Also, I have Number of new records rows property set to 1.

    What I want to achieve is that when I submit the form to itself <Self>, it should save the current record into the database and display back on the same form the data just entered in editable mode so that I can upload my picture.

    Thanks in advance.

    Regards,
    Oluotes

  2. #2
    Member
    Real Name
    Oluotes
    Join Date
    Jun 2011
    Posts
    7

    Default Re: Editing submitted New record with picture upload

    Please anyone has an idea on how to go about this? Or maybe my question is not clear.

    I want to be able to edit a new record in a grid on the grid itself. Usually, when you create a new record in a grid, it automatically clears the form once you submit/update the grid. I don't want the grid to be cleared. I want the data to show so that I can update the picture field.

    Help will be appreciated.

    Many thanks.

  3. #3
    Member
    Real Name
    Luc Vaessen
    Join Date
    May 2010
    Location
    Mexico City
    Posts
    9

    Default Re: Editing submitted New record with picture upload

    Oluotes,
    Here are some advice from personal experience:
    1. Load always the image from a detail view;
    2. Show the button to upload the image after saving the row first;
    3. To keep the row open after saving it: in the detail view properties, don't close the detail view after submit so it stays open to upload the image;
    4. Always order the rows in the main grid (Query - order by);
    5. refresh the grid and detail view after uploading the image with a Javascript function like this (the function can be launched from the upload image dialog):


    function afterUpload() {

    {grid.Object}.refresh();
    {grid.Object}.detailViewRefresh();

    }.
    There are other threads on this forum explaining how to save the row automatically when opening the detail view.

  4. #4
    Member
    Real Name
    Oluotes
    Join Date
    Jun 2011
    Posts
    7

    Default Re: Editing submitted New record with picture upload

    Many thanks vaessenl. I will try your suggestion and revert.

    I really appreciate this.

    Regards,
    Oluotes

  5. #5
    Member
    Real Name
    andi conti
    Join Date
    Jan 2013
    Posts
    6

    Default Re: Editing submitted New record with picture upload

    Hi, I have been looking to your thread to achieve uploading an image in detail view.

    However, your steps 4 & 5 are not as clear to me.

    I am working in a5V11 and am confused on where you "Always order the rows int eh main grid (Query-order by)" -I haven't been able to find this property so I'm assuming it may be code ?

    And on 5 I tried placing your code inline, but it did not work. I have also tried looking to other threads that explain how to save the row automatically after uploading.

    Could you emphasize on this?

    I'm basically just wanting the option to save my record after the upload, but the detail view is not registering that the field 'has been updated'

    Thanks,
    andi

  6. #6
    Member
    Real Name
    Luc Vaessen
    Join Date
    May 2010
    Location
    Mexico City
    Posts
    9

    Default Re: Editing submitted New record with picture upload

    Hi Andi,
    This thread is no longer valid with version 11. It is now possible to upload an image from the main grid or dialog without saving the record before. It is not necessary to save the record after uploading an image in the detail view since the image is saved in the record automatically. And it is not possible to move on without saving other changes in the detail view.
    Regards.
    Luc

Similar Threads

  1. upload a picture using dialog web component?
    By scarletmaecenas in forum Application Server Version 9 - Web/Browser Applications
    Replies: 1
    Last Post: 05-03-2010, 05:46 PM
  2. Upload picture and writing file to directory
    By emrprive in forum Application Server Version 8
    Replies: 1
    Last Post: 10-11-2007, 05:05 PM
  3. Email picture submitted in a web form
    By Nathan Zeiset in forum Application Server Version 8
    Replies: 2
    Last Post: 08-15-2007, 06:00 PM
  4. Email Link After Record Submitted
    By Ray in forum Web Application Server v6
    Replies: 2
    Last Post: 11-23-2004, 05:07 AM
  5. Email Report After Record Submitted
    By mpierce in forum Web Application Server v6
    Replies: 2
    Last Post: 11-19-2004, 05:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •