- Posts: 109
Add a line of data triggered by input data…
- JD Cox
- Topic Author
- Offline
- User
Less
More
9 years 3 months ago #2410
by JD Cox
Add a line of data triggered by input data… was created by JD Cox
When our customer’s, customer purchases product B our customer would like to add product Z to the order. I’ve done this for others in the past with VBA in our WMS. But, there’s always a risk of duplication when the order gets moved around. I feel the safest way is to add product Z during the import. Any suggestions, much thanks in advance.
JD
JD
Please Log in or Create an account to join the conversation.
- FlowHeater-Team
- Offline
- Admin
9 years 3 months ago #2411
by FlowHeater-Team
Best wishes
Robert Stark
Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
Replied by FlowHeater-Team on topic Add a line of data triggered by input data…
Hi JD,
It´s possible but a bit tricky. I´ve attached a short example.
With an IF-THEN-ELSE condition you decide with product is currently proceeded. In case of product “B” you have to duplicate the CSV record X times by using the GroupOut Heater . In your case you need just one copy of them. This is done with the Input parameter form the two X-Value Heaters . 0=no copy needed, 1=make one copy. Note: 2=make two copies …
Afterwards you need for each field you would like to have other content another IF-THEN-ELSE condition to decide which content should be adopt on the WRITE side. For this condition you need the AutoID Heater with enabled GroupOut option. With this you can build a condition like if AutoID = 2 use Product Z other use the original content.
Sounds hard but I guess with the example it should be clear and easy to handle.
It´s possible but a bit tricky. I´ve attached a short example.
With an IF-THEN-ELSE condition you decide with product is currently proceeded. In case of product “B” you have to duplicate the CSV record X times by using the GroupOut Heater . In your case you need just one copy of them. This is done with the Input parameter form the two X-Value Heaters . 0=no copy needed, 1=make one copy. Note: 2=make two copies …
Afterwards you need for each field you would like to have other content another IF-THEN-ELSE condition to decide which content should be adopt on the WRITE side. For this condition you need the AutoID Heater with enabled GroupOut option. With this you can build a condition like if AutoID = 2 use Product Z other use the original content.
Sounds hard but I guess with the example it should be clear and easy to handle.
Best wishes
Robert Stark
Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
Attachments:
Please Log in or Create an account to join the conversation.
- JD Cox
- Topic Author
- Offline
- User
Less
More
- Posts: 109
9 years 3 months ago #2412
by JD Cox
Replied by JD Cox on topic Add a line of data triggered by input data…
You guys rock
Thanks FlowHeater-Team…thanks for the easy to follow instructions and example.
As always Robert, very helpful I will find other uses for this as well.
Thanks Again, JD
Thanks FlowHeater-Team…thanks for the easy to follow instructions and example.
As always Robert, very helpful I will find other uses for this as well.
Thanks Again, JD
Please Log in or Create an account to join the conversation.
- JD Cox
- Topic Author
- Offline
- User
Less
More
- Posts: 109
9 years 2 months ago #2440
by JD Cox
Replied by JD Cox on topic Add a line of data triggered by input data…
Hey guys I’m still struggling with this. It’s overwriting one of the line items on the first order and adding the new item. In your example (zip) change the second line item “B” to “C”, run the def as it is and it will change the “C” to “Z”. We were forced to reship a couple orders, on our dime, until I was able to identify the problem. They’re manually entering the additional item where needed for now.
Please Log in or Create an account to join the conversation.
- FlowHeater-Team
- Offline
- Admin
9 years 2 months ago #2445
by FlowHeater-Team
Best wishes
Robert Stark
Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
Replied by FlowHeater-Team on topic Add a line of data triggered by input data…
Hi JD,
On my side the output is like expected. I guess you use an old Version? Please try it with the latest Version.
On my side the output is like expected. I guess you use an old Version? Please try it with the latest Version.
Best wishes
Robert Stark
Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
Please Log in or Create an account to join the conversation.
- JD Cox
- Topic Author
- Offline
- User
Less
More
- Posts: 109
9 years 2 months ago #2462
by JD Cox
Replied by JD Cox on topic Add a line of data triggered by input data…
After updating and making a couple adjustments this works like a charm…thanks again Robert.
Please Log in or Create an account to join the conversation.
Time to create page: 0.306 seconds