closed
Public

So I m wondering if there is a solution I can use for the following situation from foreUI. Here is the use case. Imagine the amazon or facebook website.

1. New user creates a account.

2.1. User assigns this newly created account to a group ( for example family, friends etc on facebook)

2.2. User subscribes to various companies page.

Now step 2.2 and 2.1 not always in the same order i.e. step 2.2 could occur before step 2.1 occurs. However the UI for step 2.2 would be different if it is started first. I can create two different types of pages in the same plot but I am not able to understand if there is a easy way for me to direct the users to the appropriate page depending if they completed step 2.1 to start with or not. Any suggestions?

4 answers

Hi varun,

The case you mention is quite common for web site prototyping. The easiest way to achieve this is to set a global property when step 2.1 is completed. In the “Page Loaded” event handler for step 2.2, check the value of that global property and do different things accordingly.

Actually you can make step 2.2 as a “page router”, it will switch to 2.2.1 or 2.2.2 depending on the value of the global property you set in 2.1 step.

Hope that makes sense for you.

#1

Okay. Thanks Xavier. Just to clarify, it seems like one can do this using two methods, 1. by checking global properties in page loaded event handler and 2. by using page router method. right? I wasn’t very sure if you were giving me a single or multiple solutions.

Secondly for set global property, how can one check the for value of global property? It was a bit confusing for me when I started using the global property in page loaded to check for a value.

Thanks

#2

Hi varun,

Yes I have suggested two solutions, and they just have some differences at the last step.

When step 2.1 is completed, you can set the global property:

Then in the “Page Loaded” handler for step 2.2, you can check that property:

From now on, the two solutions are differrnt.

Solution A: Control the content in step 2.2 page, according to the property value. You can show/hide elements as you need.

Solution B: Just switch to different predefined pages, according to the property value.

Personally I would recommend solution B, since controlling the content in single page is complex, I perfer creating two different pages and switch between them.

#3

Thanks Xavier. So how can one typically define this step in this process? I mean on a page I feel having some elements would be one way for me to determine the step completion. Specifically if you look at the screen shot below, I am not sure if I am supposed to click on insert property and select a element on the screen for this step?

or else could be the property be any random string which has nothing to do with the elements( button, number of rows in a table etc.)? Thanks

#4
  1. You can input any property name as you like, if the property is not defined before, ForeUI will create one automatically.

    The drop down list for "Property Name" allows you to pick a previously defined property (via the Global Properties window). The "..." button allows you to insert a predefined property as the name of new property. Also you can place predefined properties in the "New Value" expression, if you want.

    In your case, just input a string as the property name and a value (number or string) that you think meaningful, then check against it later.
  2. Hey Xavier,

    Thanks. I have sent a mail on foreui support. If you could help me it would be great. Thanks
  3. Hi Varun, I think ViVi had replied your email. Does that work for you?
  4. Yes it was very helpful. Thanks

This question is now closed