Hi everyone!
This is my first post here!
I'm a total newbie in C# and infopath in general. I've a lot of experience in MATLAB programming as is my main tool for work.
However, I'm doing some quotation forms for my company and need some help. I've research and haven't found anything that helps me with this issue.
I need to make a form for sound systems and light automation quotations, and this is done in excel so far, but i want to minimize the human error involved in it. This quotations are made by "zones" (living room, main bedroom, kitchen, backyard, etc), and each zone has some items (amplifier, controller, keypad, speakers, etc), so according to the needs of the zone, the items quantity and the items themself vary. I've an access database with all the products that we work with (brand, series, reference, dealer price, selling price, weight, link to an image of the product).
The idea is to add a repeating section that would be the zones and inside of that, I need a repeating table for the items. For example:
Bedroom
Speakers
Amplifier
Source
Backyard
Speakers
Amplifier
Remote Control
Source
Because I've read that passing arguments between infopath is kind of complicated, so I designed a query database form that searches the item you're looking form and gives you the ID of it. So, the idea is that in this quotation form, I could input the ID of the item , press a button and then it will add it to the item section of the active zone. I also tried including the ID query inside the repeating table, but it tells me that the item won't repeating itself, and guess what? it doesn't = S. It gives me the same result as the button approach, if I add a new row and modify the ID query of the new row, it just delete the new row and replace the first one with the ID I want. Same thing happens with the button approach (the ID query and "add item" button outside the repeating table.
I don't know what extra info you need in order to help me, maybe the infopath forms files?
Thanks in advance from Colombia!
ASM
PD: I've tried some of the code given in this forum, but haven't had any luck at all. Usually tells me that "XDocument" does not have this or that method, etc. I've also tried replacing XDocument with this or thisXDocument and no luck.