473,396 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

UIP App Block EnterTask() method

I start a new task by calling OnEnterTask. Based on the TaskArguments,
I want the new task to start in one of several views. No matter what I
do, however, it always starts in the startView as specified in the
config file.

Any way to make this do what I want?

Thanks,
Bryan
Nov 19 '05 #1
6 1235
Hi Bryan,

Welcome to MSDN newsgroup!

From your description, I think you set some "startViews" in the config
file, but you want the new task to start in one of TaskArguments which set
before. Please tell me if I have misunderstood something.

Actually, I'm confused why you not disable the view specified in the config
file. Could you please give me some details about your requirement and
concern?

I also want to know how you start a new task by calling "OnEnterTask"
method. I notice the ControllerBase class containing the EnterTask method.
We can derive it and implement the function manually. So could you tell me
how you implement it?

Happy for discussed with you, I'm looking forward your reply.

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Nov 19 '05 #2
On Tue, 27 Sep 2005 08:41:26 GMT, v-****@microsoft.com ("ÈÎÔ¶[΢Èí]")
wrote:
Hi Yuan, nice to talk with you again. You must be the UIAPB expert...

If I don't specify the startView in the config file, I get an error -
it is expected by the schema. So in my OnEnterTask method, I try to
change the current view like this:

public override void EnterTask(TaskArgumentsHolder taskArgs)

// Figure out where I want to start,, then

//
// I have tried various combinations of the followowing, none of which
// seem to work - I always get the startView specified in the
// config file

this.State.NavigateValue("ViewIWantToStartAt");
this.Navigator.Navigate("NodeName");
this.Navigator.CurrentState.CurrentView = "ViewIWantToSee";

Any suggestions?

Thanks,
Bryan

Nov 19 '05 #3
Hi Bryan,

Thanks for your response!

At the current stage, I think your purpose is starting with another view
which not specified in the config file. Please let me know if I have
misunderstood something.

As far as I know, the value set in the config file would be loaded when the
UIP application starts. That means while the UIP application starts, it
will read the value by calling XmlReader (or something else) method to get
these values. Then the setting applies to the application. It is the reason
why we need specify the startView in the config file.

The EnterTask method is the exposed interface to make some extension; it
would not be executed automatically. Would you please to me how you
implement it, is it derived from the ControllerBase class directly?

Actually, I'm confused why not directly change the startView to a new view
which we want to navigate in the config file.
Maybe you have some specific concern. Could you please give me some
description for your detailed requirement? I suppose currently the
startView is the cart view, but you just want to start your web application
at the order view.

It's my pleasure to be of assistance, I looking forward your reply.

Regards,

Yuan Ren [MSFT]
Microsoft Online Support

Nov 19 '05 #4
Hi -
The view I want to start at is in the config file, it's just not
the default start view. EnterTask() is called when the task is started
from an already executing UIAPB task, and depending on the current
state of the application, I need to have different start views for
this second task.

For instance:

public override void EnterTask(TaskArgumentsHolder taskArgs)

{
MyObj o = taskArgs as MyObj;

if(o.foo == true){
//
// Start at foo.aspx
}else{
//
// Start at normal start view from config file

}

THis seems like something that I should be able to do.

Thanks,
Bryan
Nov 19 '05 #5
Hi Bryan,

Thanks for your response!

Your description makes me clear about the requirement. I'm testing for the
issue and performing some research now. I'll reply to you as soon as I get
any results. Thanks for your understanding!

Yuan Ren [MSFT]
Microsoft Online Support

Nov 19 '05 #6
Hi Bryan,

I'm sorry for reply late. For the current issue, I have discussed with the
expert form Enterprise Library team. The way of implement is out of scope
for newsgroup support. It is better for you if one of our PSS support
engineers supply sample how to implement your requirement. This may need
you submit a support incident in Microsoft PSS (Product Support Service).
As a MSDN subscriber, you have two free support incidents.
For your reference, I attached steps to contact Microsoft PSS here: You can
contact Microsoft Product Support directly to discuss additional support
options you may have available, by contacting us at 1-(800)936-5800 or by
choosing one of the options listed at:
http://support.microsoft.com/d-efaul...Offe-rProPhone

Thanks for your understanding!

Best regards,

Yuan Ren [MSFT]
Microsoft Online Support

Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
5
by: John Perks and Sarah Mount | last post by:
When handling resources in Python, where the scope of the resource is known, there seem to be two schools of thought: (1) Explicit: f = open(fname) try: # ... finally: f.close()
3
by: Brian | last post by:
Is it possible to have more than one try/catch/finally block within a method? Also, if the code never enters the try block of code, is the finally block executed? I have a try block in a branch...
3
by: Travis | last post by:
I am trying to prevent an exception from bubbling up from one nested Try/Catch Block to its "Parent" Try/Catch Block. Here is some example code: try{ try{ //Non-application killing code that...
1
by: Novice | last post by:
Hi all, I have written some code that invokes a method a few hundred times and then it immediately finishes. I would like it to instead: 1. start the hundreds of threads (asynchronously) 2....
3
by: E | last post by:
I have 2 aspx pages... neither of which do anything out of the ordinary. One of the pages automatically generates this block of code when viewed at the client:...
11
by: | last post by:
Is it possible to define a variable in a block in order to make it invisible outside that block? For example, in C I can write { int a .... } then a will only be available inside the curley...
2
by: Jake Barnes | last post by:
Using javascript closures to create singletons to ensure the survival of a reference to an HTML block when removeChild() may remove the last reference to the block and thus destory the block is...
16
by: HillBilly | last post by:
This is freaking me out. I'm using Membership and trying to determine if the database is online. The GetConnectionString( ) method returns a connection string as expected but not when used in the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.