Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Dynamic Form inside Popup window is trying to fetch the form data automatically.

    We have a dynamic Form inside a Popup window. The Popup will appear when I click a load Button. When the load Button is clicked it is saying a warning "Operation type 'fetch' not supported by this DataSource". I agree that ds.xml attached to the dynamic Form does not have a operationType fetch, because I dont need to have fetch as I am not using form to display any information.How to resolve this issue.

    Here is the ds.xml

    <DataSource ID="importUpload">
    <fields>
    <field name="upload" type="binary" maxFileSize="15728640"/>
    </fields>
    <operationBindings>
    <binding operationType="update" serverMethod="processUpload" allowMultUpdate="true">
    <serverObject lookupStyle="new" className="ccom.util.UploadProcessor" />
    </binding>
    </operationBindings>
    <operationBindings>
    <binding operationType="add" serverMethod="uploadFile" allowMultUpdate="true">
    <serverObject lookupStyle="new" className="com.util.UploadProcessor" />
    </binding>
    </operationBindings>
    </DataSource>

    Here is the Dynamic Form Class:

    public UploadForm() {



    setAutoFetchData(false);
    setDataSource(DataSource.get("importUpload"));
    setValues();
    }

    private void setValues() {
    setValue("uploadAction", "upload");


    uploadItem = new FileItem("file");
    uploadItem.setTitle("file");
    uploadItem.setRequired(true);


    submitButton = new ButtonItem("Upload");
    submitButton.setTitle(messages.fileUploadButtonTitle());
    submitButton.setAlign(Alignment.CENTER);
    submitButton.setColSpan(2);




    setFields( uploadItem, submitButton);

    NOTE: This form is used inside a PopUp
    Last edited by roopchandnelluri; 4 Mar 2019, 09:08.

    #2
    If you create a form like that standalone you can readily see that no request is made. So something you haven't shown is at fault.

    The first step with any such problem is to look in the RPC tab of the Developer Console and get information about the request. That will show you the initiating item and a lot of other details that will help you isolate the problem.

    Comment

    Working...
    X