Bookshelf Home | Contents | Index | PDF |
Siebel SmartScript Administration Guide > Extending Scripts with Siebel VB and Siebel eScript > SmartScript Methods > GetQuestionGetQuestion returns a question of the script by name. Syntaxwhere varPage is the Page object. ReturnsA question of the script as a SmartScriptQuestion. UsageSpecify the name of the question as a parameter to the GetQuestion method to retrieve the question as a SmartScriptQuestion. The name you specify is the nontranslated name set during authoring, not the question text displayed for a particular language. GetQuestion is declared as a SmartScriptQuestion. You must also specify the page where the question appears. If the question appears on the current page, you do this as follows: var Question = Page().GetQuestion ("Name of question"); If the question appears on another page, you must retrieve this page as in the following example: var p=Script().GetPage("Other page name"); var Question = p.GetQuestion ("Name of question"); Siebel VB ExampleDim ContactQuestion as SmartScriptQuestion Set ContactQuestion = myPage.GetQuestion("First Name") See Also |
Siebel SmartScript Administration Guide | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |