When a user selects a customer in AR Inquiry, selects Credit History and clicks on "View Archived Statements," a DAM browser session is launched but it always starts at the very first customer that has an archived statement instead of the one selected by the user. I'm able to duplicate this going back to FACTS 7.7 and UnForm 8.0, and up to FACTS 9.0 and UnForm 9.0. FACTS Support has confirmed this is a bug that will be fixed in FACTS 9.0.1.
In the mean time, I'm attempting to find a work around for several of our clients running a mix of 7.7 to 7.9 and UnForm 8.0 and UnForm 9.0.
The issue is that the URL passed to the browser is malformed. Using customer#5008 as an example, the incorrect URL is:
http://:/arc?a=br&lb=AcctsReceivable-01&o=0&l1=Statement&x_st1=5008The results are the same on UnForm 8.0 (port 27282) and 9.0 (port 27292).
On UnForm 8.0, if I manually type in the URL, using "&l2=" instead of "&x_st1", it works as expected and brings up the correct customer.
http://:27282/arc?a=br&lb=AcctsReceivable-01&o=0&l1=Statement&l2=5008.
Unfortunately, the above doesn't work in UnForm 9.0 (port 27292). Presumably this is what is fixed in FACTS 9.0.1.
There is a documented hookpoint to SMC040 that allows manipulating the command passed to UnForm, in x$. FACTS Support has confirmed that the Wiki page for this is up-to-date:
"FACTS Technical Manual" on the Wiki:
infor365.infor.com/wiki_entry_view.aspx (In case that URL breaks, use
http://tinyurl.com/z87d88n as an alternative).
The code I'm using to test:
Program SMC04A:
00010 ARCHIVE_COMMAND:
00015 enter x$
00020 msgbox "Copied to clipboard:"+sep+x$
00030 clip_board write x$
00090 exit
The hookpoint gets hit as expected if I'm trying to call up a specific doc id elsewhere in FACTS (e.g., an archived pick ticket). But the hookpoint isn't getting hit for "View Archived Statements". It seems to me that the difference is due to a partial match being done ("find first statement for customer 5008").
FACTS Support informed me they do not and will not assist in troubleshooting hookpoint issues and that my only option is to reach out to the partner community here. When I pointed out that to troubleshoot this someone would need to step through SMC040 -- a protected program -- I was again told they will not help and to reach out to the partner community. I hope this means that there is some channel partner who does have access to an unprotected version of SMC040. I don't need to see the unprotected SMC040 code, I just need someone to research why the hookpoint is not being executed. It would be great if there was a similar "ARCHIVE_COMMAND" hookpoint I could use for these "partial matches," so if someone can look at the unprotected code and identify a hookpoint, that will help. FACTS Support has assured me the Wiki page is correct but maybe there is an undocumented hookpoint I could use.
To summarize:
1) Has anyone found a work around for this issue -- "View Archived Statements" not going to the selected customer? A 7.9 client was quite upset to learn the fix is in 9.0.1 because they just barely went through the expense of upgrading to 7.9.
2) Does anyone have an unprotected version of SMC040 and can assist since FACTS Support will not and states my only option is to ask for help here?