The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Main ActionBars
Posted: 26 Sep 07 1:57 PM
|
Does anyone know if it is possible to default the search screens that come up when a Search Action bar item is selected to display the actual lookup data without hitting the spy glass? |
|
|
|
Re: Main ActionBars
Posted: 27 Sep 07 7:03 AM
|
William,
On the BlackBerry action bars there is a property called AutoPop that will automatically populate the grid when the Action Bar Item is selected. This does not exist on the PPC Action Bar. On the PPC the search screen has a codebehind script that can execute different overridable methods. I have not looked at them for some time but there may be something that can be done there to get the behaviour that you are looking for.
Mark |
|
|
|
Re: Main ActionBars
Posted: 18 Oct 07 1:36 PM
|
Mark, sounds good. I guess a big question I have is where are the docs on that? I have all the literature from the "class" they gave on it; am I missing something are is the class that basic that it does not cover stuff like this?
|
|
|
|
Re: Main ActionBars
Posted: 18 Oct 07 2:29 PM
|
William,
I do not believe this information was provided. I know that it was not something that I tought when I did the classes and have not actually written the code to do so. Unfortunately it looks as if the getting to the underlying form is not going to be quite possible. What you are going to need to do is emulate the search functionailty to show the appropiate search form. Basically create an instance of you business object, create an instance of the SearchOptions class and set the appropiate
public function ShowCustomSearch(byval e as ControlEventArgs) Dim accountobj as new Account() dim search as BaseSearch search = new BaseSearch () try ' set all of the other options ' then set this one for autopop search.SearchOptions.AutoPop = true search.Text = "Caption goes here" search.ShowDialog() catch end try end function
this should go into the main navigator and you will need to change the type of actionbar item from Search to Plugin. I have not tested the code but should be close to what is expected. |
|
|
|
Re: Main ActionBars
Posted: 18 Oct 07 2:30 PM
|
Sorry you also have to call
search.BuildForm(accountobj) before you call the show dialog or it will not know what table to bind to.
Mark |
|
|
|