插入多个零件问题 [英] Insert Multiple Parts Problem

查看:92
本文介绍了插入多个零件问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有人,


最近我在我的表单中为一个名为serial的部分插入了多个字段。那么现在我试图插入多个字段,不仅是连续部分,还有部分部分,我似乎遇到了麻烦。


当我尝试插入零件部分时我得到错误铸造规范的无效字符值。但不确定我做错了什么。这是我用来插入的内容。以下所有部分的工作除外。将部件信息插入部件表部分。

Hey Everyone,

Well recently i been inserting multiple fields for a section in my form called "serial". Well now i am trying to insert multiple fields for the not only the serial section but also the parts section an i seem to be having trouble.

When i try to insert into the parts section i get the error Invalid character value for cast specification. But not sure what i am doing wrong. Here is what i am using to insert. All the sections below work except the.Inserts parts information into parts table section.

展开 | 选择 | Wrap | 行号

推荐答案

由于每个序列可以有多个部件,因此需要使用每个序列中的部件计数来循环(就像你使用序列计数一样)来为每个序列添加部件。
Since you can have multiple parts per serial, you need to use the part-counts in each serial to loop over (as you''ve done with serial-count) to add parts to each serial.



由于每个序列可以有多个部件,因此需要使用每个序列中的部件计数来循环(就像你做的那样) ne with serial-count)为每个序列添加部件。
Since you can have multiple parts per serial, you need to use the part-counts in each serial to loop over (as you''ve done with serial-count) to add parts to each serial.



Hey Acoder,


这样的工作会怎么样?


用于序列和描述


Hey Acoder,

So would something like this work?

used for serial and description

展开 | 选择 | Wrap | 行号


这不一定有效,因为零件有多个计数,所以你会需要为每个序列计算每个部件的数量和循环次数。
That wouldn''t necessarily work because there are multiple counts for parts, so you would need to get each parts count and loop over that number of times for each serial.


这篇关于插入多个零件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆