Results 1 to 10 of 216

Thread: xAP Flash nee Joggler beta 5

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Moderator Kevin's Avatar
    Join Date
    Jan 2004
    Location
    West Yorkshire
    Posts
    554

    Default

    Quote Originally Posted by SiliconPixel View Post
    Are there any samples of a textbox being populated from a generic (non BSC) xAP message?
    You need to create a textbox and then set the xAP element to recover a 'generic' schema as CID2 is not supported directly (in fact I am not aware of it as a schema).

    Here is an example of a textbox using your schema and recovering the read messages number :


    Code:
    <textbox NAME="Asterisk_read">>
                  <gridX>1</gridX>
                  <gridY>4</gridY>
                  <width>200</width>
                  <height>60</height>
                  <border>true</border>
                  <alpha>0.8</alpha>
                  <html>false</html>
                  <visible>true</visible>
                  <background>
                      <visible>false</visible>
                  </background>
                  <fontcolour>0xffAA66</fontcolour>
                  <textprefix><![CDATA[There are ]]></textprefix>
                  <textsuffix><![CDATA[ read messages]]></textsuffix>
                  <mode>text</mode>
                  <xAP>
                      <schema>generic</schema>
                      <uid>FFE80003</uid>
                      <source>liming.axc.house:vm.default.500</source>
                      <generic>
                          <Class>CTI2.info</Class>
                          <body>Messages</body>
                          <parameter>readmessages</parameter>
                          <type>text</type>
                      </generic>
                  </xAP>
    </textbox>
    I have included a text prefix and suffx - I have used CDATA tags because there is a trailing and leading space required and this will be removed otherwise.

    There are 7 read messages (cf There are7read messages)

    Also - you are recognising a CTI2.info message - I don't know how Gregs schema works but if there is a CTI2.event message then that is probably what you want - and I am not sure if you can query his schema at startup to solicit the current state - if not you will see the following displayed until a messages is sent.

    There are read messages

    HTH - I know we do need to get out some fuller XML examples....

    K
    Last edited by Kevin; 11th October 2010 at 03:14 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •