Skip to Content
author's profile photo Former Member
Former Member

Hide parts of a view

Hello,

I am developing an application using MVC. On one view I need a table because of the data that is in there. But the user doesn't need to see the data in this table. Is there an easy way to hide this table?

Regards

ALEX

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Dec 23, 2004 at 08:56 AM

    Hi Alex,

    first please where exactly do you need this data?

    Just server-side to control creation of your view's HTML output? Or client-side because you want to submit this data through some form fields? Or even another different way ...?

    Add a comment
    10|10000 characters needed characters exceeded

    • First of all make sure about two things for your application:

      *) are you running stateful or stateless?

      *) are you using just an application class or a "real" model class according to MVC?

      Ok, apart from that, here is what you have to distinguish between for your problem:

      Values from page1 are sent to server on submitting the form, now you can handle them on the server.

      For stateless applications it is ok (one possible way) to place these values again in the next page to have them again in the next response. But as you are using MVC, let's look at the stateful advantages ...

      Your model is the place where you can store all your session values, like the values from the form in page1. So, after page1 is submitted, you just assign the values to attributes of your model, then you don't have to place them in page2 again.

      After the user entered a description and submitted page2, you just use the data stored in the model.

      Where exactly is it that you loose your values? On the way from client to server (form submit), or do you place them in appplication class/model and they disappear there?

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2004 at 05:35 PM

    Hi Alexander,

    We are all a little lost but I will take a shot in the dark here.

    You have a view in your application and on that view you display data, be it text, table whatever and for some users you want them to see it and others not, correct?

    You can program into your code an "authorization check", take a look at this link for more info.

    http://help.sap.com/saphelp_erp2004/helpdata/en/8d/3e4e19462a11d189000000e8323d3a/frameset.htm

    If I am wrong then please provide more info so one of us can help you out.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2004 at 02:57 PM

    Hi

    Are u talking abt the tableview?

    Naresh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2004 at 04:08 PM

    Alexander, please explain your problem more accurate, <i>..you need a table because of the data that is there. But the user doesn't need to see the data in this table..</i> ??!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.