Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to return the prompt message in JavaScript

Shulou Source: shulou.com Published: 2022-06-01 23:39:44 09月27日 Update

This article mainly explains "how to realize the return hint in JavaScript". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to realize the return hint in JavaScript".

[server] in the output method block, add the field to be output (qcm_batch_id)

QCMUserType.cs:

Public struct QCM_Custom_Create_Batch_Out_Tag {public BASCoreType.Cmn_Out_Tag _ cmn_out; public string qcm_batch_id; public int batch_count; public int _ size_batch_list; public QCM_Custom_Create_Batch_Out_Tag_batch_list [] batch_list } public static void serialize_QCM_Custom_Create_Batch_Out_Tag (ref MessageReply reply, ref QCM_Custom_Create_Batch_Out_Tag sourceType) {BASCoreType.serialize_Cmn_Out_Tag (ref reply, ref sourceType._cmn_out); reply.ReplyNode.AddInt ("batch_count" .ToUpper (), sourceType.batch_count) Reply.ReplyNode.AddInt ("_ size_batch_list" .ToUpper (), sourceType._size_batch_list); reply.ReplyNode.AddString ("qcm_batch_id" .ToUpper (), sourceType.qcm_batch_id); TRSNode batch_list; for (int I = 0; I < sourceType._size_batch_list) Batch_list +) {batch_list = reply.ReplyNode.AddNode ("batch_list" .ToUpper (); QCMUserType.serialize_QCM_Custom_Create_Batch_Out_Tag_batch_list (ref batch_list, ref sourceType.batch_ list [I]);}}

Set to the value you want to output in the data layer:

OutTag.qcm_batch_id = sBatchId

[client] get the value on the client and pop up the prompt box:

CommonFunction.ShowMsgBox (out_node.GetString ("QCM_BATCH_ID") + "created successfully!")

=

Tip: whether to turn off xxx

Private void btnClose_ItemClick (object sender, DevExpress.XtraBars.ItemClickEventArgs e) {try {if (CommonFunction.ShowMsgBox ("do you want to close this inspection batch?" , MessageBoxButtons.OKCancel, 1) = DialogResult.OK) {GlobalVariable.gaSelectPOID.Clear (); int [] iaPOs = gdvDetail.GetSelectedRows (); if (iaPOs.Length < 1) {CommonFunction.ShowMsgBox ("Please select one or more parameters") / / ToDo: Multi-Language return;} int [] iaRAWID = new int [iaPOs.Length]; / / + 2 string sBatchID = ""; / / string sFinalDecision = ""; for (int I = 0; I < iaPOs.Length SBatchID +) {sBatchID = gdvDetail.GetRowCellValue (iaPOs [I], "BATCH_ID"). ToString (); / / sFinalDecision = gdvDetail.GetRowCellValue (iaPOs [I], "FINAL_DECISION"). ToString ();} / / saPARA_ ID [iaPOs.length] = cboModelVer.EditValue.ToString () / / saPARA_ ID [iaPOs.Length + 1] = "EVENT"; TRSNode in_node = new TRSNode ("CREATE_BATCH_IN"); TRSNode out_node = new TRSNode ("CMN_OUT"); if (sBatchID! = "") {CommonRoutine.SetInMsg (in_node) In_node.ProcStep = '1century; in_node.AddString ("BATCH_ID", CommonFunction.Trim (sBatchID)); if (CommonRoutine.CallService ("QCM", "QCM_Custom_Final_Decision", in_node, ref out_node) = = false) {return } CommonRoutine.ShowSuccessMsg (out_node); BindGV (); return;} else {CommonFunction.ShowMsgBox ("BatchID cannot be empty!") ;} catch (Exception ex) {CommonFunction.ShowMsgBox ("frmAPSReleaseWO.btnSelect_Click ()\ n" + ex.Message) }} Thank you for your reading, the above is the content of "how to achieve the return prompt in JavaScript". After the study of this article, I believe you have a deeper understanding of how to achieve the return prompt in JavaScript, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Tips information learning output content customer client success parameters multiple fields that is ideas situations data articles methods more knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Xiaomi Redmi Shulou Tech Info Linux