Graphics

 View Only
  • 1.  ENPS to Xpression with Datalinq

    Posted 08-30-2014 00:05
    I am having a bit of trouble with getting ENPS stories to allow datalinq fields to function. Here is the setup:

    We run stock pages during our news added through the Xpression/ENPS plugin. Right now we manually input all of the numbers into each page(36 stocks total). To save time I have built new ones to use the datalinq. Everything is working fine while inside of the Xpression Studio. However, the saved templates are not pulling the datalinq information after being saved inside the ENPS Stocks story.

    *Examples*

    ENPS Stocks Story Template:

    [FS STOCKS PAGE 1:| | | | | | | | | | | | | | | | | | | | | | | | | ||


  • 2.  RE: ENPS to Xpression with Datalinq

    Posted 08-30-2014 00:50
    I would suggest you try unpublishing any of the text fields that you've datalinqed. The fields won't even show up in the ENPS plugin and when you activate the rundown you shouldn't get the |*|*|*||*||**|*|*; however the fields should remain datalinqed and update when taken to air.

    If you use the project server, after you unpublish them, you'll need to republish the project to the project server.

    If you don't use the project server you'll need to update the project on the preview engine and all the studio/bluebox engines.

    #XPression


  • 3.  RE: ENPS to Xpression with Datalinq

    Posted 08-30-2014 01:47
    Ahh fantastic thank you. I completely forgot about unpublishing the fields. Without scripting, is it possible to drop off the 1000/ths place as the information gets pulled from the CSV file? Occasionally yahoo finance leaves the 1000/ths place on their stock info. Would it be easier to write a script to check each textfield and replace it with the correct format or could a general script be used?

    #XPression


  • 4.  RE: ENPS to Xpression with Datalinq

    Posted 09-16-2014 19:56
    I have sort of fixed my second problem with the following script

    dim aepChange as xpTextObject

    self.GetObjectByName("AEP Change", aepChange)

    aepChange.Text = Fix(aepChange.Text*100)/100

    if aepChange.Text > 0 then

    aepChange.Text = "+" + aepChange.Text

    end if

    if aepChange.Text = 0 then

    aepChange.Text = "UNC"

    end if

    My problem now is that this script will not work in the OnText script of the text field. Is the DIM or ObjectType wrong for this instance? The script works if I put it in the OnOnline portion of the scene. The issue with doing it that way is that you see the script work. It will show the original number first then the UNC or the truncated value.

    #XPression


  • 5.  RE: ENPS to Xpression with Datalinq

    Posted 09-17-2014 12:35
    You dont need to setup the object, when using OnText scripts, because it applies to that text object

    This code works from my ENPS plugin:

    text=fix(text*100)/100

    if text>0 then text="+"+text

    if text=0 then text="UNC"

    #XPression


  • 6.  RE: ENPS to Xpression with Datalinq

    Posted 09-17-2014 20:44

    Toying around some more last night I came up with this script for the main script on each scene:


    Dim stockNumbers() As String = {"AEP Change", "Andersons Change","BP Change","Century Link Change","Citi Group Change","Cooper Tire Change","Dana Change","Dominion Change","Fifth Third Change"}

    For Each value As String In stockNumbers

    dim x as xpTextObject

    self.GetObjectByName(value, x)

    x.Text = Fix(x.Text*100)/100

    if x.Text > 0 then

    x.Text = "+" + x.Text

    end if

    if x.Text = 0 then

    x.Text = "UNC"

    end if

    Next



    Sven which is more efficient overall for Xpression, the way I did it or your method or does it matter?


    #XPression


  • 7.  RE: ENPS to Xpression with Datalinq

    Posted 09-19-2014 00:43
    Also for anyone who could benefit, I have added the following to make sure that the stock prices show two decimal points even when ending in 0

    example: 65.30 would normally show as 65.3. This ensures it will display with the hundredths showing.

    aepChange.Text= Format(aepChange.Text,"Fixed")

    #XPression