SUPStorage api in SUP 2.1 to store array or structure

Hi,
I am using below code to store key value pair using SUP api for offline storage in workflow apps:
SUPStorage.prototype.setItem(j, airlineId);
Example: var j = 1;
              var airlineid = "lufthansa";
  This works fine, but I want to store an array or at least a structure (single row) which has multiple items. How can we do that?
I tried passing MBO value data directly, but it gives exception while I try to read:
var mvc = getCurrentMessageValueCollection();
      var fData = mvc.getData("flightmbo");
      var values = fData.getValue();
     var i = 1;
     SUPStorage.prototype.setItem(i, values);
   This does not give any exception, but when I try to read by using code:
var  i = 1;
    airlineKey =  SUPStorage.prototype.key(i);
    values =  SUPStorage.prototype.getItem(airlineKey);
var j = 0;
   var theItems = values[j];
This gives exception saying "Type Error: Result of expression 'values' [null] is not an object".
Any workarounds to store a structure/array with the same key (such as airline id, text, time, availability).
Thanks,
Rohit

Have you tried converting the array/structure to a string using JSON (or some similar technique) and storing it that way?

Similar Messages

  • How to store array of data into a single row of  table ,using any of Stmts

    HI Friends,
    Based on my requirements ,i have retrived a set of data from a XXX.jsp page using a request.getParameter() and stored into single dimenssional array . Now i am paassing that array to JAVA class to store a into some table .
    In JSP page users can add text boxes dynamically based on his intrest then those attributes will store in table .it means table attributes are not conatant , it table attributes may change at any time when user adds any textboxs or any fields on JSP page ....thats my module ..
    Now i wanted to store all array of data into Table in a single row .......thats is my requirements .
    How can we use prepareStatement and Statement to store array of results intoo table row ...on each iteration i wanted to store array of results into table atributes ..It means entire array of results should to into table row at time .....coule any one write sytax ,how we do this...
    could any one suggest me stps that i can impliment ......?....please reply ASAP

    Well ..you code can be works for constant number of attributes in table .oopss here my requirement is table attributes not fixed ,we cant put constant number of place holder(? ) in a statement ,because those are not fixed ,
    Let me explain here :
    i am doing in that way only. As i mentioned you Table attributes are not constant .It may very if users add any fields dynamically on JSP page .If users have option to add any text box on Jsp page ,then that attribute will store in table as a attribute .
    Now i amable fetching the all dyamic form data and stored in a Result Array below ...in this iteration all form result data are from jsp page as suggestion form ,it should stored in table in single row on corrsponding attribtes ......next time when users fills FROM ,then those data i am fetching and storing in a Result Array as below and need to store in corrsponding table attributes in a single row ....
    for(int i=0;i<result.length;i++)
                   System.out.println(result);
                   pst3=connection.prepareStatement("insert into *emprecord* values(?)");
                   if(!result[i].equals(""))
                        System.out.println(result[i]);
                             pst3.setString(1,result[i]);
                             pst3.executeUpdate();
    Thnks in advance ....let me know the the way we can store dynamic form data into dyanamic table ...

  • Gui connect to a store array

    Hi, beasicaly i have a gui created in awt and I want the details entered into the gui to be saved in my store array but I don't know how to do this, so help would be great :) ...i think its along the lines of :
    store[n] = name.getText();
    Not sure though ?
    Thanks

    No.
    The variable "store" is of the type "Store", i.e. a single Store, not an array. You need to declare the variable to be of the type "Store[]". It would make more sense to name it "stores" in that case, of course.
    Obviously, your variable "n" needs to contain an integer value that is within the bounds of the array, not a Student. Your code really makes no sense at all. Perhaps this tutorial will help (there are other tutorials there as well).

  • How to store a Tree Structure in Memory

    hi all!
    I wanted to show a Org Chart on web page. Recursion is used for constructing.Based on B/S architecture,(get Org from DataBase)this is not a effective way!! How can I store a tree structure(Org object are stored as TreeNodes) in memory for recursion??? Thanks!

    My English is too poor! So I posted the interfaces blow.
    I used these interface to construct a org tree(which will displyed in browser ),but it's
    efficiency is low. (recursion)Because the org infor. are stored in database(thounds of
    orgs are stored).(I think this is the bottleneck)
    Now I want to store the tree structure in memeory! Then jsp page only needs to build the tree
    from memory!Needn't make a DbConnection every time. A timer will updated tree org(in memory)
    automatic
    So I want to use a N dimensions array to store the data (N is the number of orgs)
    but I don't konw how to make a compositor for sorting!
    after sorting .look at the matrix I poster blow(eg.)
    Matrix:(a,b,c,d are orgs 1 mean's is parents 0 means not, this is a Sparse Set huh? ^_^ )
    * a b c d
    a 0 0 0 0
    b 1 0 0 0
    c 1 0 0 0
    d 0 1 0 0
    Org tree:
    a
    b c
    d
    so O(n(n-1)/2)
    question:
    1)How to sort orgs?
    2)Any good suggestion is wanted!
    Thanks!
    interfaces
    public interface IOrg {             //entity class
    public String getName(); //get Org Name
    public String getId(); //get Org Id
    public String getLevel(); //get Org Level (as String)
    public String getParentId(); //get parent org Id
    public String getDescription(); //get the description
    public boolean isActive(); //is Org active
    Org Factory
    import java.util.*;
    * Description of the Interface
    *@author ymruan
    *@created 2002��1��4��
    public interface IOrgFactory {
    public IOrg getOrgById(String orgId);
    public IOrg getOrgByObjId(String objId);
    public Enumeration getManagers(String orgId);
    public Enumeration getManagers(IOrg org);
    public Enumeration getEmployees(String orgId);
    public Enumeration getEmployees(IOrg org);
    public Enumeration getOrgsByLevel(String level);
    public Enumeration getAllOrgs();
    public Enumeration getOrgsLikeName(String name);
    public IOrg getParentOrg(IOrg org);
    public IOrg getRootOrg(); //get Root Org
    public Enumeration getChildOrgs(IOrg org); //get Ogg's children
    public boolean hasSubOrgs(IOrg org); // is leaf
    public boolean hasActiveSubOrgs(IOrg org);
    public boolean isInOrg(String orgId, String empId);
    public boolean hasEmployees(IOrg org);

  • How to store Array of Strings in MS-Access

    Dear all,
    i am facing a problame from the couple of days can any one plzzzzzzz guide what should i do to over come my problame....>
    I want to store a String array in Microsoft Access database but i couldn't find the way how can i do so
    public class ArrayJDBC {
    /** Creates a new instance of ArrayJDBC */
    public ArrayJDBC() {
    public static void main(String[] args){
    System.out.println("main started");
    new ArrayJDBC().enterArray();
    System.out.println("main after data entry");
    public void enterArray(){
    Connection con = null;
    PreparedStatement pstm = null;
    String dataSource = "checkArray";
    String query = "INSERT INTO array(Object) VALUES(?)";
    String[] strArray = {"one","two","three"};
    con = new JDBCConnection().makeConnection(dataSource);
    try{
    pstm = con.prepareStatement(query);
    System.out.println("pstmt created");
    pstm.setObject(1,strArray);
    System.out.println("array seted as object");
    int r = pstm.executeUpdate();
    System.out.println("data updated "+r);
    pstm.close();
    con.close();
    }catch(SQLException se){
    System.out.println("Data could not be update "+se);
    this is my class the conncection is already established.
    i use updateObject() method but it doesnt work..
    plz guide me that how can i store
    strArray in Microsoft Access and also tell me that what should be the data type in my database i.e ms-access

    Well easiest way to do that is to create a single String where the values from array will be separated by some separator for example semicolon so you will get "one;two;three" this string you will store in database as a text, then when you read it back you need to parse it again to get an array of Strings. I am originally C# programmer there i would do serialization to XML and store it into database try looking here http://iharder.sourceforge.net/current/java/xmlizable/ they are creating XML Serializer.
    Peter.

  • Store array of objects in Java Card 2.2.1 platform

    Hi all,
    I am new to smart card development and developing a demo e-wallet application using Java Card 2.2.1 SDK. I'd like to store last 10 transactions in card and create getter-setter methods. The structure of Transaction that i thought as follow:
    public class Transaction {
         private byte type; // + or -
         private short amount;
         private byte[] date;
    [Date format: "yyyy-MM-dd HH:mm:ss"]And transactionList:
    public class TransactionList {
         protected short currentIndex = (short) -1;
         protected Transaction [] list = new Transaction [10];
    }In my desktop application i have already called card's selectApplication(); / getBalance(); / setBalance(); / getWalletId(); / setWalletId(); methods. I need to create a method [getLastTransactions] in card project and call it from my desktop application.
    <font size="2">How should I set up a structure for this issue?</font>

    First of all don't allocate memory other than the constructor.
    As you know you cannot return an object as a response from a java card so what you will get is just bytes of data. So create a byte[] of size equal to LAST_10_TRANSTION_SIZE and then by TLV store data into that array and upon receiving on host side decode it using the TLV.

  • Table which stores all the structure names in SAP

    Hi ,
    Please let me know the table where we can find all the structure name like for tables we are using DD02L, Tcodes TSTC, like that where we can find all the structure name
    Regards,
    Bhaskar

    hai friend,
    use go to  se11
    tables : give syst.
    thanks,
    anji.

  • A DVD external super drive on a Macbook-pro 15', any chance to work?

    Hey! I bought a macbook-pro 15’ in 2009 which does generally well. Nevertheless it has a problem concerning the DVD internal drive. It doesn’t read   anymore and I have tried to clean with no effect. Few days ago I bought an external USB super drive from Apple store. I did so because I did not like to give my computer back for service, when I need it all the time for my work. I thought with that I would have solved my problem. Now I realized that things are not so easy, I must have made a mistake. Macbook-pro 15’ is not supposed to be connected to an external USB super drive. Can I still do something to make it work? Thanks

    Apple designs external Superdrive to only work with computers that shipped without an optical frive. Why don't you save yourself much grief & return it. Then purchase any USB drive you want, just not a Superdrive. Thousands on the market & they will work just fine with your computer.

  • Office365 API : Windows 8.1 samples do not build, AuthenticationHelper class has errors

    just downloaded latest Office365 API samples for Windows 8.1 Store apps from http://dev.office.com/code-samples-detail/1511
    Alas I get the following build errors, even after having updated all nuget packages to their latest versions:
    Office365Samples\Office365StarterProject\Helpers\AuthenticationHelper.cs(156,44,156,63): error CS1061: 'Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext' does not contain a definition for 'UseCorporateNetwork' and no extension method
    'UseCorporateNetwork' accepting a first argument of type 'Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext' could be found (are you missing a using directive or an assembly reference?)
    Office365Samples\Office365StarterProject\Helpers\AuthenticationHelper.cs(341,28,341,87): error CS1502: The best overloaded method match for 'Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.AcquireTokenAsync(string, string, Microsoft.IdentityModel.Clients.ActiveDirectory.UserCredential)'
    has some invalid arguments
    Office365Samples\Office365StarterProject\Helpers\AuthenticationHelper.cs(341,76,341,86): error CS1503: Argument 3: cannot convert from 'System.Uri' to 'Microsoft.IdentityModel.Clients.ActiveDirectory.UserCredential'
    Office365Samples\Office365StarterProject\Helpers\AuthenticationHelper.cs(343,24,343,30): error CS1061: 'Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult' does not contain a definition for 'Status' and no extension method 'Status' accepting
    a first argument of type 'Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult' could be found (are you missing a using directive or an assembly reference?)
    Office365Samples\Office365StarterProject\Helpers\AuthenticationHelper.cs(343,34,343,54): error CS0103: The name 'AuthenticationStatus' does not exist in the current context
    Building with VS2013 Update 4
    What am I doing wrong? Is latest nuget of Microsoft.IdentityModel.Clients.ActiveDirectory.* perhaps breaking it?
    PS is there an Office365 API forum on MSDN? If not, might be interesting to create one?
    edit:
    in case it helps: here is the list of nuget packages in the solution:
    <?xml version="1.0" encoding="utf-8"?>
    <packages>
      <package id="Microsoft.Azure.ActiveDirectory.GraphClient" version="2.0.5" targetFramework="win81" />
      <package id="Microsoft.Data.Edm" version="5.6.3" targetFramework="win81" />
      <package id="Microsoft.Data.OData" version="5.6.3" targetFramework="win81" />
      <package id="Microsoft.Data.Services.Client" version="5.6.3" targetFramework="win81" />
      <package id="Microsoft.IdentityModel.Clients.ActiveDirectory" version="3.0.110281957-alpha" targetFramework="win81" />
      <package id="Microsoft.OData.Client" version="6.9.0" targetFramework="win81" />
      <package id="Microsoft.OData.Core" version="6.9.0" targetFramework="win81" />
      <package id="Microsoft.OData.Edm" version="6.9.0" targetFramework="win81" />
      <package id="Microsoft.Office365.Discovery" version="1.0.22" targetFramework="win81" />
      <package id="Microsoft.Office365.OAuth.Windows" version="1.0.22" targetFramework="win81" />
      <package id="Microsoft.Office365.OutlookServices" version="1.0.22" targetFramework="win81" />
      <package id="Microsoft.Office365.SharePoint" version="1.0.22" targetFramework="win81" />
      <package id="Microsoft.Spatial" version="6.9.0" targetFramework="win81" />
      <package id="Newtonsoft.Json" version="6.0.8" targetFramework="win81" />
      <package id="System.Spatial" version="5.6.3" targetFramework="win81" />
    </packages>

    Hello wolkenjager,
    This sample has not been updated to use this version of ADAL. As you suggest, the version you have specified appears to break the sample. We thank you for trying this out! :) We suggest that you revert to the version specified in the packages.config
    (2.10.10910.1511).
    With regards,
    Michael Mainer
    Michael | Microsoft Exchange Developer Content
    The
    Exchange Development Forum Guide has useful information for using the Exchange Development Forum.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • How to fetch data from Database using SUP MBOs

    I'm learning to develop blackberry apps using SUP.I am new to both blackberry api and SUP.
    I need to make a login page for a Student and then validate the username and password entered using data from a database.
    I need to check the database for the username and password entered. What should be my next step? How do i get this data from the database. Using findAll() method is not working . Do i need to connect to SCC or unwired server first. If yes , then someone please provide a sample code for it.

    Hi!, I see your code and I see that you have a fee errors, try to use this:
    import java.text.*;
    import java.sql.*;
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.OutputStream;
    * NOTE: You must put the try-catch and your sql code into the get method
    /** Servlet program to take fetchdata from database and display that on the broswer*/
    public class Fetchdata
        extends HttpServlet {
      String query = new String();
      String uid = "ashvini";
      String pwd = "******";
      public void doGet(HttpServletRequest request, HttpServletResponse response) throws
          ServletException, Exception {
        try {
          Connection con = null;
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          String url = "jdbc:odbc:Testing";
          con = DriverManager.getConnection(url, uid, pwd);
          Statement s = con.createStatement();
          query = "select * from gowri.msllst1";
          ResultSet rs = s.executeQuery(query);
          response.setContentType("text/html");
          ServletOutputStream out = response.getOutputStream();
          out.println("<HTML>" + "<BODY BGCOLOR=\"#FDF5E6\">\n" +
                      "<H1 ALIGN=CENTER>" + title + "</H1>\n" +
                      "<table>" + " <th>ITEM Code</th>");
          while (rs.next()) {
            out.println("<tr><td>" + rs.getString(1).trim() + "</td></tr>");//I change </tr></td> for </td></tr>
          } //end of while
          out.println("</table></BODY></HTML>");
        catch (Exception e) {
          System.out.println(e);
      } //end of doGet method
    }I hope this help you :)

  • Error in function PTCard.Store (): -2147467259

    hello,
    <p>
    I am trying to add a card to the knowledge directory using API. I call <strong>IPTCard.Store()</strong> method to store the card. below is my code.
    public void createCard(int folderParent, String cardName){
    IPTCatalog catalog = session.GetCatalog();
    IPTCard card = catalog.CreateCard();
    card.SetName(cardName);
    int[] parentIds = {folderParent};
    card.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_PARENTFOLDERIDS, parentIds);
    card.SetDescription("test description.");
    card.Store();
    But when i call "IPTCard.Store()" method, it returns the following error;
    </p>
    <strong> com.plumtree.openfoundation.util.XPException: Error in function PTCard.Store (): -2147467259 - Failed to store card: storing cards in DB failed
    </strong>does anybody have an idea, why this error appears ??
    thank you for ur openion in adv.
    <p>
    </p>

    I can't tell from the error, but I suspect you will need to associate the card with a data source (content upload or similar) before it can be stored in the database (PTCard.Store).
    Since I don't remember exactly how I did this at one point, I have provided some code below that I hacked from the API and changed around. It sets some extra stuff related to the file upload data source, but you can probably use some of it to piece together data source info. Here are some relevant lines that you'll probably need to fudge with:
                   IPTDataSource ptDS          = (IPTDataSource)
    session.GetDataSources().Open(nDataSourceID, false);
                   string strCardPropBagXML = pbagCardProp.SaveToXML(0);
                   ptDS.ImportDocument(strCardPropBagXML, nDocTypeID, ptCard, true, null);
    And here's the rest of the code it was ripped from...
              // Functions in this region were somewhat ripped from the UI source (KD submission space)
              // they have been slightly cleaned and commented for clarity (actual card submission happens here)
              public static IPTCard SubmitCard(int dataSourceId, int parentFolderId, string name, string description, string path, string type, string docId, string duServer, string duId, SortedList propertyList, IPTSession session, AActivitySpace space) {
                   IXPPropertyBag pbag = CreateCardSubmitUploadPropertyBag(path, type, docId);
                   return SubmitCardWithPropertyBag(parentFolderId, dataSourceId, name, description, duServer, duId, false, propertyList, pbag, session, space);
              public static IPTCard SubmitCardWithPropertyBag(int parentFolderId, int nDataSourceID, string strCardName, string strCardDescription, string duServer, string duId, bool approved, SortedList propertyList, IXPPropertyBag pbagCardProp, IPTSession session, AActivitySpace space) {
                   // Set Parent Folder
                   int[] arFolderIDs = new int[] {parentFolderId};
                   // set language to be that of the default locale
                   // Retrieve the SearchLocaleVarPack to verify the language
                   IApplication application = ApplicationManager.GetInstance()
                        .GetApplication(AppConstants.MAIN_APPLICATION_NAME.ToString());
                   PTSearchLocaleVarPack vpPTSearchLocales = (PTSearchLocaleVarPack) application.GetVarPackManager()
                        .GetVariablePackage(PTSearchLocaleVarPack.VARPACK_ID);
                   // Retrieve the user's default language:
                   string strCardLanguageCode = (string) PTPersonalSettingsHelper.GetPersonalSettingValue(PersonalSettingNames.LANGUAGE,
                        space);
                   // default to english if invalid language
                   if (false == vpPTSearchLocales.IsValidLanguage(strCardLanguageCode)) {
                        strCardLanguageCode = DirModel.ENGLISH_LOCALE_CODE;
                   return SubmitCardWithPropertyBag(arFolderIDs, strCardLanguageCode, 0,
                        nDataSourceID, pbagCardProp, strCardName, strCardDescription, duServer, duId, approved, propertyList, session, space);
              public static IPTCard SubmitCardWithPropertyBag(int[] arFolderIDs,
                   string strLanguage, int nDocTypeID, int nDataSourceID,
                   IXPPropertyBag pbagCardProp, string strCardName,
                   string strCardDescription, string duId, string duServer, bool approved,
                   SortedList propertyList, IPTSession session, AActivitySpace space) {
                   // create the card
                   IPTCard ptCard = session.GetCatalog().CreateCard();
                   ptCard.SetContentLanguage(strLanguage);
                   // Parent IDs can be a single value or an array of values
                   ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_PARENTFOLDERIDS,
                        arFolderIDs);
                   // if the index server isn't up, don't try to index, create the card
                   // and inform the user later
                   IXPPropertyBag statusBag = session.GetCatalog().GetSearchServerStatus();
                   SearchServerStatusInfo statusInfo = new SearchServerStatusInfo(statusBag, "INDEXSTATUS");
                   if (XPStringUtility.EqualsIgnoreCase(statusInfo.connectStatus,"OK")) {
                        ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_INDEXONSTORE, 1);
                   } else {
                        ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_INDEXONSTORE, 0);
                   // if the card is approved, we set this flag
                   if (approved) {
                        ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_INSERTAPPROVED, 1);
                   /* inherit parent folder ACLs */
                   ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_INHERITPARENTFOLDERPERMISSIONS, 1);
                   // Set the crawler tag to be "Manual"
                   ptCard.SetCrawlerTag(space.GetString(1635, "ptmsgs_portalbrowsingmsgs"));
                   if ((null != strCardName) && (strCardName.Length > 0)) {
                        ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_OVERWRITENAME, 0);
                        ptCard.SetName(strCardName);
                   if ((null != strCardDescription) && (strCardDescription.Length > 0)) {
                        ptCard.SetCardSettings(PT_CARD_SETTINGS.PT_CARD_OVERWRITEDESCRIPTION, 0);
                        ptCard.SetDescription(strCardDescription);
                   ptCard.SetDocumentLocation(pbagCardProp);
                   ptCard.SetDataSourceID(nDataSourceID);
                   // Get the DocumentTypeMap
                   if (0 == nDocTypeID) {
                        // Determine Default
                        IPTDocumentTypeMap ptMap;
                        ptMap = (IPTDocumentTypeMap) session.OpenGlobalObject(PT_GLOBALOBJECTS.PT_GLOBAL_DOCUMENTTYPEMAP,
                             false);
                        ptMap.Initialize(session);
                        nDocTypeID = ptMap.LookupByPropBag(pbagCardProp);
                        // If no default DocType was found,
                        // determine what default DocType should be used based on the server config setting
                        if (0 == nDocTypeID) {
                             IApplication application = ApplicationManager.GetInstance()
                                  .GetApplication(AppConstants.MAIN_APPLICATION_NAME.ToString());
                             PTDirPrefsVarPack vpPTDirPrefs = (PTDirPrefsVarPack) application.GetVarPackManager()
                                  .GetVariablePackage(PTDirPrefsVarPack.VARPACK_ID);
                             nDocTypeID = vpPTDirPrefs.GetDefaultDocType();
                   IPTDataSource ptDS          = (IPTDataSource) session.GetDataSources().Open(nDataSourceID, false);
                   string strCardPropBagXML = pbagCardProp.SaveToXML(0);
                   ptDS.ImportDocument(strCardPropBagXML, nDocTypeID, ptCard, true, null);
                   // set file upload properties
                   /* get the card and it's property values */
                   IPTCardPropertyValues ptPropValues = ptCard.GetPropertyValues();
                   /* Document Upload ID */
                   IPTCardPropertyValue ptValue = ptPropValues.Add(PT_INTRINSICS.PT_PROPERTY_UPLOAD_DUID);
                   ptValue.SetOverrideValue(duId); /* make this an override value so it is not lost on a re-index */
                   /* Document Upload Server */
                   ptValue = ptPropValues.Add(PT_INTRINSICS.PT_PROPERTY_UPLOAD_DUSERVER);
                   ptValue.SetOverrideValue(duServer); /* make this an override value so it is not lost on a re-index */
                   /* Custom Property Settings */
                   if (propertyList.Count > 0) {
                        foreach (DictionaryEntry de in propertyList) {
                             try {
                                  int propId = (int) de.Key;
                                  ptValue = ptPropValues.GetItem(propId);
                                  if (null == ptValue) { ptValue = ptPropValues.Add(propId); }                              
                                  ptValue.SetOverrideValue(de.Value);
                             } catch (Exception) {
                                  // ignore exceptions, maybe the wrong property or card
                   //store the card
                   ptCard.Store();
                   ptCard.UnlockObject();
                   // approve or unapprove the card
                   /* 2 for approve, 1 for unapprove */
                   //session.GetCatalog().SetApprovalStateByCard(ptCard.GetObjectID(), (approved ? 2 : 1), arFolderIDs );
                   return ptCard;
              public static IXPPropertyBag CreateCardSubmitUploadPropertyBag(string path, string type, string _docID) {
                   IXPPropertyBag pbagCardProp;
                   pbagCardProp = PortalObjectsFactory.CreatePropertyBag();
                   pbagCardProp.Write("PTC_PBAGFORMAT", 2000);
                   pbagCardProp.Write("PTC_DTM_SECT", XPConvert.ToInteger(_type));
                   pbagCardProp.Write("PTC_UNIQUE", _path);
                   pbagCardProp.Write("PTC_DOC_ID", _docID);
                   return pbagCardProp;
              }

  • What is the definition of Backing Store?

    I see this term Backing Store thrown around here and there. Could someone explain the concept behind it? I first began wondering about this when I caught this term being used in the Preferences API docs.
    Thanks

    It's whatever persistence mechanism is actually responsible for storing/retrieving data. For J2EE EntityBeans, as an example, the "backing store" is the combination of the application server's caching mechanism and the database (typically) that the EntityBean represents. For a Map object, it's the underlying memory mechanism.
    Since I've only recently become aware of the Preferences APIs, I'm supposing the backing store would be something like a Properties file, the Windows "registry," LDAP, or someother long-term (non-memory) storage mechanism.

  • My First app using beta 2 and the Bing API (and REST in V2)

    Second version has REST feed for NASA Image of the day in addition to the Bing API stuff. I submitted to store.
    -- Barb Bowman

    http://digitalmediaphile.com/index.php/2014/03/27/my-space-images-from-nasa-app-now-available-world-wide/
    I've finished Space Images from NASA! Release 4 is in the Store worldwide .. see my write up above. I really love working with Project Siena.
    I used REST to pull image of the day into a custom gallery and Bing search for the rest.
    -- Barb Bowman

  • ITunes search api releaseDate - is there another date property somewhere too?

    Hi guys
    Are there two release dates in the API? I notice that releaseDate doesn't always match up with what is displayed in iTunes.
    For example, an api search in the Great Britain store for Dreadlock Holiday by 10CC, looking at the 'Bloody Tourists' album shows the release date as 2002-07-15T07:00:00Z, yet the store says Sep 1978 (the latter being correct).
    https://itunes.apple.com/search?term=dreadlock+holiday&country=GB
    Is there another date to access?

    I have the same question about the releaseDate.
    After investigation I found that lookup API always returns the date of the very first application version release.t
    For ex. if we have next versions:
    1.0.4.8 released 2013-03-20
    1.3.0.1 released 2014-12-31
    2.1.0.0 released 2015-04-20
    Lookup will return us release date 2013-03-20 for each new release.
    Is there some way to get the releaseDate of a specific version?
    Thanks,
    Misha

  • Information Screen Library and Store SDK or Reading SDK within a folio

    There are conflicting materials in regards to new r30 Information Screen functionality:
    adobeDPS.dialogService.displayCustomWebview(url)
    From Adobe TV's Information Screen & Scheduled Text Notifications by Colin Fleming, it states:
    Similar to digital blow-ins, but
    - Access to Store/Library API creates new possibilities in an article
    However, this capability conflicts other articles by Adobe, in which only the Reading SDK is available from an Information Screen when loaded within a folio.
    From Adobe Digital Publishing Suite Help, Using HTML and JavaScript APIs to extend DPS, it states:
    For HTML content within a folio, such as an HTML article or a Web Content overlay, you can reference the Reading API. The Reading API includes some some features available in the Library and Store API as well as APIs for geolocation, camera, calendar, and device detection.
    Any HTML content you specify in DPS App Builder can reference the Library and Store API. HTML articles or Web Content overlays in a folio can reference the Reading API.
    From Adobe's New APIs and features in r30, including folio navigation, article metadata and calendar events:
    The API that the webview can access depends on where the webview was invoked. If invoked from within the app, the webview will have access to the Library/Store API. If invoked from within a folio, the webview will have access to the Reading API. If your transparent webview was opened from a custom tab you will need to include the library/store API. If it was opened from a folio, you will need to include the reading API.
    Because this API is accessible from the library/store and reading APIs, this API is available to both DPS Enterprise and DPS Professional customers.
    Loading an Information Screen within a folio with the Library and Store SDK fails silently, unable to bring up the web view.
    Loading an Information Screen within a folio with the Reading SDK is functional.

    This line in Colin's video is incorrect:
    "Access to Store/Library API creates new possibilities in an article"
    The information in the articles is correct. Specifically, if you launch the Information Screen from within an HTML article or a Web Content overlay, you reference the Reading APIs. If you launch the Information Screen from within an entitlement banner, a custom library, or a custom slot, you reference the Library/Store APIs.

Maybe you are looking for

  • I can scroll on iPod menu, but when I want to click on something

    (like playlist), nothing is happening. Also, does anyone know how to transfer all the songs in my iPod to my library? When you get a new iPod, how do you get all of your songs on the new one if they are not in your library? Thanks everyone!!

  • BAPI for Release Purchase Contracts

    Hi Experts, I have an ECC with a Workflow for approve Purchase Contracts, ok!! I have too an External Program for approve this contracts, but I don´t know a BAPI or FM for export this requisitions to the External Program. I know that for PO and PR ex

  • HT1491 how to use a ringtone from a downloaded app in iphone5

    how to use a ringtone from a downloaded app in iphone 5

  • How to change output precision of DAQ to waveform chart and to spreadsheet

    Refer vi attached, the DAQ connects to a waveform chart to a spreadsheet. I want to change the precision of the DAQ assistant output from 6 decimal places to 2 decimal places, but everywhere i searched on the DAQ assistant i cannot find a precision s

  • Admin error when downloading

    I don't know if this is the right place to post, but any help would be appreciated. I am the only user on my computer and are therefore the admin. I am also under the admin account. I have recently been having problems downloading some things. Every