coldfusion - session objects that has Arrays within Array -


I need to create a shopping cart in which many variables such as Shirts, Company, Disneynar, Names, Company, Cons_N, DSNR_Cert_Number, DSNR_Cert_Issued_Date etc. Are there. Here "Shirts, Company, Disneyer_name" are all array type variables, where "Shirts" is the main array.

So I basically have to work on the array which is inside it, there are 2 different arrays with arrays in two arrays with other variables

   & Lt ;! --- "Cons_Code" is an important value taken from "Cons_name" and "Company_Text_Code"; Every time a user selects a new "shirt", a new key "Cons_Code" is created ---> & Lt; Cfset Cons_Code = 2 & gt; & Lt ;! --- create a structure --- & gt; & Lt; Cfset st shirt [cons_Code] = Stretton (New) /> & Lt ;! --- Assign the value of our structure --- & gt; & Lt; Cfset st shirts [cons_code] .company_Text_Code = "" / & gt; & Lt ;! --- & lt; Cfset st shirt [cons_Code] .CompanyText = "333" /> --- & gt; & Lt; Cfset st shirts [cons_Code]. Dsiner_names = ArrayNew (1) /> & Lt; Cfset st shirts [cons_code] Dsiner_names [1] = "Paris" /> & Lt; Cfset st shirt [cons_Code] Desiner_Names [2] = "London" /> & Lt; Cfset st shirt [cons_Code] Desiner_Names [3] = "Milan" /> & Lt; Cfset st shirt [cons_Code] COMPANY TEXT = ARRANINE (1) /> & Lt; Cfset st shirts [cons_code] .company text [1] = "periis" /> & Lt; Cfset st shirt [cons_Code] .company text [2] = "arrow" /> & Lt; Cfset st shirts [cons_code] .company text [3] = "polo" /> & Lt; Cfset st shirt [cons_Code] .Cons_Name = "" /> & Lt; Cfset st shirt [cons_Code] .DSNR_Cert_Number = "" /> & Lt; Cfset st shirt [cons_Code] .DSNR_Cert_Issued_Date = "" /> & Lt; Cfset ArrayAppend (Shirts, Stracon Copy (Stands [Consection]) /> <--- --- In our array --- Structure Structure & gt; & lt; cfoutput & gt; & lt; cfloop = "1" From = "#Arrayen (Shirts) #" index = "row" & gt; line # line #: #shirt [row] .company text [1] #, #shirt [line] .discar_name [2] #, #shirt [Row] .ons_Name # 
# shirt [row] .DSNR_Cert_Issued_Date #

Sometimes I'm getting the error

  "You have to notify a scalar variable Have done " 

Am I doing the right thing by creating 2 arrays within one array / shirts? There are at least 150 different violet in this" shirts ", which The session goes to help pleez Xain hu

  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -