I'm working on an Interchange loop, which calls a subtransform on a Group, which calls a subtransform on an 835 document.  The TEST button/data returns segments (i.e. no errors), but I can't quite tell if  it's creating a new target with the properly transformed data.  I'd be happy to share the transforms on this thread if anyone would like to see them.  I'd love to know if I'm doing it correctly.

Thank you,

Laura

David, Yes, removing the ISA and GS segments (and corresponding GE and IEA lines) worked.  The test returns results.  That's all I needed to see.  And again, I assume that the actual transform, in the production or whenever I actually run it, won't need this.  Otherwise I'll need a transform before I run my transform.  Ooh - perhaps that's what you meant by a having to call a subtransform.  

Well, I'll keep that  in mind.

Thank you,

laura

Ah, that was the step that was missing -- I had to Serilaize my ListOfDataType object first.  Thank you.

Sorry -- I'm not clear on the difference between %Collection.ListOfDT and %Library.ListOfDataTypes, but seeing as ##class(%Library.ListOfDataTypes).LogicalToDisplay(roles.Serialize(),"|") works... I'm happy.  is it because both objects support it?

Thank you,

Laura

Thank you Eduard.  Looks like a serialized ListOfDataTypes is a $list, not a %ListOfDataTypes. 

This would not work (and is not):

 

TEST>s user=##class(Security.Users).%OpenId("testuser"))

TEST>w user.Roles
2@%Collection.ListOfDT
TEST>do ##class(%ListOfDataTypes).BuildValueArray(user.Roles,.array)
 
<LIST>zBuildValueArray+2^%Library.ListOfDataTypes.1

 

It does not work because the user.Roles is a %ListOfDataTypes, and not a $list.  Is there anything in the %ListOfDataTypes class that I can use to convert this object's Roles property to a nice looking string or array? Or must I first convert it to a $list?  Why isn't there a function to do that for me?

 

Thank you,

Laura

Hi Timothy,

I thought you'd be interested to know that Kevin at InterSystems helped with this issue, and he found that some breakpoints inside javascript code were causing the error.  Just having the breakpoints there caused it -- the code didn't get anywhere near the breakpoints -- so he removed all of the breakpoints, and that worked.  We had to change the debug target ... the Zen application is mapped to another folder, rather than the default of /csp/namespace.

Thanks for your help!

IS was timely and helpful.  Thanks Kevin!

Laura

Ah, ok.  Thanks for all this info.  I did look at ^%ISCLOG, but it was a ton of stuff.  I 'll seeif I can find something relevant, or record only the moment when I'm trying to connect.  The global STARTED at 3K-something and the rest was lost on my terminal. It looked like it was recording everthing from the entire server? Production, everythiing?

Thanks,

Laura

I'll try some things... Yes, the page displays when I remove the ?CSPDEBUG part.

Ah, /namehere/package.home.cls does nto work as a debug target.  I see that /namehere/ (or Samples) is the namespace.  But, this particular combo does not work: URL not found.

I'm not sure how the port would be wrong, since I can open the page as a URL, or with View/Web Page (F5)... as far as I know, the port is c orrect, since I'm using studio in DEV, etc. Is the port a part of the debug target? how does it know ?  Yes, we are running it on IIS on the DEV server.

I'll try the logging thing.

Thanks,

Laura

Hi Timothy,

I've tried many debug targets.  Using csp/NameHere/package.home.cls I get this error when I run it:

 

Caché Server Pages Version 2014.1.3.775.0

Error Condition


Error Condition

CSP application closed the connection before sending a complete response

 

and error #6710 "Could not attach to target" in studio.

 

For some reason, in the pages, we change the "homepage" to /NameHere/package.home.cls.  I wonder if that affects how I can/can't open it in debug mode using /csp/package.home.cls.

 

Thanks,

Laura

 

Oh -- the page displays if I take off the ?CSPDEBUG=1431597865 at the end of its URL...