This topic contains 11 replies, has 0 voices, and was last updated by al3xicon 8 years, 5 months ago.
-
AuthorPosts
-
June 2, 2016 at 3:37 pm #5241
JCiroccoI am trying to create a search to retrieve all line items on a Sales Order with a committed quantity but the customer also wanted the Mainline field Ship Date to be in the results.
On a mainline=No select it appears I cannot get at the Ship Date field (even though the normal Date field does display in the results.
Am I nuts or is this not possible?
I even tried to create a custom Column Field for the sales order that retrieves the “Sales Order Field” Ship Date but it also appears not to be pulling in the Ship Date field.
Does anyone have any thoughts on this (or better yet a potential solution?)?
John
This is a cached copy. Click here to see the original post. -
June 3, 2016 at 7:06 am #5242
al3xiconJohn –
NS recently changed something where returning the “ship date” field would pull in the main line field, EVEN IF the criteria were mainline=no. Since that change, I’ve resolved the issue by creating a new custom body field (“main ship date” or whatever you prefer to call it) and creating a workflow to keep it updated with whatever is entered in the original main line field. Then you should be able to mass update all older transactions if desired, and any searches with mainline=no will still pull in the correct date when returning your new custom field in the results tab.
Alternatively, you could use formulas: don’t specify mainline no OR yes in the criteria, and then in the results tab you can leverage CASE WHEN {mainline} = ‘*’ THEN … ELSE … END. That will work, unless your search already was relying on certain summary group results.
One of these solutions should help.
Alex
-
June 3, 2016 at 7:31 am #5243
JCiroccoAlex, Thanks. Will give it a try. Sorry didn’t see you at the conference.
-
June 3, 2016 at 11:06 am #5244
JCiroccoI forgot to mention that I was trying to use the Ship Date field in a filter to show SO lines needing to be picked.
I added the custom transaction body field (type=Date) and initially populated a few test records. I then went into the Saved Search I created and added the new field in results BUT when I went to add it to the filters tab, it would not allow the Custom Date field to show in the filter region…
-
June 3, 2016 at 11:09 am #5245
al3xiconThat seems odd, normally there’s no problem using a custom date field as a filter.
-
June 3, 2016 at 12:06 pm #5246
dmashburn3Hey Alex,
Sorry I missed you at Suiteworld as well. The whole thing was kind of a whirlwind.
I’m actually in a similar predicament trying to show sales orders total quantity or amount ($) committed while only keeping one line per transaction in the results. (Note: I’m also trying to avoid summary search results due to links being included in the results)
How should I go about using the CASE WHEN statements on {mainline}? I’ve tried multiple variations on the image attached trying to just start with the date field, but nothing seems to work.
I assume I’ll need to convert all of my results to CASE WHEN statements? Can I just write one case when statement in the criteria to remove the orders with nothing committed? (It’s also okay if I don’t necessarily show quantity or amount $ committed.)
Thanks
-
June 3, 2016 at 12:10 pm #5247
al3xiconHey dmashburn3 – I didn’t get any attached image, can you try sending again?
-
June 3, 2016 at 12:14 pm #5248
dmashburn3Sorry about that. Friday afternoon; brain must be slipping.
Also, after typing that I thought about trying the criteria route nesting a CASE WHEN. Something like:
CASE WHEN {mainline} = ‘No” THEN (CASE WHEN {quantitycommitted} > 0 ….
Does this seem feasible?
-
June 3, 2016 at 12:55 pm #5249
dmashburn3Alright, I got some variation of what I was looking for working. I just was confusing the meaning of {mainline} = ‘*’ previously.
However I still would like to find a way to remove the items altogether and roll up the quantity committed into a sum if possible.
-
June 6, 2016 at 7:41 am #5250
al3xicondmashburn3 why don’t you want to use summary grouped results in your search? Seems like that would help you achieve what you want.
-
June 6, 2016 at 11:30 am #5251
dmashburn3When I used summary results, I couldn’t figure out how to get the links to show up to print pick tickets. What summary should I apply to those?
-
June 6, 2016 at 12:23 pm #5252
al3xiconGroup should work just fine for you.
-
AuthorPosts
You must be logged in to reply to this topic.