Best way to insert data into instances of the custom class
Hello.I have created a custom class (mySuperClass) in an .as file, defined constructor methods, properties, and the get/set. Now in the main .fla I must declare a large number of instances of this class and complete each property. The 'proper' method, I guess, would be to:
var super1:mySuperClass = new SuperClass();
super1.setProperty1 ( value1_1);
super1.setProperty2 ( value1_2);
...
super1.setPropertyN ( value1_N);
...
var superM:mySuperClass = new SuperClass();
superM.setProperty1 ( valueM_1);
...
superM.setProperty1 ( valueM_N);
However, with large quantities of variables and information that share the same basic characteristics, I feel always attempted to do through a cycle of dethrone. In that case, I'd probably build tables with the properties to complete.
So I want to know is how would you guys do it? Are there other ways to do it?
Thanks in advance.
Well, the example is based on an object that has a datamodel and which can be any object of course. Now, assuming that the data come Let's say an xml file, I would use a function as the code to generate a collection of objects.
Edit: so the StoreItem instances are created on the fly and saved in the collection
Tags: Adobe Animate
Similar Questions
-
Best way to put music on iPod to the customer?
Recently digitized music collection of the client. We have it in a separate iTunes as aac files library. We'll buy a new iPod to get the collection. What is the best way to manage the entire to the top of the new iPod? We need to create a new iTunes account with a disposable email for him? Must we turn right under one of our accounts and transfer it somehow to him?
Thanks for any advice.
CJ
iPods sync only to a single computer at a time. Your customer has a computer? If so, give him the files he can take home, do his own Apple ID and put iTunes on his own computer, then it can synchronize music on himself. (or if it's a laptop see if he can bring it you can do it for him)
If it is not a computer and has nothing to sync the iPod to then make its own apple ID with some disposable addresses - hotmail, yahoo, gmail, etc. and make sure you give him this address and the password. then sync the music on it.
-
Insert data into another database with a script
Hello.
What is the best way to insert data into one database with a script
INSERT INTO BF_PRUEBASMTP.bf_mtp_agr_inscription (ain_agreementid, ain_customerid, ain_paymethodsid, ain_servicemoduleid, referencia)
SELECT AAG. AAG_AGREEMENTID, ACU. ACU_CUSTOMERID, 2, 2, ins. NUMERO_REFERENCIA
OF BF_PRUEBASMTP.bf_mtp_agr_biller ABI
JOIN IN-HOUSE
BF_PRUEBASMTP. BF_MTP_AGR_AGREEMENT AAG ON ABI. ABI_BILLERID = AAG. AAG_BILLERID
INNER JOIN 'CLIENTEUNICO. ALMUERZO" ins
ON THE AAG. AAG_AGREEMENTID = ins. CONVENIOID
INNER JOIN BF_PRUEBASMTP.bf_mtp_agr_customer ACU
ON ACU.acu_typedocumentid = ins. TIPO_DOCUMENTO
AND ACU.acu_numberid = ins. NUMERO_DOCUMENTO;
CLIENTEUNICO. INSCRIPCIONES = SELECT * DE INSCRIPCIONES - to a DIFFERENT DATABASE
Thank you very much.
2931095 wrote:
If I don't have permissions to create a database link. Is there another way to do this?
Thank you.
link to database IS the method by which an Oracle database accesses to a different database.
If you are the ADMINISTRATOR, you should have permission.
If you are not the ADMINISTRATOR, you should not have permission and need to talk to the ADMINISTRATOR that is allowed.
-
Insert data into an existing timechannel
Hello
I'm trying to insert data into an existing timechannel. To illustrate my use case, I prepared a few data :
Absolute timechannel D1 D2 D3
14.02.2013 03:22:51.3930 - 4-92-703
14.02.2013 03:22:52.3930 - 4-92-697
14.02.2013 04:06:19.7280 - 1-75-674
14.02.2013 04:06:20.7280 - 1-75-696As you can see there is a chronological gap between the second and the third group of data. Now, I want to insert a line with NoValues in this interval.
The data has been saved with a sampling rate of 1 Hz. After processing the data, they should look like this:Absolute timechannel D1 D2 D3
14.02.2013 03:22:51.3930 - 4-92-703
14.02.2013 03:22:52.3930 - 4-92-697
14.02.2013 03:22:53.3930 NV NV NV
14.02.2013 04:06:19.7280 - 1-75-674
14.02.2013 04:06:20.7280 - 1-75-696Insertion of the NoValues in the data channel works very well with 'DataBlInsertVal '. But I'm having a hard time to achieve the same in the timechannel. Especially with a dependency on the sampling rate.
Someone has tried to do the same thing or has some tips how to do this? The main objective is to avoid reporting to connect the data points on this chronological gap.Best regards, Marc
Hi Marc,
I tried what you wanted to do and he worked with DIAdem 2012 without any problem.
I used the attached file and copy the following code:
Call DataBlInsertVal(Data.Root.ChannelGroups(1).Channels("Time"), 13, 1, NV)
Can you try this line with my file?
Cheers, RMathews
-
Insert data into the source of destinator Table
Hi all
Need to insert data in sample_table1 table xxc_source_table sample_table2
create table xxc_source_table (DESCRIPTION varchar2 (10));
Insert the table xxc_source_table values('A201.) ABC.4084.GR');
create table sample_table1 (col_1 varchar2 (10), col_2 varchar2 (10), col_3 varchar2 (10), col_4 varchar2 (10));
create table sample_table2 (col_1 varchar2 (10), col_2 varchar2 (10), col_3 varchar2 (10), col_4 varchar2 (10), moved_flag varchar2 (2));
col_1 = A201
col_2 = ABC
col_3 = 4084
col_4 = GR
Note: Insert data into the col_1, the col_3, the col_4 of the xxc_source_table sample_table1
(2) if the next (form xxc_source_table) data is exist in the sample_table2, and then set the moved_flag as Y in this column
3) xxc_source_table has 17000 lines
Thank you.
Post edited by: Rajesh123 please do not consider cross the line message
Hi Renon,
Why you don't want substr and instr? For best performance, you should go with substr and instr instead of regexp_substr. However you asked me to provide the code instead of substr and InStr. Then try the below...
INSERT ALL
IN VALUES sample_table1 (col1, col2, col3, col4)
IN sample_table2 VALUES (col1, col2, col3, col4, 'Y')
SELECT REGEXP_SUBSTR (DESCRIPTION,'[^.] +', 1, 1) col1,.
REGEXP_SUBSTR (DESCRIPTION,'[^.] +', 1, 2) col2.
REGEXP_SUBSTR (DESCRIPTION,'[^.] +' 1, 3) col3.
REGEXP_SUBSTR (DESCRIPTION,'[^.] +' 1, 4) col4
OF xxc_source_table;
Thank you
Ann
-
How to insert data into the database using smartview
Hello
I am trying to insert data into the database using * "Send data" * button on the Ribbon of Essbase.
My database is empty.
I opened an ad hoc network, it returns * "#missing" * in all cells
I have modified the cells and provided data in the cells that I want to. Now, I supported on * "Send data" * button.
It just reloaded the adhoc grid instead of submit data, I rechecked the data through data console Administrative Service are not inserted.
I am following the right way to insert data? If not, could you please suggest me how (Populate) insert default data in the database?
--
VINETYou go about it the right way, once you have submitted if you réactualisiez then data values should be there, if you POV is against members of dynamic calc and then data not written to the database, you need to check the Member properties of your POV.
See you soon
John
http://John-Goodwin.blogspot.com/ -
How to insert data into the BLOB column
Hi all
Can someone help me to insert data in the BLOB data type column?
The structure of the table is
CREATE TABLE XXATFL_DM_FORCAST_STG
(
TASK_ID NUMBER,
USER_ID NUMBER,
CREATED_BY NUMBER (15),
CREATION_DATE DATE,
LAST_UPDATED_BY NUMBER (15),
DATE OF LAST_UPDATE_DATE,
LAST_UPDATE_LOGIN NUMBER (15),
RECORD_STATUS VARCHAR2 (1 BYTE),
ERROR_MESSAGE VARCHAR2 (4000 BYTE),
DATA_FILE BLOB
)
I want to insert data into the column DATA_FILE. and this insert statement inside a procedure.
Please help me as soon as possible because it is very urgent for me
Thank you and best regards,
CharrierCharrier,
If you form the string yourself, you can use the function utl_raw.cast_to_raw on your channel.
http://download.Oracle.com/docs/CD/B12037_01/AppDev.101/b10802/u_raw.htm#997086
sql> create table t( 2 id number, 3 l_blob blob 4 ); sql> insert into t values(1, utl_raw.cast_to_raw('SampleString')); 1 row created. sql> commit; Commit complete.
-
Cannot insert data into the database
Hello world
I stuck with a problem in DB juice. When I try to insert data into the database using DB tool, I get a repeated error message (error 1). Please find the my vifile below and solve say.
Problem is use Labiew 8.2. So try to answer accordingly
Try it with a cluster instead of a string or an array.
-
My O.S. is W.7. 32-bit.
Before, I recently upgraded to XP and using MS Word 2007, I have a (short) Sound Clip of pre-registration<60 secs. )="" and="" then="" insert="" it="" into="" my="">60>
A small icon that looks like a speaker appeared on the Document and that the beneficiary would have left click on it to hear the recording. The Sound Recorder with W7 now seems much more rudimentary than the old version, and I can't find any way to insert messages into My Documents.
Is this even possible or has Microsoft taken a step backward here?
I'd appreciate some help here. Thanks in advance. Mech-Tech.
Original title: Sound Recorder
If I've understood your problem, try this. Create a shortcut to "soundrecorder /file outputfilename.wav" (without the quotes).
Then start soundrecorder via this shortcut and start and stop the recording, it will save so (hopefully) as a wav as before.
I think the problem is, W7 soundrecorder, by default, saves to wma.
If not, try a 3rd free part program such as Audacity (which seems like overkill, but should do the job).
I hope this will help.
-
What trigger to use to insert data into the table db forms
Hello
My form is current having a block of database with the table reference. When you enter data into the form field and click Save. Automatically record is inserted in the database table.
I want to do this under manual insert. I changed the block of data to a data non-base. Where should I write the insert statement to insert data into the table.
Is - shutter release key of the form-level validation?
Please notify.
Thank you
Didi.You can guide me how to remove the message FRM-40401 no changes to save and instead, I wanted to put 1 transaction record successful... some like it like that.
Hi didi.
And this is my last post I'll sleep. ;)
Take form level trigger named preform
and write on it:SYSTEM.MESSAGE_LEVEL := 5;
I hope this works...
Hamid
Mark correct/good to help others to get the right answers. *
-
Dreamweaver server behaviors, can not insert data into the database
Hi, I tried to use server behaviors to add registration information in my database in my registration page.
(1) that I created a login page, and it works very well. This means that connections and the connection works fine database so it can match the record in my database.
(2) but when I tried to download the news in the form of database, it does not work. When I clicked on the service behavior to double check the action "insert data", it always jumps the error message: "When executing inspectserverbehavior in InsertRecord.htm, a javascript error occurred."
I copied my code below. Except the form code and a little jquery is written by me, most of the code generated by Dreamweaver.
<? php require_once('Connections/MAMPPRO.php');? >
<? PHP
If (! function_exists ("GetSQLValueString")) {}
function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
If (via PHP_VERSION < 6) {}
$theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;
}
$theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);
Switch ($theType) {}
case 'text ':
$theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
break;
case "long":
case "int":
$theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';
break;
case "double":
$theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';
break;
case "date":
$theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
break;
case "set":
$theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
break;
}
Return $theValue;
}
}
$editFormAction = $_SERVER ['PHP_SELF'];
If (isset {}
$editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);
}
If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "Register_Form")) {}
$insertSQL = sprintf ("INSERT INTO"user identity"(Ui_LastName, Ui_Email, Ui_FirstName, Ui_Password) VALUES (%s, %s, %s %s)", ")
GetSQLValueString ($_POST ['Register_Firstname'], "text").
GetSQLValueString ($_POST ['Register_Lastname'], "text").
GetSQLValueString ($_POST ['Register_Email'], "text").
GetSQLValueString ($_POST ['Register_Password'], "text"));
@mysql_select_db ($database_MAMPPRO, $MAMPPRO);
$Result1 = mysql_query ($insertSQL, $MAMPPRO) or die (mysql_error ());
$insertGoTo = "LoginSuccessful.php";
If (isset {}
$insertGoTo. = (strpos ($insertGoTo, '?'))? « & » : « ? » ;
$insertGoTo. = $_SERVER ['QUERY_STRING'];
}
header (sprintf ("location: %s", $insertGoTo));
}
@mysql_select_db ($database_MAMPPRO, $MAMPPRO);
$query_Recordset1 = "SELECT *"IDENTITY of the user;"
$Recordset1 = mysql_query ($query_Recordset1, $MAMPPRO) or die (mysql_error ());
$row_Recordset1 = mysql_fetch_assoc ($Recordset1);
$totalRows_Recordset1 = mysql_num_rows ($Recordset1);
? >
<! doctype html >
< html >
< head >
< meta charset = "UTF-8" >
Registeration < title > < / title >
"< link href="jquery-mobile/jquery.mobile-1.3.0.min.css "rel ="stylesheet"type =" text/css">
"< script src="jquery-mobile/jquery-1.8.3.min.js "type =" text/javascript"> < / script >
"< script src="jquery-mobile/jquery.mobile-1.3.0.min.js "type =" text/javascript"> < / script >
< / head >
< body >
< div data-role = 'page' id = "registrationpage" >
< div data-role = "header" >
< h1 > welcome! < / h1 >
< h1 > register yourself! < / h1 >
< / div >
< data-role = 'content' div > < / div >
< do action = "<?" PHP echo $editFormAction;? ">" method = "POST" id = "Register_Form" name = "Register_Form" >
< p >
< label > Email < / label >
< input name = "Register_Email" type = "email" required id = form register_email = "Register_Form" title = "Register_Email" >
< label > < br >
Password < / label >
< input name = "Register_Password" type = "password" required id = form register_password = "Register_Form" title = "Register_Password" value = "" >
< /p >
< p >
< label > name < / label >
< input name = "Register_Lastname" type = "text" required id = form register_lastname = "Register_Form" title = "Register_lastname" value = "" >
< label > < br >
First name < / label >
< input name = "Register_Firstname" type = "text" required id = form register_firstname = "Register_Form" title = "Register_Firstname" value = "" >
< /p >
< name of entry = "MM_insert" type = 'submit' form 'Register_Form' value = 'Registration' = >
< input type = "hidden" name = "MM_insert" value = "Register_Form" >
< / make >
< a href = "index.php" data-role = "button" > return to connection < /a > "
< div data-role = "footer" >
footer < h4 > < / h4 >
< / div >
< / div >
< / body >
< / html >
<? PHP
mysql_free_result ($Recordset1);
? >
Finally I found the problem.
It seems in my setting, MAIL does not work in live mode DW. But if moved to any explores, it works fine.
Adobe really needs to improve its management of PHP.
-
How to insert data into the table by using the expression builder in the assign activity
How to insert data into the table by using the expression builder in affect business in BPEl, I use SOA Suite 11.1.1.5
Can someone help me pleaseHello
I don't think that oraext:query-database() can insert data into the table.
What are your needs?
Can not you plan to use the DB adapter with the insert operation?Kind regards
Neeraj Sehgal -
How to insert data into a BLOB column using sql
Hi all
How to insert data into the BLOB column directly using sql.
Thank youcreate table temp ( a blob, b clob); SQL> / Insert into temp values ('32aasdasdsdasdasd4e32','adsfbsdkjf') ; * ERROR at line 1: ORA-01465: invalid hex number Please help in this.
Prakash PInsert into temporary values (UTL_RAW. CAST_TO_RAW ('32aasdasdsdasdasd4e32'), 'adsfbsdkjf');
-
The best way to migrate data... Opinion please...
Guys,
I'm working on a solution for a customer who needs to move in a new SAN SAN data.
Existing SAN is attached to the ESX server farm and is very close to the location of a new SAN. In your opinion, what is the best way to move data without interruption to VM ESX farm?
I know we can do SAN replication, but right now, I don't know if the SAN is still the same provider.
I know we can do Storage VMotion. In this case, he should present the new SAN somehow for the existing ESX servers.
I know that we can probably use the converter to migrate virtual machines. This can take some time because we would go over WAN.
What are your thoughts?
Thanks in advance for your comments!
With 4 TB of data, I wouldn't pass on the replication SAN or WAN solution of optimization of the property, and it can fly quickly with 4 TB of data that you use storage vmotion which basically depends on how your WAN links are, if if its quick to go for it. There is not another free solution then this but if you can manage somehow to make backup of system state of all virtual machines, and then you can ship these backup data to remote locations and import, save back to clusters. You have to do the actual calculation how fast you can Transfer data from the siteA-> siteB Mbps? This will give you a clearer picture of how long it will take and picture plan here. I could do that during maintenance or weekend windows that are the least impact to users and systems.
If you found this information useful, please consider awarding points to 'Correct' or 'useful '. Thank you!!!
Kind regards
Stefan Nguyen
VMware vExpert 2009
iGeek Systems Inc.
VMware, Citrix, Microsoft Consultant
-
Doubt about inserting data into a table
Hi all, when I try to insert data into a table through an anonymous block, the pl/sql block runs successfully, but the data are not get inserted. Can someone please tell me where I am doing wrong?
Thanks in advance!SQL> DECLARE 2 3 V_A NUMBER; 4 5 V_B NUMBER; 6 7 v_message varchar2(25); 8 9 10 BEGIN 11 12 13 select regal.regal_inv_landed_cost_seq.NEXTVAL into V_A from dual ; 14 15 select regal.regal_inv_landed_cost_seq.currval into V_B from dual ; 16 17 INSERT INTO rcv_transactions_interface 18 ( 19 INTERFACE_TRANSACTION_ID, 20 HEADER_INTERFACE_ID, 21 GROUP_ID, 22 TRANSACTION_TYPE, 23 TRANSACTION_DATE, 24 PROCESSING_STATUS_CODE, 25 PROCESSING_MODE_CODE, 26 TRANSACTION_STATUS_CODE, 27 QUANTITY, 28 LAST_UPDATE_DATE, 29 LAST_UPDATED_BY, 30 CREATION_DATE, 31 CREATED_BY, 32 RECEIPT_SOURCE_CODE, 33 DESTINATION_TYPE_CODE, 34 AUTO_TRANSACT_CODE, 35 SOURCE_DOCUMENT_CODE, 36 UNIT_OF_MEASURE, 37 ITEM_ID, 38 UOM_CODE, 39 EMPLOYEE_ID, 40 SHIPMENT_HEADER_ID, 41 SHIPMENT_LINE_ID, 42 TO_ORGANIZATION_ID, 43 SUBINVENTORY, 44 FROM_ORGANIZATION_ID, 45 FROM_SUBINVENTORY 46 ) 47 48 SELECT 49 regal.regal_inv_landed_cost_seq.nextval, --Interface_transaction_ id 50 V_A, --Header Interface ID 51 V_B, --Group ID 52 'Ship', --Transaction Type 53 sysdate, --Transaction Date 54 'PENDING', --Processing Status Code 55 'BATCH', --Processing Mode Code 56 'PENDING', --Transaction Status Cod e 57 lc.quantity_received, --Quantity 58 lc.last_update_date, --last update date 59 lc.last_updated_by, --last updated by 60 sysdate, --creation date 61 lc.created_by, --created by 62 'INVENTORY', --Receipt source Code 63 'INVENTORY', --Destination Type Code 64 'DELIVER' , --AUT Transact Code 65 'INVENTORY', --Source Document Code 66 msi.primary_uom_code , --Unit Of Measure 67 msi.inventory_item_id, --Item ID 68 msi.primary_unit_of_measure, --UOM COde 69 fnd.user_id, 70 V_A, --Shipment Header ID 71 V_B, --SHipment Line ID 72 82, --To Organization ID 73 'Brooklyn', --Sub Inventory ID 74 81, --From Organization 75 'Vessel' --From Subinventory 76 77 FROM 78 regal.regal_inv_landed_cost_tab lc, 79 fnd_user fnd, 80 mtl_system_items msi 81 82 WHERE 83 lc.organization_id = msi.organization_id 84 AND lc.inventory_item_id = msi.inventory_item_id 85 AND lc.created_by = fnd.created_by; 86 87 commit; 88 v_message := SQL%ROWCOUNT; 89 dbms_output.put_line('v_message'); 90 END; 91 / v_message PL/SQL procedure successfully completed. SQL> select * from rcv_transactions_interface; no rows selected
There is no problem with inserting data!
Only there is no data! This means that your select statement retrieves no rows.
You can see the output of your program (0). This means that there where no line in the result set.Please check the output of your tax return independently:
SELECT -- regal.regal_inv_landed_cost_seq.nextval, --Interface_transaction_id -- V_A, --Header Interface ID -- V_B, --Group ID 'Ship', --Transaction Type sysdate, --Transaction Date 'PENDING', --Processing Status Code 'BATCH', --Processing Mode Code 'PENDING', --Transaction Status Code lc.quantity_received, --Quantity lc.last_update_date, --last update date lc.last_updated_by, --last updated by sysdate, --creation date lc.created_by, --created by 'INVENTORY', --Receipt source Code 'INVENTORY', --Destination Type Code 'DELIVER' , --AUT Transact Code 'INVENTORY', --Source Document Code msi.primary_uom_code , --Unit Of Measure msi.inventory_item_id, --Item ID msi.primary_unit_of_measure, --UOM COde fnd.user_id, -- V_A, --Shipment Header ID -- V_B, --SHipment Line ID 82, --To Organization ID 'Brooklyn', --Sub Inventory ID 81, --From Organization 'Vessel' --From Subinventory FROM regal.regal_inv_landed_cost_tab lc, fnd_user fnd, mtl_system_items msi WHERE lc.organization_id = msi.organization_id AND lc.inventory_item_id = msi.inventory_item_id AND lc.created_by = fnd.created_by;
Published by: hm on 13.10.2011 23:19
I removed the references of the sequence and the variables V_A and YaeUb.
BTW: Why do you want to include V_A and YaeUb in two different columns?The use of sequences in your code seems a bit strange to me. But this has nothing to do with your question.
Maybe you are looking for
-
Firefox 8 crashes on startup - even in safe mode
Basically... is it not working anymore... just an instant crash reporter window. So I get back 7?
-
Update of the USB-TC01 Firmware
I have a USB-TC01, and whenever I try to use it on my Windows 8 tablet it gives error-201168, with the text of 'Possible reason' doing this: "Firmware for this device is too old. Update the firmware for this device. » I get this error when you use La
-
My pc backup at startup, it is said that he must run chkdsk. If I let it continue or stop otherwise it and run chkdsk once it is started, chkdsk is suspended in part 2.I have no files of interest on this pc, but I would like to continue to use it to
-
Pavilion dv7-6140eo: device Bluetooth problem
Hello. I can't start bluetooth on my Pavilion dv7-6140eo with W7 (32 bit) Device Manager do not appear, only the unknown device. I was trying to upgrade the driver of all HP possible, but always the same. Can you help me with that? Fr. Andy
-
I totally miss the option "request original size" If you receive a photo in bbm (I dunno if its called like this in English, I use the German language).