on 2018 Jan 07 7:33 AM
Dear CCO Experts,
I have developed a new form in CCO. I want to add an input field for Article selection.
Is it possible to create a field for Items selection with the same behaviour like the field existing in Standard sales form.
Thanks in advance for your help !
Request clarification before answering.
Hi Mohamed,
you can create a field, which is similar to the one on the sales screen. But this is a custom form, which comes from the plugin. This means, that you also have to develop the functionality behind that field in the plugin. If you want a field, which takes a barcode, searches for a material and adds this material to a grid, you have to create the frontend and backend parts. There are no reuse components for custom forms from our side. The best way to achieve this is to look in the code of the salesWS.js. This is the main JavaScript code for the sales screen. You can use your browsers developer console to get an understanding how the input field on the sales screen works.
Best regards
Marco Becker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Marco for your helpful reply.
Since we can not reuse CCO Components. I will use the main Sales Form cause my requirement is to send purchase request to B1. I will add one more option to the Receipt Type Select Box for Purchase Request. Than I will catch the OK Button event and check the Receipt Type Selected option.if Direct Sale is selected than Sales Receipt will be posted Else My Plugin will send a purchase request to B1.
Please Let me know if this solution is workable.
Kind Regards,
Mohamed.
Hi Mohamed,
this will work. You can either wrap the original method, which is called, when the OK button is pressed. Or you hide the original OK button and place a custom button there instead. Then you can call one of your functions, or (if "Direct Sales" is selected) you can trigger a click on the original OK button in your code.
Best regards
Marco
User | Count |
---|---|
13 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.