Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

Data get vanished after inserting in TempDB table

(0) ShareShare
ReportReport
Posted on by 54
Hi,
I have a requirement that I have a master table which is a regular table-type & another is transaction table which is a tempDB table. I have a button on main form which calling this tempDB form for each record to show the transaction for that customer. I wrote code to insert data in tempDB table in executeQuery method of transaction form. while debugging data gets inserted in transaction form but when checking after insertion data gets vanished. I know tempDB data uses for temporary purpose like in Reports.
is their any way to keep the data in that form.
 
[Form]public class HSSKCustomerTransactionData extends FormRun{    HSSKCustomerTransactionData customerTrans;    CustTrans custTrans;    HSSKCustomerData customerData;    [DataSource]    class HSSKCustomerTransactionData    {        /// <summary>        ///        /// </summary>        public void init()        {            super();            HSSKCustomerTransactionData.linkPhysicalTableInstance(customerTrans);        }        /// <summary>        ///        ///// </summary>        public void executeQuery()        {            if (element.args())            {                if (element.args().record() && element.args().record().tableid == tableNum(HSSKCustomerData))                {                    customerData = element.args().record();                    while select custTrans                        where custTrans.AccountNum == customerData.AccountNum                    {                        customerTrans.Invoice = custTrans.Invoice;                        customerTrans.Voucher = custTrans.Voucher;                        customerTrans.AmountCur = custTrans.AmountCur;                        customerTrans.CurrencyCode = custTrans.CurrencyCode;                        customerTrans.TransDate = custTrans.TransDate;                        customerTrans.TransType = custTrans.TransType;                        customerTrans.insert();                    }                }            }            super();        }    }}
 
Thanks, 
Rahul

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,162 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans