I'm resonding to your comment " I think this is documented "; I found the below link int he documentation, but an entire section in the documentation was copied and pasted, incorrectly.
but I can't quite figure out what it was supposed to be. In fact, inthe next step, Creating An Array of Groups, the steps above don't work anyway.
This is basically what I was doing with my Interchange loop, which calls the Group loop, which calls the subtransform. The interchange transform runs, but I end up with the ISA line and the IEA line, and nothing else in between. Not quite true: I end up with a reference to a GroupDocsRef in between. My output file has just two lines however.
Anyone else have an idea? Any examples of an Ensemble 835 DTL transform at a transaction level that I somehow missed on the web?
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.
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.
Thanks David, I'll take a look. I'm on 2014. How will that affect the running production? I assume the test scenario is a bit different than the actual production, where I'll have many files, all from the ISA to the IEA, naturally. But the fact that the test wasn't working threw me a bit.
Oh! Yes, that is working. I had a recursive compile error that I had to fix first (two classes were dependent on each other.. caused a 2-hour delay), and then I had to fix a little logic error in my code.
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?
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?
$list and %ListOfDataTypes are different concepts: agreed. but why does (%Library.ListOfDataTypes).BuildValueArray use $listnext then (and not work)?? LogicalToDisplay() also does not work -- for me. When I use it on a LostOfDataTypes object.
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.
Excellent, I will do that. I'm sure I'll want to be able to run through the debugger at some point. I was able to fix my bug, actually (it was an easy fix), but I do love a good debugger.
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?
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'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...
Ah, I was wondering about that XML view in the Production class. I did see the Documentation -- thanks -- but the end users would like something ... less spread out. Also, I'm trying to get my head around it as well, so that makes it hard to define this task. Thanks.
Hi Kenneth, Yes, we have a large looking Production that I'm trying to untangle. I'm tasked with a simple view of the input folders, output folders, and number of records processed, on which servers.; more simple than the production monitor view. Thanks.
go to post
Hi David,
I'm resonding to your comment " I think this is documented "; I found the below link int he documentation, but an entire section in the documentation was copied and pasted, incorrectly.
http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...
This part doesn't make sense:
"Create a new Data Transformation (emphasis added because the below instructions are for creating an array of groups which is the next step)
Create a new set action by clicking Add Action and selecting set.
Input a variable name into the Property field, such as ArrayOfGroups.
Input ##class(%Library.VariableName).%New() into the Value field, where VariableName is the value you provided in the Property field.
Input "" into the Key field."
but I can't quite figure out what it was supposed to be. In fact, inthe next step, Creating An Array of Groups, the steps above don't work anyway.
This is basically what I was doing with my Interchange loop, which calls the Group loop, which calls the subtransform. The interchange transform runs, but I end up with the ISA line and the IEA line, and nothing else in between. Not quite true: I end up with a reference to a GroupDocsRef in between. My output file has just two lines however.
Anyone else have an idea? Any examples of an Ensemble 835 DTL transform at a transaction level that I somehow missed on the web?
Thanks,
Laura
go to post
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
go to post
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
go to post
Thanks David, I'll take a look. I'm on 2014. How will that affect the running production? I assume the test scenario is a bit different than the actual production, where I'll have many files, all from the ISA to the IEA, naturally. But the fact that the test wasn't working threw me a bit.
Thanks,
Laura
go to post
go to post
Oh! Yes, that is working. I had a recursive compile error that I had to fix first (two classes were dependent on each other.. caused a 2-hour delay), and then I had to fix a little logic error in my code.
That radioSet looks quite useful.
Thank you,
Laura
go to post
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
go to post
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
go to post
$list and %ListOfDataTypes are different concepts: agreed. but why does (%Library.ListOfDataTypes).BuildValueArray use $listnext then (and not work)?? LogicalToDisplay() also does not work -- for me. When I use it on a LostOfDataTypes object.
What am I doing wrong?
Thanks,
Laura
go to post
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
go to post
Excellent, I will do that. I'm sure I'll want to be able to run through the debugger at some point. I was able to fix my bug, actually (it was an easy fix), but I do love a good debugger.
Thanks for all the help.
Laura
go to post
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
go to post
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
go to post
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...
go to post
I'll start in the XML block - thank you. I have to start somewhere.
go to post
Hi Attila, OK, how about the Services, Processes, and Operations items. Are they in tables? Thanks.
go to post
Ah, I was wondering about that XML view in the Production class. I did see the Documentation -- thanks -- but the end users would like something ... less spread out. Also, I'm trying to get my head around it as well, so that makes it hard to define this task. Thanks.
go to post
Hi Kenneth, Yes, we have a large looking Production that I'm trying to untangle. I'm tasked with a simple view of the input folders, output folders, and number of records processed, on which servers.; more simple than the production monitor view. Thanks.