Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - BuddyRobbins_Linquest

Pages: [1]
1
PCS Frequently Asked Questions / Re: How to get Profile data through OSLC
« on: January 13, 2022, 09:34:40 am »
Got a reply with the Sparx Help Desk.
These things are considered tags, so you just make an OSLC Tag call.
https://xxxx:805/SparxExample/oslc/am/taggedvalues/el_{guid}/authenticationtoken

2
PCS Frequently Asked Questions / How to get Profile data through OSLC
« on: January 07, 2022, 08:29:04 am »
Folks,
I'm trying to pull requirements out of our repository using OSLC.
We're using SysML 1.4 requirements, not the generic Sparx requirements.

My url is https://xxxx:805/SparxExample/oslc/am/resource/el_{45123193-C7CD-4f23-BFF9-AD8B1257451C}/authenticationtoken

I'm getting all the regular data for an element, but I can't get the data defined in the SysML 1.4 profile for requirements (i.e. text, id).
How do I get that stuff?

Thanks

3
PCS Bugs and Issues / Cloud Services HTTP Status Code 507
« on: September 17, 2019, 04:27:41 am »
We're trying to post a project that contains common elements into RAS for other projects to import & use.  When doing the registration, it keeps saying Registration Failed, and the System Output says "Cloud Services: Http status code 507"

Typically 507 is insufficient storage.   We have sufficient disk space, so I was thinking "internal storage".
Since Cloud Services is a 32-bit app, has anyone modified the header with "editbin /largeaddressaware" to gain the "application can handle large (>2GB) addresses" flag?

4
Automation Interface, Add-Ins and Tools / Re: DoBaselineMerge problem
« on: June 18, 2019, 04:52:53 am »
OK, I found it.
Even though the documentation describes the MergeInstructions parameter as the file containing the GUID... in reality, there is no file. Just a string that contains the <Merge><MergeItem guid="{XXXXX}"/></Merge>
All that FileSystemObject junk I did to persist the instructions to a file & read it back in was wrong.

5
Automation Interface, Add-Ins and Tools / DoBaselineMerge problem
« on: June 18, 2019, 04:08:40 am »
I'm trying to call DoBaselineMerge, through a script. Following the instructions, I get the results from DoBaselineCompare, and get the Guids from the items I want to bring up from the baseline.  I generate a string that looks like this:
    <Merge>
        <MergeItem guid="{CCADD68E-468A-49fc-B6CD-E02D52CDA90A}"/>
        <MergeItem guid="{0260F1EA-F8A2-4ce4-B7D4-30653D0CF013}"/>
    </Merge>


I save the string to a file, using FileSystemObject.  When I call DoBaselineMerge, I get an error message: Invalid at the top level of the document.
I tried adding a <?xml version="1.0" encoding="UTF-8"?> to the beginning of the string before I save it, but no joy.

What am I missing?
Thanks in advance,
-Buddy

6
I had to create a custom UI for Sparx.  The recommended method is to use an ActiveX control and call the Repository.AddTab() method.
I am limited because adding new software, to include ActiveX controls, is strictly forbidden.
I decided to use a previously installed web-browser control, and populated the document with my web-page UI.

Since the scripting doesn't handle event-handlers, I decided to fire another script to extract the data from the tab/web-browser/web page.
The problem is, while I can call Repository.IsTabActive() or Repository.ActivateTab(), I can't find the call that will return the tab, or specifically, the activeX web browser control.

Any ideas out there?

Thanks in advance,
-Buddy Robbins

7
The glossary data is stored n the t_glossary table, the primary key being GlossaryID, which is an identity column.
Since there are three fields (Term, Type, Meaning) it would be presumptuous of the application assume how you want it ordered.
The api is probably using the GlossaryID (order in which you entered it), if not it'll be a crap-shoot on how your DBMS returns it-- order is not guarenteed.

If ordering is important to you and you're using jscript, just populate an array and sort it using your desired sort function.
 

8
General Board / Use Encryption for Data
« on: January 08, 2019, 07:12:14 am »
Folks,
I'm trying to set the "Use Encryption for Data" on the SQL Server OLEDB Link Data screen in version 14. 
I'm getting handshake issues-- [DBNETLIB][ConnectionOpen(SECDoClientHandshake()).]SSL_Security error.

Doing this outside of the Sparx Environment, I'm used to setting the flag for trusting the server certificate to overcome this error.

How do I do this in the Connection string?

Thanks in advance

9
Looking through the Forums, I found a reference to the existence of "An non-official API can pop up the properties"

Could someone elaborate on that?

Thanks,
-Buddy Robbins

10
Suggestions and Requests / Add #WC# to SQL parser for «Chart» custom SQL
« on: November 13, 2018, 04:16:37 am »
I guess the title says it all.

We work in a SQL Server database, and deliver product to customers in an EAP file.
We'd like our dashboards to carry over, and using a LIKE in the SQL breaks them.

11
Thanks,  That did the trick.

12
Folks,
I'm using the ProCloud server to retrieve a diagram image.  I'm getting the byte-array in the xml for the image, but I'm unable to turn that image into a picture.  What's the trick?

XmlNode node = document.SelectSingleNode("//rdf:RDF/ss:features/ss:diagramimage/rdf:Description/ss:image", nsmgr);
if( node != null)
{
   string rawData = node.InnerText;
   rawData = rawData.Replace("\r\n", "");
   System.Text.UTF8Encoding encoder = new System.Text.UTF8Encoding();
   byte[] byteArray = encoder.GetBytes(rawData.ToCharArray());
   System.IO.File.WriteAllBytes(@"c:\budTemp\mypic.jpg", byteArray);
}

Pages: [1]