Skip to main content
felixr
January 27, 2022
Solved

BBO Invoice can only be indexed into using square brackets or the index function

  • January 27, 2022
  • 6 replies
  • 2 views

i'm trying to get the billNo of this invoice object 

 but when i try to retrive it  i get null values if  i use  the index function  if i don't use index function i get an error saying the error that i just wrote in the subject  the only way for me to get this information is just getting all    the values  how could i  get just one value ? bellow i'm gonna let you some examples of  what i see.

    Best answer by stefanhelzle0001

    Seems like this is a record type.

    docs.appian.com/.../reference-records.html

    6 replies

    agamb0001
    January 27, 2022

    can you share a screenshot / xsd of BBO Invoice CDT?

    Since index didnt work, just to check,

    did you get the right value using square brackets, like ri!cliente["billNo"],

    and whats the output using the property function?

    harshitb6843
    January 27, 2022

    Hi there,

    As I see in the screenshot, you have a CDT with scaler and non-scaler fields. This causes problems sometimes.
    Try this. 

    ri!cliente[1].billNo

    felixr
    felixrAuthor
    January 27, 2022

    xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:com:appian:types" targetNamespace="urn:com:appian:types">
      
      
      
        
          
            
              @Id @GeneratedValue
            
          
          
          
            
              @Column(length=255)
            
          
          
          
            
              @Column(length=255)
            
          
          
            
              @Column(length=255)
            
          
          
            
              @OneToOne(cascade=CascadeType.ALL)
            
          
          
          
            
              @Column(length=255)
            
          
          
          
            
              @ManyToOne(cascade=CascadeType.REFRESH)
            
          
          
          
          
          
            
              @Column(length=255)
            
          
          
          
          
          
          
          
          
          
          
            
              @Column(length=255)
            
          
          
            
              @Column(length=255)
            
          
          
            
              @Column(length=255)
            
          
          
        
      
    

    this is the xsd of the cdt

    also  i send you the  print screen of the  expression rule that i obtain  the invoice from  these two codes "ri!cliente[1].billNo" , "ri!cliente["billNo"]" dont work either  i don't know what to do

    edit: property()  is getting the same result as index()

    stefanhelzle0001
    Brainy
    January 27, 2022

    Seems like this is a record type.

    docs.appian.com/.../reference-records.html

    felixr
    felixrAuthor
    January 27, 2022

    thanks  for your support  that was my problem  i referred to the record type of the  invoice object