DPS read Api: GetArticlePosition() return the incorrect index

Hi all

I played around the Adobe DPS read API (Adobe DPS - reading SDK 2.30: class Index: JsDoc reference).

What I try to achieve is to create an overlay WebContent Folio HTML to display the current article and the current page in a folio.

I based my example in the tutorial on the use of the api reading (new APIs and features r30, including folio, metadata section and events calendar navigation |) Developer of Adobe Connect...)

So what I have published a single folio with the following structure:

Section 1, page 1

Article 2, 2 Pages

Article 3, Pages 3

The HTML / WebContent Folio overlays, however, display the incorrect content.

I'm loading HTML locally.

So if I'm loading the folio on my iPap on Adobe Content Viewer when I opened the publication I get code HTML / overlays WebContent Folio, which displays THIS:

Article 1: currentArticleIndexInFolio: 0, PageCount: 1 (-this is the first article)

Article 2: currentArticleIndexInFolio: 0, PageCount: 1 (-where I drag from left moving to the following artivle)

Article 3: currentArticleIndexInFolio: 1, PageCount: 2 (-where I drag from left moving to the following artivle)

There seems to be a caching or persistence that I wasn't able to track down.

I use all of the recommendations of the API to use, in order to way for the api to the property in service.

adobeDPS.initializationComplete.addOnce)

adobeDPS.folioDataService.reasyState.addOnce)

Any ideas would be very useful...

Concerning

Found the solution...

the FolioOverlay had a 'AutoPlay' specified as 0 seconds.

If I change this value to 1 second indexes are displayed correctly.

I suppose it could be a bug in the api somewhere, since I'm already calling methods to verify that the folioDataService is ready to be used.

It can be used an older version cached.

Concerning

Tags: Digital Publishing Suite

Similar Questions

  • Unable to get the API to return the correct value

    Hello

    You can someone help me?

    I use the API below to check the amount of data received and sent by bb10 but it didn't do anything.

    QNetworkConfigurationManager: DataStatistics returns 0

    Best regards

    Jonathan

    Welcome on the support forums.

    We did some digging last week and finally found a solution.
    See
    http://supportforums.BlackBerry.com/T5/native-development/network-traffic/TD-p/2287487

  • Is there an API that returns the model number or any other identifier for a module installed, I can use to identify the characteristics of this module?

    For example, I'll call you

    DaqSystem.Local.GetPhysicalChannels (PhysicalChannelTypes.AI, PhysicalChannelAccess.External)

    For a list of connected devices.  The data in the table back looks like this:

    cDAQ1Mod4/ai0 (etc.)

    It tells me that I have a CompactDAQ chassis, which is good, and an analog module in the slot Module4.  What I need to know is not just that there is an analog module in the slot to #4, but also of its ability (voltage, temperature, voltage, etc.) so that I can use the correct DAQmx task for this type of module.  All this has to be discovered during execution.

    Otherwise, I'll have to provide a configuration utility when the user program needs to determine which module is plugged that slot - and will it change by moving it to another location, you must enter these details again.  I want to avoid this by making the material more discoverable as possible.

    I can remember an API - and that is my hope.

    * beep *.

    Hello

    I could understand the syntax for you. It's here.

    Device blah = DaqSystem.Local.LoadDevice ("cDAQ1");
    foreach (String dev in bla. ChassisModuleDeviceNames)
    {
    Label1. Text += "\n" + DaqSystem.Local.LoadDevice (dev). ProductType;
    }

    This displays the model number of all modules of the cDAQ in the chassi. I hope this helps.

    Kind regards

    Perry S.

  • How to cancel the agreement when I'm "EchoSign API returned the error: INVALID_DOCUMENT_KEY.

    We use our SalesForce CRM and tried to cancel the agreements which had sent a former employee, who is no longer with us anymore. Agreements have been "launched against signature" for a few months, and when I go to cancel agreements - it's the strangest thing. This allowed me to cancel about half (5 of 11) documents without problem, but the other six documents give me the error "API EchoSign returned the error: INVALID_DOCUMENT_KEY" whenever I try to cancel and don't do anything else.

    Does anyone know the fix for this? I'm also still learning the whole process EchoSign with our company, I am fairly new to the role of Admin systems.

    Thanks, any help would be appreciated.

    Hello

    I advise you to contact echosign support this directly, or your customer success Manager.

    You can email support at [email protected]

  • How can I get the read head to return to the location, it's immediately before starting playback. This used to be a preference but I don't find it in the latest version of logic.

    How can I get the read head to return to the location, it's immediately before starting playback. This used to be a preference but I don't find it in the latest version of logic. What I want to do is; Once playback is stopped the playhead returns to the previous starting position. Where is the setting for this? Is it still an option that I can find nothing in the online help.

    Hi there, don't you mean this one?

    Good day!

  • VISA IC returns the 0xBFFF003A error code when reading the USBTMC device

    Hello

    I'm creating a USBTMC device and have some difficulty to determine why a viRead returns the 0xBFFF003A error code. Strangely enough, it reports also to read the correct byte number and the buffer contains the correct data. I use VISA IC 5.1.2 but I had the same problem with version 5.0.3. I have no problem with the device recognized by VISA IC, MAX, LabVIEW SignalExpress or LabVIEW. Using the previous version of VISA IC performing an async read would return a code completion, 0x3FFF009B (VI_SUCCESS_SYNC).

    The attachment of the utility Trace all communications from e/s or watch for when the USB cable is plugged into the computer.

    Lines 1-18 LabVIEW SignalExpress 2011 has begun

    Lines 19-35 VISA IC: open the selection

    Line 36 VISA IC: claire

    Line 37 VISA IC: Read - 10 characters

    Line 38 VISA IC: Read - 21 characters

    Lines 39-44 LabVIEW: open, read 21 characters

    Line 45 VISA IC: Read - 18 characters

    Line 46 VISA IC: claire

    Line 47 VISA IC: Read - 18 characters

    Line 48 VISA IC: closed

    Note: LabVIEW crashed on line 44.  At the moment I know not whether that is related to this problem or not.

    Full error description: failed to start the read operation because the installer is not valid (because of attributes defined in an inconsistent state).

    I'm confused by why it says it cannot start operation when in fact, it returns the requested data and attributes that it refers to? I reviewed the USB descriptor values that I use, and they look correct to me.

    Any ideas?

    Thank you

    Hi Perry,

    I found the problem.  The TransferSize didn't get converted from big-endian to little endian and 0x0A was considered 0xA000000.

    See you soon,.

    Airaki

  • array variable error a number of clues or the beach size incorrect index overflow

    I get the following message appears at the beginning ' error: variable table a number of clues or overflow from the beach size incorrect index "how to get rid of this problem?

    It sounds like something you have running at startup fails because it was written wrong. You need to know what it is. First of all, make sure that the computer is free of viruses/malwrae by making a scan.

    http://www.elephantboycomputers.com/page2.html#Removing_Malware

    Then, if the computer is clean and the problem persists, troubleshoot your startup.

    Start > run > msconfig [Enter]

    This will open the System Configuration utility. Look under the Startup tab and find the likely culprit. Uncheck the box next to its name, apply and OK out. You don't need to restart immediately, but next time you do, you will get a dialog box saying that you have used the utility. Just check the box that says in effect, "don't mind to this subject again".

    How to troubleshoot by using the Msconfig in Windows XP utility - http://support.microsoft.com/?id=310560

    The free Autoruns program is very useful for managing your Startup - http://www.microsoft.com/technet/sysinternals/default.mspx

    (For Vista) Start Orb > Search box > type: msconfig and when it appears in the results area above, right-click and choose 'run as administrator '.

    If you are prompted for an administrator password or a confirmation, type the password, or click on continue. Then see what is on the Startup tab. You don't need to restart immediately, but next time you do, you will get a dialog box saying that you have used the utility. Usually in Vista it will be blocked by Windows Defender and you will need to enable it so you can then check the box that says in effect, "don't mind to this subject again".

    The free Autoruns program is very useful for managing your Startup - http://www.microsoft.com/technet/sysinternals/default.mspx
    MS - MVP - Elephant Boy computers - don't panic!

  • BPS API to return to the charging source

    Hello Guyz is there any API BPS to return the value of loader Type means that the load is loading USB or Charger taken

    Yes, search for the function battery_info_get_charger_name() in battery.h BPS. Here are all the battery.h functions available:
    https://developer.BlackBerry.com/native/reference/core/com.QNX.doc.bps.lib_ref/topic/manual/battery...

    This is the name of shipper returned:
    Not connected: "none."
    Wall charger: "USB DCP.
    USB in the desktop: "USB Host".

    There are probably other values, but I don't have the time to test it yet. You can quickly get a peek at all the values accessible in battery.h by entering this url in your mobile browser:
    file:///PPS/system/BattMgr/status

    Don't forget to refresh the page when you plug / unplug to see the new State, the name of the shipper is somewhere near the end of the file.

  • I open my folder and make rotate the image (view), but reader will not save the rotated version (returns to original format).

    I open my folder and make rotate the image (view), but reader will not save the rotated version (returns to original format).

    "Rotate view" - possible to make using Acrobat or Adobe Reader.

    "Rotate page" - possible to do only with Acrobat.

    Be well...

  • Google indexes the incorrect file type: html vs php

    Hello

    This weekend I was helped a lot with a problem, I got on php: http://forums.adobe.com/thread/420710?tstart=0

    However, I had downloaded the site a week before and now Google index the old pages with extension html (http://mysafety.be)

    I have included "not to archive ' and 'no index' metatags, but the amount indexed with html continues to climb and no pages with php extension are being indexed.

    This means that I have to keep alive all the html page with no - archive metatag and redirection to the version of php.

    Suggestions, please?

    Thank you

    Erik

    You can place a file named ".htaccess" in the root of any folder, and the server will use the directives in the file to control how it serves pages for the client.  There is a full set of controls, more can be found by Googling "htaccess", probably you do not want to read, but among them is the possibility to do a server for any extraction of page redirection, allowing you to automatically redirect all requests for *.html to *.php.  Which is nice, is that you can send a header with the redirect than direts search engines to adjust their indexes, called a "301" header.  It specifies that the requested page has moved permanently to the new name of the page.

    On several of my sites, I have this redirect used - the .htaccess file contains the markup like this.

    RedirectEngine on

    Redirect 301 xyzzy.html http://www.example.com/xyzzy.php

    Try Google...

  • Reading number of XML nodes in a document & amp; return the result in the text member

    Hi all

    I wonder if you can help me with the following:

    I want to read the number of nodes in an XML document and return the result in a text cast member. That's what I do so far, but he refuses to work

    Yes, my mistake. That should have been:
    --
    tList =
    nNodes = count(tList[1])
    sText = «»
    Repeat with i = 2 to nNodes
    tText = tList [1] .getPropAt (i)
    sText = sText & tText & RETURN
    end repeat
    -Remove rear BACK tank
    remove the last tank of sText
    -Place ALL the text in a text member
    Member ("test1"). Text = sText
    -- ...

  • Get the current Index of the Ring System

    I need to know the index of the ring box that is currently displayed on the front panel during execution.

    The ring box values do not necessarily correspond to their clues so I can just wire the ring box itself to property [] DisabledItems.

    The way I'm going to get the index of the item "displayed" the control of the ring is as follows:

    A reading in the strings [] property returns an array of strings of the 'Elements' of the order of the ring.

    A reading in the RingtText.Text that returns the string value of the current item displayed in the control of the ring.

    I use the search function to search in the array of strings to the current text, and it gives me the index of the current item displayed in the control of the ring.

    Is there a way to get the index of the currently displayed index of the ring directly control?

    In a Word, no.

    the method that you use is the easiest.  If the srtings are very long, you could unbudle [channels] and property values and this table just to save a few (very minor) research paper.  Keep in mind, control system properties depend on the operating system

  • CVI2010-operator sizeof returns an incorrect size of a struct

    Hello

    in CVI2010 the sizeof operator returns an incorrect struct size if it contains 4 bytes and other spaces. I guess that the addresses in the struct are also not as c-programmer thinks. First a minimalist code example:

    typedef struct
    {
    oneByte tank;
    long fourByte;
    } TestStruct;

    main void)
    {
    int size;
    TestStruct tmpVar;
    size = sizeof (TestStruct);
    Here are the dimensions = 8 instead of 5

    }

    Over the past years and last cvi-versions I had never compiled with the compiler Borland, which returns the correct size. Because the Borland compiler is not included in CVI 2010, I am using the compiler to build-in the standard. In my opinion, the compiler looks to optimize the code somehow, my project cannot work with.

    Because I read the direct struct of binary files I'm looking for a to code based, solution.

    Is it possible to disable the relevant optimization?

    Thanks for your help and your response.

    Markus

    The compiler may have different alignments for the fields of the struct: a usual behavior is to them be aligned on a 4 byte boundary, that is each field starts on a multiple of 4 bytes from the beginning of the structure in memory. This seems to be the behavior of the compiler that you are using currently, who returns as the size of the structure 8 after aligning the fields.

    Alignment of the structure can be modified with a #pragma appropriate preprocessor directive: adding #pragma pack (1); in your code tells the compiler to pack the structure without filler fields; After that this statement sizeof returns the size 5-bytes are waiting for you.

  • Reading single line of the text file

    I use the following code to read a .txt file

    private String readTextFile (String fName) {}
    String result = null;
    FileConnection fconn = null;
    DataInputStream is = null;
    try {}
    fconn = (FileConnection) Connector.open (fName, Connector.READ);
    is = fconn.openDataInputStream ();
    Byte [] = IOUtilities.streamToBytes (is) data;
    result = new String (data);
    } catch (IOException e) {}
    System.out.println (e.getMessage ());
    } {Finally
    try {}
    If (null! = is)

    is. Close();
    If (null! = fconn)
    fconn. Close();
    } catch (IOException e) {}
    System.out.println (e.getMessage ());
    }
    }
    return the result;
    }

    I want to print a single line instead of the file around so I read that I need to store the contents of the file into an array and then get the index of the line. Problem is that I couldn't find any information on how to do it. Can someone give me a shot. Thanks in advance.

    This isn't a problem with encoding. You just need to do a little extra accounting and adjust start and end indices to remove these characters. To treat the "\r\n" of line termination style, you can maintain a flag (initially false) to indicate that the previous line ended with a \r; If a line begins with \n, it should be treated as the end of a line (empty) if the flag is true (in which case it should be ignored).

    If you want to extract all lines (not just the first), then it may be easier to do this accounting while avoiding a separate function. Something like this (untested):

    // read the file into a byte array 'data'; then:
    Vector lines = new Vector();
    boolean endCR = false;
    int start = 0;
    for (i = start; i < data.length; ++i) {
      if (data[i] = 0xD) {
        lines.addElement(new String(data, start, i - start));
        endCR = true;
        start = i + 1;
      } else if (data[i] = 0xA) {
        if (endCR && i == start) {
          start++;
          endCR = false;
        } else {
          lines.addElement(new String(data, start, i - start));
          start = i + 1;
        }
        endCR = false;
      }
    }
    String[] results = new String[lines.size()];
    lines.copyInto(results);
    
  • The details of the max/min for the spatial index

    Hello

    I am new to Oracle Spatial and perhaps this is a stupid question, but when I create an index for a table of geo, I always manually insert a line into the USER_SDO_GEOM_METADATA table. The DIMINFO table contains the bounding box, which are in my case X min/max / coordinated full geo (Lat/Long) of the table.

    The SDO_GEOMETRY column in my table of geo contains some polygons. How can I automatically query the table of geo to return the desired max/min X / Y coordinates? I'm looking for something like maxX (geo_data) SELECT... OF geo_table. Is this possible?

    Thank you!

    Hello Hans,.

    Well, I think that the old gods of Oracle Spatial of ages had intended a workflow by which metadata records were filled with knowledge not stored in the database or the spatial column.  Thus, for example the tolerance whence?  He comes to your head or your documentation that you hold outside the database, etc..  I mean that you put in this recording in order to enter the database.  So I would say that generally metadata was never intended to be created from the data.

    Now, we must know that the values stored in USER_SDO_GEOM_METADATA min/max are largely informative to my knowledge.  You can insert values garbage if you love without worrying much Oracle Spatial.  The only function I can think of who actually reads these values is the MD without papers. HHENCODE (everyone knows others?).  But that being said its always a good idea to avoid the garbage and properly document your spatial layers.

    So, in terms of generation of these values. I would say that your DIMINFO values should ideally include the size of your current data more any new data you could insert as part of your workflow.  So I would not shake this until your min/max values accurate unless your data is very, very static.  It could well be.  Still, usually I if I had a layer of data to the United States mainland that the values that run in the South enough to cover all the Florida keys, etc. (with some tampons too).  Even if I have no data for Florida keys in that exact moment.  It's rather subjective, to deduce the data, it must come from your documentation and your needs.

    But you probably still want something.  Good then, voila.

    SELECT
    a.bef || a.dim_xy || a.dim_3 || a.aft AS dim_info
    FROM (
      SELECT
       'MDSYS.SDO_DIM_ARRAY(' AS bef
      ,'MDSYS.SDO_DIM_ELEMENT(''X'',' || MDSYS.SDO_GEOM.SDO_MIN_MBR_ORDINATE(aa.shape,1) || ',' || MDSYS.SDO_GEOM.SDO_MAX_MBR_ORDINATE(aa.shape,1) || ',0.05)'
       ||
       ',MDSYS.SDO_DIM_ELEMENT(''Y'',' || MDSYS.SDO_GEOM.SDO_MIN_MBR_ORDINATE(aa.shape,2) || ',' || MDSYS.SDO_GEOM.SDO_MAX_MBR_ORDINATE(aa.shape,2) || ',0.05)'
       AS dim_xy
      ,CASE
       WHEN aa.shape.get_dims() > 2
       AND  aa.shape.get_lrs_dim() = 0
       THEN
          ',MDSYS.SDO_DIM_ELEMENT(''Z'',' || MDSYS.SDO_GEOM.SDO_MIN_MBR_ORDINATE(aa.shape,3) || ',' || MDSYS.SDO_GEOM.SDO_MAX_MBR_ORDINATE(aa.shape,3) || ',0.001)'
       ELSE
          NULL
       END AS dim_3
      ,')' AS aft
      FROM (
         SELECT
         MDSYS.SDO_AGGR_MBR(a.shape) AS shape
         FROM
         my_table a
      ) aa
    ) a;
    

    Note again once the tolerances must be hard-coded.

    And also it will not work for the LRS geometries.

    I respect the old gods and not go this route.

    See you soon,.

    Paul

Maybe you are looking for

  • How to install ElCapitan on a MacBook with Leopard Bootcamp =?

    Hello I made an attempt to update my OS Leopard to ElCapitan on a MacBook with Bootcamp. Even if I follow the installation instructions, the result was catastrophic, i.e. ElCapitan, taking several minutes to open and also the Finder showed files ElCa

  • missing mass storage controller driver

    I have a Vaio VGN-FE780G. I recently did an update of the new installation of XP to Win7 Home Premium. He works especially OK except that I had two crashes, blue screen when I tried to install Norton 360 2010. I stopped trying and just downloaded the

  • Need settings for Services for Vista Home Premium, 32-bit SP2, Server 2008

    Several problems.  I know that I have too many services running that shouldn't be and need to put them back where they should be. In other words please. Auto, delayauto, etc manually. My pc has little memory left. I can't save anything as it says tha

  • How to make a copy of windows vista if I have a product key

    I wanted to find a copy of windows so I have to reinstall my windows laptop I have a Cliaa key for it How do I down load a copy. reason for this is that I can't get the drivers to work on it, they have only the version of drivers for my laptop that w

  • BlackBerry Smartphones owners lounge without ESN

    I've been looking online and read these forums, and it seems as if nobody has an answer, but I will try to join salon owner, so I ask... I have a Curve 8330 from Sprint. Join salon owner, I need to provide the IMEI or ESN of the phone. Except this ph