Skip to Content

Clearing previous data

Hi All,

I have some VC models where I am displaying input form in one layer and after submit(Submit Form) I am displaying output layer. The problem i am facing is when user goes back to input screen by back button (History Back) and again enters different data what he sees in the output layer is previous run data until it is refreshed. I want to clear this previous data in output layer immediately when he clicks submit on first input layer.

Also can we make submit button 'default' so that when users selects all input variables and presses 'ENTER' the form should get submitted. I could not find any such property for the button.

Has anyone done this? please help me on this, this is a valid and a bit urgent requirement.....

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Jul 20, 2007 at 05:21 AM

    Hi Navneeth/Satish,

    thanks for the useful link...

    The blog explains how to clear a 'form' using trick of storing the 'fields' on it as ''(blank).

    But my output layer has one graph and below that one table. After user presses submit on input layer he sees this previous graph and table which i need to CLEAR or make it blank.

    any idea you suggest to clear the graph along with table?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 20, 2007 at 04:30 AM

    Hi Swapnil

    Please check out this link:-

    /people/jarrod.williams/blog/2006/12/14/visual-composer-tips-and-tricks

    Regards

    Navneet

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 20, 2007 at 05:10 AM

    Hi

    You have to do a workaround based on this link that once you input the data after processing it this field will clear .

    do workaround here that once u press BACK button output layer data vanished

    apply same thing here.

    /people/jarrod.williams/blog/2006/12/14/visual-composer-tips-and-tricks

    Regards

    Satish

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 20, 2007 at 05:31 AM

    Hi

    I worked on same senirio and i solved this.

    you want that : - Based on the input value chart and table are drawn once this input value is changed differerent chart and table comes .moreover once u pressed BACK button Nothing should be there specially in Output layer.

    is it?

    So u apply this concept in that back button that once You pressed it,it first clear the output layer and then come to input layer.

    Let see

    regards

    Satish

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Swapnil,

      I solved this problem in my model by simply switchching the visibility of the whole layer when particular values are changed in the input layer.

      On submitting the input data I stored the 'controlled' values in the data store (as 'old' values) and set the visibility of the layer to 'STORE@<old_value>==@<current value> and ...'. So even if the user changes the layer manually after changing input data without submitting the data, he sees an empty layer and no unexpected data.

      On submitting the input this comparison gets 'true'and so the visibility. To delay the visibility until the new output data is here you would have to compare the current input value with the according value in the output layer additionally.

      I clould imagine that this works for your configuration of layers as well. If not then maybe the use of a nesetd iView for the output layer could make things easier.

      It took me a lot of trying with the clearing of certain output fields and many 32k errors on the way before I fled into this solution. When you have got not only one but several output layers the clearing is going to get real work.

      Regards

      Gerhard