Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Mar 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Setting BG color when time is greather than 10 minutes.

    Hey guys.

    I am trying to change the background color of some parts of a framework to another color when the time reaches or is greater than 10 minutes.

    Top XSL:
    Code:
    <xsl:variable name="pause" select="//ININ.IceLib.People.StatusMessageDetails_MessageText[text() = 'Break']"/>
    Here is some of the framework where the XSL should be echoed:
    Code:
    </xsl:for-each>
                    <xsl:for-each select="$AwayStatus">
                      <tr class="user_row">
                        <td class="name"/>
                        <td class="status"/>
                        <td class="time_in_status"/>
                        <td class="on_phone"/>
                        <td class="completed"/>
                        <td class="answered"/>
                        <td class="average_talk_time"/>
                      </tr>
                    </xsl:for-each>
    Here is the XCL code on the bottom of the page:
    Code:
    <xsl:when test="string(ININ.IceLib.People.StatusMessageDetails_MessageText) = 'Break' ">
    							users.push({
    							name : '<xsl:value-of select="./@name"/>',
    							status : '<xsl:value-of select="./ININ.IceLib.People.StatusMessageDetails_MessageText"/>',
    							status_changed : '<xsl:value-of select="./ININ.IceLib.People.UserStatus_StatusChanged"/>',
    							on_phone : '<xsl:value-of select="./ININ.IceLib.People.UserStatus_OnPhone"/>',
    							answered : '<xsl:value-of select="$AGENTS[@name]/ININ.Queue_Interval/ININ.Agent_InteractionsAnswered"/>',
    							completed : '<xsl:value-of select="$AGENTS[@name]/ININ.Queue_Interval/ININ.Agent_InteractionsCompleted"/>',
    							average_talk_time : '<xsl:value-of select="$AGENTS[@name]/ININ.Queue_Interval/ININ.Agent_AverageTalkTime"/>'
    							});
    </xsl:when>
    Can anyone help me with this, and is this enough information for anyone to help me out?


    Thanks in advance.

    Best regards,
    Marius

  • #2
    New to the CF scene
    Join Date
    Mar 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I might also add; Where is the time output?
    This is codes from an Interaction Client.

  • #3
    New to the CF scene
    Join Date
    Mar 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Might also add this - where the time is generated:

    time_in_statuses.eq(i).html(
    ((10 > parseInt(time_dif.hours)) ? '0' : '') + time_dif.hours + ':' +
    ((10 > parseInt(time_dif.minutes)) ? '0' : '') + time_dif.minutes + ':' +
    ((10 > parseInt(time_dif.seconds)) ? '0' : '') + time_dif.seconds);
    }


  •  

    Posting Permissions

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