Vai al contenuto principale

BIN JBUg4 Documentation

  • Author:

  • Version: 53

  • Description: Troubleshooting a support call through forms ... Examples of questions through forms, very old.. around 2003, present also in bindexamples app. Has no b_u_g, is just the random name [J B U g 4] that contains [b u g]

  • Created: 2014-09-11

  • Modified: 2016-01-30

  • Source:

     Modifica Bin W3C Schema Json-Schema Java Bean Code Default Value as XML

    Printers Embed Responsive

    <osk
        xmlns:extra='http://eleusoft.org/schema/extra'>
        <datatypeLibrary prefix='xs'  uri='http://www.w3.org/2001/XMLSchema-datatypes' />
        <schema 
            name="example.questions" 
            description=""
            uri="http://example.questions"> 
            <ns prefix='q' uri='http://example.questions'/>
            <complexType name="T_Troubleshooting" extra:form='true' description="Troubleshooting a support call through forms ... Examples of questions through forms, very old.. around 2003, present also in bindexamples app. Has no b_u_g, is just the random name [J B U g 4] that contains [b u g]">
                <choice caption='Welcome to the PC support, please select the kind of computer you have' extra:choice.autosubmit='true'
    				name='SelectComputerChoice'>
                    <field name='Undetermined' type="RaiseError" extra:form.error='Please tell us about your computer' extra:choice.caption="(No computer selected)" default=''/>
                    <field name="Laptop" type="RaiseError" default="" extra:form.title="Sorry we do not support laptops..you have to go to the laptop support page." extra:form.error='I told you we do not support laptops..'
    />
                    <field name="Desktop" type="q:T_Desktop" extra:form.title="Ok, we support indeed desktops for this building...for which company do you work ?"></field>
                </choice>
            </complexType>
            <complexType name="T_Desktop" >
                <choice caption='Select company' extra:choice.autosubmit='true'
    				name='CompanyChoice'>
                    <field name='Undetermined' type="RaiseError" extra:form.error='Please tell us about your company'  extra:choice.caption="(No company selected)" default=''/>
                    <field caption="Illumium Accounting" name="IllumiumAccounting" type="RaiseError" default="" extra:form.title="Ha ha we do not support Illumium Accounting employees anymore, contact your internal service."
    extra:form.error='I told you we do not support anymore Illumium Accounting..'
    />
                    <field caption="Arnoldo Pizzeria" name="ArnoldoPizzeria" type="q:T_Desktop_Problem" extra:form.title="Great, let's go to the troubles.."/>
                    <field name="FeynorCigars" caption="Feynor Cigars" type="q:T_Desktop_Problem" extra:form.title="Ok, let's go to the troubles.."></field>
                </choice>
            </complexType>
            <complexType name="T_Desktop_Problem" >
                <choice name='ProblemChoice' caption='What is your problem ?' extra:choice.autosubmit='true'>
                    <field name='Undetermined' type="RaiseError" extra:form.error='Please tell us about your problem or  call 8937922' extra:choice.caption="(No problem selected)" default=''/>
                    <field name='NoSignOfLife' type="q:Question_NoSignOfLife" caption="The computer does not turn on" />
                    <field name='ComputerNoStart' caption="The computer does not start correctly" type="q:Question_ComputerNoStart" />
                    <field name='ComputerOn' caption="The computer is on but ..." type="q:Question_ComputerOn" />
                </choice>
            </complexType>
            <complexType name="Question_ComputerNoStart" >
                <choice name='SeeOnScreenChoice' caption="What do you see on the screen ?" extra:choice.autosubmit='true'>
                    <field name='Undetermined' type="RaiseError" extra:form.error='Please tell us what you see on screen or call 839873' extra:choice.caption="(No answer)" default=''/>
                    <field name='NoStart_BlueWindow' extra:choice.caption="I see a blue window" 
    						extra:form.title="You have an hardware problem, please call 555-2344 specifying code H001." 
    						type="LabelDefault" default=""/>
                    <field name='NoStart_DosWindow' 
    						extra:choice.caption="I see a black window" 
    						type="q:Question_ComputerNoStartBlackWindow"/>
                </choice>
            </complexType>
            <complexType name="Question_ComputerNoStartBlackWindow" >
                <choice name='FloppyInsideChoice' caption='Do yo have a floppy disk inside the floppy drive ?' extra:choice.autosubmit='true'>
                    <field name='Undetermined' type="RaiseError" extra:form.error='Please select one of the options or call 83-38783322 ' extra:choice.caption="(No answer)" default=''/>
                    <field name='FloppyInside' caption="Yes" 
    					extra:form.title="Remove the floppy, press reset button in front of your computer and try again"
    					type='HiddenDefault' default=""/>
                    <field extra:choice.caption="No" name='BlackWindow_NoFloppy' 
    					extra:form.title="You probably have an hardware problem, please call 555-2344 specifying code H002." 
    					type="LabelDefault" default=""/>
                </choice>
            </complexType>
            <complexType name="Question_ComputerOn" >
                <choice name='MouseStateChoice' caption='So your computer is on, can you see the mouse ?' extra:choice.autosubmit='true'>
                    <field name='Undetermined' type="RaiseError" extra:form.error='Please select one of the options or call 83-38783322 ' extra:choice.caption="(No answer)" default=''/>
                    <field name='ComputerOn_Frozen' caption="The mouse does not show up" type='HiddenDefault' default=""
    				extra:form.title="Press the reset button in front of your computer and try again"/>
                    <field caption="Yes" name='ComputerOn_NotFrozen' extra:form.title="Please, close all the applications saving your data and restart the computer. 
    				If the problem shows up again call 5555-3242 specifying code 0032 " type="LabelDefault" default=''/>
                    <field name='IDontKnowWhatTheMouseIs' extra:choice.caption="I don't know what is the mouse" 
    					extra:form.title="The mouse the mouse..we all need some help at this point." type="LabelDefault" default=""/>
                </choice>
            </complexType>
            <complexType name="Question_NoSignOfLife" >
                <choice name='PowerCablesChoice' caption='Are the power cables connected ?' extra:choice.autosubmit='true'>
                    <field name='Undetermined' type="RaiseError" extra:form.error='Please select one of the options or call 83-38783322 ' extra:choice.caption="(No answer)" default=''/>
                    <field name='CablesConnected' caption='Yes' type="q:Question_Monitor" />
                    <field name='CablesNotConnected' caption='No' extra:form.title="Please, connect the cables and try again." type="LabelDefault" default=''/>
                    <field name='CablesIDontKnow' extra:choice.caption="I don't know what are the power cables" 
    					extra:form.title="The power cables are the cables that come out of your desktop and connect to the electricity.
    					You must check that both the monitor and the computer have cables connected to the electricity." type="q:WhatAreCables" />
                </choice>
            </complexType>
            <complexType name="WhatAreCables" >
                <choice name='CablesConnectedChoice' caption='Do you see the cables connected ?' extra:choice.autosubmit='true'>
                    <field name='Undetermined' type="RaiseError" extra:form.error='Please select one of the options or call 83-38783322 ' extra:choice.caption="(No answer)" default=''/>
                    <field name='CablesConnected' caption='Yes' type="q:Question_Monitor" />
                    <field name='CablesNotConnected' extra:form.title="Please, connect the cables and try again." type="LabelDefault" default=''/>
                    <field name='IDontKnowWhereAreTheCables' extra:choice.caption="I don't know what you are talking about" 
    					extra:form.title="Please call 0999-5555 for help, specifying code 0001" type="LabelDefault" default=''/>
                </choice>
            </complexType>
            <complexType name="Question_Monitor" >
                <choice name='MonitorQuestionChoice' caption='Is the monitor turned on ?' extra:choice.autosubmit='true'>
                    <field name='Undetermined' type="RaiseError" extra:form.error='Please select one of the options or call 83-38783322 '  extra:choice.caption="(No answer)" default=''/>
                    <field name='Monitor_TurnedOn' caption='Yes' type="q:Question_VerifyElectricity" />
                    <field name='Monitor_NotTurnedOn' caption='No' extra:form.title="Please, turn on the monitor and try again." type="LabelDefault" default=''/>
                    <field name='IDontKnowHowToTurnOnMonitor' extra:choice.caption="I don't know how to turn on the monitor" 
    					extra:form.title="The monitor can be turned on with the button that stays in front of it." type='LabelDefault'  default=''/>
                </choice>
            </complexType>
            <complexType name="Question_VerifyElectricity" >
                <choice name='VerifyElectricityChoice' caption='Please verify the electricity plugs connecting a lamp to them and seeing if they work.' extra:choice.autosubmit='true'>
                    <field name='Undetermined' type="RaiseError" extra:form.error='Please select one of the options or call 83-38783322 '  extra:choice.caption="(No answer)" default=''/>
                    <field name='VerifyElectricity_TheyBothWork' extra:choice.caption="Both work fine." extra:form.title="Please call 0999-5555 for help, specifying code 0003" type="LabelDefault" default=''/>
                    <field name='VerifyElectricity_OneOrBothNotWorking' 
    					caption="One or both do not work." 
    					extra:form.title="Please call 0999-5555 for help, specifying code 0002" 
    					type="LabelDefault" default=''/>
                    <field name='ICannotDoIt' caption='I cannot do it' extra:form.title="Please call 0999-5555 for help, specifying code 0002" type="LabelDefault" default=''/>
                </choice>
            </complexType>
        </schema>
        <schema name='org.example.basetypes'>
            <simpleType name="RaiseError"	type="xs:string" extra:form.control="RaiseErrorControl" description="Form helper that always raises an error when is submitted. The error message is configured with the form.error schema extra attribute or in localizable properties."/>
            <simpleType name="HiddenDefault"	type="xs:string" extra:form.control="HiddenDefaultValueControl" extra:xform.hidden='true' description="Form control that returns the default value of the field without displaying it."/>
            <simpleType name="LabelDefault"			type="xs:string" extra:form.control="LabelDefaultValueControl" description="Form helper for fixed values that want to be displayed in a label."/>
        </schema>
    </osk>