Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with customizing Object Prompt XSL

Status
Not open for further replies.

sunnyphoenixier

Technical User
Dec 3, 2003
45
US
Greetings!

Need help with customizing Object Prompt XSL!

I am creating a new XSL for Object prompt based on existing Single Select Listbox. It needs to have the HIbrowsing function (Having the folder path displayed on top of the box) which just like the PromptObject_ShoppingCart_HIbrowsing.xsl, except it uses a single select list and allows only one answer.

It seems like the XSL works because if I overwrite the Shopping Cart HIbrowsing XSL with the new code, it works. But if I save it as a new style (Named like PromptObject_SingleListBox_HIbrowsing), the FOLDER PATH is not showing up.

It seems like the ASP is not passing the Folder Structure for the new XSL, but it does for the ShoppingCart one somehow.

Any suggestions?

Thanks,

Phoenixier
 
Hi,

since you wrote nothing about making the new prompt-style known to the prompt and the MSTR Web I assume that you still use the old prompt style for the single list box.

1. Make the new style known to the project!

You can do that in the project configuration dialog.
Project Definition -> Advanced -> Modify styles...

Choose Prompt Style = Object

Than add a new style.
Name: PromptObject_SingleListBox_HIbrowsing
File: PromptObject_SingleListBox_HIbrowsing.xsl


2. Associate the prompt with this style!

In the Prompt Generation Wizard you have one button to Modify the Web options (last dialog under titel and description)

There you should find the new style. Select it.

3. The XSL file has to be availabel on the webserver!

I assume you have saved the xsl in the right directory. If not, put it in the root folder of MSTR Web.

Hopefully that helps. With this steps I have added customized prompts to my web projects.

Regards
 
Thanks, IFK!

I should have made myself clearer. Yes, I have done what you suggested. The new style is available to use. The problem is it is not having the folder path listed on the top.

The Sinlge Prompt XML is passing the search result, which are attributes or Metrics, as MicroStrategy Objects. What I hope is to pass the folder structure as the MicroStrategy Objects.

Any suggestions?

Thanks,

Phoenixier
 
Hi Phoenixier,

sorry about that.

I just have one more hint for you. Maybe you don't get a sufficient XML. In PromptDislplayCuLib.asp you'll find a function called:

CreateDisplayXMLForObjectPrompt

In there you'll find an If-statement that checks for prompt = PromptObject_cart_HIbrowsing.xsl

Maybe if you include an OR with your xsl it will work.

That might put you on the right track, I hope.

Regards
IFK
 
IFK,

I think you are right. The problem is at the ASP somewhere. I added an OR to that if Statemenet, unfortunately it didn't solve the issue. Because the fact that if I use the name Shopping Cart HIbrowsing with the same XSL code makes it work, but it doesn't work under a different name, I would guess the promopt names are "Hard coded" or "register" somewhere in either the WebServer or the I-Server.

I plan to bring this to MicroStrategy for help. I'll certainly post my findings. At the meantime, please let me know if you can think of any hint.

Thanks,

Phoenixier
 
Hi,

I need some help to customize the XSL for filter prompt. Right now there is an XSL style for object prompt that allow you to navigate across folder "Shopping Cart with hierarchical browsing". This style is not available in the prompt filter using attribute in a hierarchy.

If any one has done this, please help me.

Regards
Ruben
 
for attribute in a hierarchy filter, there's a new prompt style called shopping cart tree style. It lets you navigate through different parts of a a hierarchy. It is available in 7.5.

 
Thanks,that's a good approach, but the purposed of this kind of style it's to navigate across folder, as is available in object Prompt, so you can organize the way of interacting your user with the Analytical Solution

Ruben
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top