Creating Diagram and model file programmatically
Hi,
Am trying to create the Diagram and model file programmatically.
I used the code similar to what is there in XXDiagramEditorUtil.createDiagram().
In the normal case (when i have an empty domain ie nothing is set into the domain object), the diagram and the domain file gets created and works fine.
Assume my model is of type XX, and that has a list of YY.
i create YY and set it inside XX.
Now when i create the domain file, the <YY> is set correctly inside <XX>.
But in the diagram file, i dont see the <children/> tags corresponding to the YY.
How would the appropriate <children/> tags be generated ?
i tried diagram.createChild(yy.eClass()), but the diagram file does not get generated.
Pls help.
AbstractTransactionalCommand command = new AbstractTransactionalCommand(editingDomain,
Messages.XXXDiagramEditorUtil_CreateDiagramCommandLabel,
Collections.EMPTY_LIST) {
protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
XXX model = createInitialModel();
YYY yyy = XXXFactory.eINSTANCE.createYYY();
yyy.setAttribute1("2");
yyy.setAttribute2("name");
model.getYYYs().add(yyy);
attachModelToResource(model, modelResource);
Diagram diagram = ViewService.createDiagram(model, XXXEditPart.MODEL_ID,XXXEditorPlugin.DIAGRAM_PREFERENCES_HINT);
if (diagram != null) {
diagramResource.getContents().add(diagram);
diagram.setName(diagramName);
diagram.setElement(model);
//diagram.createChild(yyy.eClass());
//diagram.insertChild(arg0);
try {
modelResource.save(.getSaveOptions());
diagramResource.save(getSaveOptions());
} catch (IOException e) {
return CommandResult.newOKCommandResult();
Hi ganesh,
you have two options to get it working.
The first one is using a CanonicalEditPolicy, which creates all Nodes and Edges for you based on your semantic model. This is easy to implement, but it has some drawbacks. Your editor will get dirty after opening it, because your Notation Model is changes and no layout information is available.
The better way is to create Nodes and Edges for each semantic element you created.
For your code snippet it might look like this:
XXX model = createInitialModel();
YYY yyy = XXXFactory.eINSTANCE.createYYY();
yyy.setAttribute1("2");
yyy.setAttribute2("name");
model.getYYYs().add(yyy);
attachModelToResource(model, modelResource);
Diagram diagram = ViewService.createDiagram(model, XXXEditPart.MODEL_ID,XXXEditorPlugin.DIAGRAM_PREFERENCES_HINT);
Node yyyView = ViewService.createNode(diagram, yyy, SemanticHints.YYY,
,XXXEditorPlugin.DIAGRAM_PREFERENCES_HINT);
//Set some layout information assuming you use a XYLayout
Bounds bounds = NotationFactory.eINSTANCE.createBounds();
bounds.setX(70);
bounds.setY(20);
yyyView.setLayoutConstraint(bounds);
Regards,
Andreas
Similar Messages
-
How to create parameter and control file like filename + date
Hello there
I am trying to create parameter and control file with following command
in SQLPLUS
create pfile='/u03/oradata/WEBDB/backup/initWEBDB.ora' from spfile;
In RMAN
copy current controlfile to '/u03/oradata/WEBDB/backup/cf_longterm.cpy';
how can I put date at the end of filename like
initWEBDB8jan06.ora and cf_longterm8jan06.cpy
Thanks in advance
LionelASM is reliable but a smart DBA is very careful. If ASM is doing mirroring this is like RAID doing mirroring. What happens if you accidentally delete one copy ... the other one disappears instantly. Not a good idea.
With respect to redo logs you need a minimum of three groups, two members, and one thread per instance. So a 2 node cluster should, at a minimum have 12 physical files.
Not mirroring the redo logs, assuming multiple members, is not as critical. -
Creating Folder and Accessing Files from Folders in mobile phone
Hello Friends,
I am doing my project where I need to create folders and accessing files from those folders in java enabled mobile phones.But I do not know the required tasks for this.Any type of help is highly appreciated.
Greeting
SaadiYou have to get the classname of the Items you receive from getitems.
There you have only to look for Folder.CLASS_NAME. Example:
ifsFol sorted by names in ascending order (names of folders and files)
String[] sort_attributes = {"NAME"};
//sort will be ascending
boolean [] sort_orders = {true};
oracle.ifs.common.SortSpecification sort = new oracle.ifs.common.SortSpecification(sort_attributes, sort_orders);
ifsFol.setSortSpecification(sort);
PublicObject[] contents = ifsFol.getItems();
System.out.println("Here are the names of the items in folder: ");
for (int i=0; i < contents.length; i++) {
if (contents.getClassname().equals(Folder.CLASS_NAME)) {
System.out.println(contents[i].getName());
null -
I would really find a draw application "iDraw" maybe, very useful to create diagrams and overlays on photographs. Is Apple likely to add a module to ilife or iWorks? Failing that, can anyone suggest a freeware, or shareware app? I recall an app some years ago,Studio8 ? It would be really useful for work and home use. regards,alan b
Describe exactlhy what you want to do with photos? There are some apps, like Pages, that can add text and graphics over photos. Describe what you are wanting to do or post an example from somewhere else and we may be able to suggest an app.
OT -
I am working on JSR 172,
I have created a server code, installed Tomcat and Axis.
Now i want to convert my .java file to .wsdd and .wsdl file the below command are not working plese help.
java -classpath lib\axis.jar;lib\saaj.jar;lib\jaxrpc.jar;lib\commons-logging-1.0.4.jar; lib\commons-discovery-0.2.jar;lib\wsdl4j-1.5.1.jar;build\classes\.;org.apache.axis.wsdl.Java2WSDL -y DOCUMENT -u LITERAL -l http://localhost:8080/axis/services/ScoreService tutorial.ScoreInterface
and this produces the below erroe
Unrecognized option: -y
Could not create the Java virtual machine.
Thanks in advance.Hi ganesh,
you have two options to get it working.
The first one is using a CanonicalEditPolicy, which creates all Nodes and Edges for you based on your semantic model. This is easy to implement, but it has some drawbacks. Your editor will get dirty after opening it, because your Notation Model is changes and no layout information is available.
The better way is to create Nodes and Edges for each semantic element you created.
For your code snippet it might look like this:
XXX model = createInitialModel();
YYY yyy = XXXFactory.eINSTANCE.createYYY();
yyy.setAttribute1("2");
yyy.setAttribute2("name");
model.getYYYs().add(yyy);
attachModelToResource(model, modelResource);
Diagram diagram = ViewService.createDiagram(model, XXXEditPart.MODEL_ID,XXXEditorPlugin.DIAGRAM_PREFERENCES_HINT);
Node yyyView = ViewService.createNode(diagram, yyy, SemanticHints.YYY,
,XXXEditorPlugin.DIAGRAM_PREFERENCES_HINT);
//Set some layout information assuming you use a XYLayout
Bounds bounds = NotationFactory.eINSTANCE.createBounds();
bounds.setX(70);
bounds.setY(20);
yyyView.setLayoutConstraint(bounds);
Regards,
Andreas -
How to create a New Excel File programmatically
Hi !
I am documenting acquired data continuously in an excel file, what I need to do is to create a new excel file automatically when the size of the previous file exceeds a certain limit lets say 1MB.
I have tried using the simple 'Create/Open File' function and the 'Write to Spreadsheet File' function to create the new excel file. I does create a file but when I open the file it says the format of the file is not what you have opened it with.
Also when the new file is created, three new worksheet are to be added programmatically with pre-defined worksheet name and also Column headers for each of the worksheet are to be added.
I am also using 'Labview Report Generation Toolkit for Office'.
Regards,
Reeves
Solved!
Go to Solution.@ Aldo A
Thanks for the reference to tutorial, I didn't know about them. They are useful in general but unfortunately they don't answer the problem of creating an altogether new excel file programmatically.
@ ben64
The template thing simplifies the issue of formatting the new file. But I am still working on the new excel file creation challenge.
Let me put my problem in a different way.
Certain data is being acquired continually and is being written to a certain excel file, when the size of the file exceeds lets say 1MB the program should start saving the data in a NEW FILE instead of the previous file.
I have attached the VI to explain what I am trying to achieve here.
Reeves
Attachments:
New Microsoft Office Excel Worksheet.zip 30 KB -
How to create redlog and control file at ASM in linux RAC
Hi Experts,
I will to maintance a oracle 10g database at ASM as RAC iin linux red hat.
i am a new person with some question.
nornally speaking, oracle recommadition for oracle 10g database as
create 3 copy fills for control file
create at least 2 redo log with mirror files in system.
However, I checked find
redlog file is at FRA place +FLSdisk1 and no mirror
control file is at FRA place--+FLSDISK1/
datebase file at ‘+DATA1/
There are no mirror for relog.
Go to EM, I also could not find place to enter file name.
We use ASM to hold database to support RAC.
Do i need to create redlog file as
ALTER DATABASE ADD LOGFILE GROUP 1 ('+FLSdisk1/sale/onlinelog/REDO01.LOG','+FLSdisk1/sale/onlinelog/REDO01_mirror.LOG') SIZE 1000M reuse;
my boss told me that ASM is reliable.
Do you need to creat more directory to arrange redlog and control files in ASM for RAC system?
FRA is a good place to store control file and redlog file ?
Thanks
JIM
Edited by: user589812 on Jul 3, 2009 3:03 PMASM is reliable but a smart DBA is very careful. If ASM is doing mirroring this is like RAID doing mirroring. What happens if you accidentally delete one copy ... the other one disappears instantly. Not a good idea.
With respect to redo logs you need a minimum of three groups, two members, and one thread per instance. So a 2 node cluster should, at a minimum have 12 physical files.
Not mirroring the redo logs, assuming multiple members, is not as critical. -
Creating data and .par files using SWIFT Integration Package
Hi,
I have a requirement to generate a data and .par file using SAP PI Integration package for SWIFT.
I am following the SAP Note: 1303428.
I have created 1 sender and 2 receiver comm channels(one for payload and other for par). Used operation mapping SWIFT_payload_parFile_split in the Interface determination.
I am using the adapter module : localejbs/swift/FileActConversionToSWIFTModule and setting the parameter DetachParameters to true. This adapter module is being used in all the three channels(1 sender and 2 receivers).
I have used ASMA ans has set the FileName checkbox.
Now after placing the file in the input directory, the file with the same name gets created in the output directory but the file is exactly same and also no .par file is getting created. I have set the Empty file handling to Ignore, so it shows that there is no data to create a .par file and only payload file is getting created but the payload file is exactly same.
Also if I use the adapter module : localejbs/swift/FileActConversionToSWIFTModule in only the sender communication channel, a payload file gets created like below.
<?xml version="1.0" encoding="UTF-8"?>
-<ns1:SWIFT_payload xmlns:ns1="http://sap.com/xi/SWIFT"><payload>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPEZpbGU+CiA8UGFyYW1ldGVycyB4bWxucz0idXJuOnN3aWZ0OnNhZzp4c2Q6ZnRhLnBhcmFtLjEuMCIgeG1sbnM6eHNpPSJodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSI+CiAgPE92ZXJyaWRlcz4KICAgPFJlc3BvbmRlcj5jbj1jZngsb3U9bmEsbz1jaXRpZ2IybCxvPXN3aWZ0PC9SZXNwb25kZXI+CiAgIDxTZXJ2aWNlPnN3aWZ0LmNvcnAuZmEhcDwvU2VydmljZT4KICAgPFJlcXVlc3RUeXBlPnBhaW4uMDAxLjAwMS4wMzwvUmVxdWVzdFR5cGU+CiAgIDxUcmFuc2ZlckRlc2NyaXB0aW9uPkIwNDExMC1CYXRjaDE3ODc8L1RyYW5zZmVyRGVzY3JpcHRpb24+CiAgIDxUcmFuc2ZlckluZm8+QjA0MTEwLUJhdGNoMTc4NzwvVHJhbnNmZXJJbmZvPgogICA8RmlsZURlc2NyaXB0aW9uPjIwNzY4PC9GaWxlRGVzY3JpcHRpb24+CiAgIDxGaWxlSW5mbz5Td0NvbXByZXNzaW9uPW5vbmU8L0ZpbGVJbmZvPgogICA8Tm9uUmVwdWRpYX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Q+CiAgICAgICAgPE1tYklkPjAwMzwvTW1iSWQ+CiAgICAgICA8L0NsclN5c01tYklkPgogICAgICAgPE5tPkFCTiBBbXJvPC9ObT4KICAgICAgIDxQc3RsQWRyPgogICAgICAgIDxDdHJ5Pk5MPC9DdHJ5PgogICAgICAgPC9Qc3RsQWRyPgogICAgICA8L0Zpbkluc3RuSWQ+CiAgICAgPC9DZHRyQWd0PgogICAgIDxDZHRyPgogICAgICA8Tm0+QUxYTiBOTCBEb21lc3RpYyBWZW5kb3I8L05tPgogICAgICA8UHN0bEFkcj4KICAgICAgIDxDdHJ5Pk5MPC9DdHJ5PgogICAgICA8L1BzdGxBZHI+CiAgICAgIDxJZD4KICAgICAgIDxPcmdJZD4KICAgICAgICA8T3Rocj4KICAgICAgICAgPElkPjAwMTUwMDAxOTc8L0lkPgogICAgICAgIDwvT3Rocj4KICAgICAgIDwvT3JnSWQ+CiAgICAgIDwvSWQ+CiAgICAgPC9DZHRyPgogICAgIDxDZHRyQWNjdD4KICAgICAgPElkPgogICAgICAgPElCQU4+TkwxMjAwMzA0NTY3ODkxMjAwMDA8L0lCQU4+CiAgICAgIDwvSWQ+CiAgICAgIDxDY3k+RVVSPC9DY3k+CiAgICAgIDxObT5BTFhOIE5MIERvbWVzdGljIFZlbmRvcjwvTm0+CiAgICAgPC9DZHRyQWNjdD4KICAgICA8Um10SW5mPgogICAgICA8VXN0cmQ+L1BNREQvVEVTVDY4MSw1OTAuMDAsRVVSLDIwMTQwMzI8L1VzdHJkPgogICAgIDwvUm10SW5mPgogICAgPC9DZHRUcmZUeEluZj4KICAgPC9QbXRJbmY+CiAgPC9Dc3RtckNkdFRyZkluaXRuPgogPC9Eb2N1bWVudD4KPC9GaWxlPgo=</payload></ns1:SWIFT_payload>
But while creating the par file, it shows that the file could not be overwritten and so the .par file is not getting created.
I need to understand that:
1) How do I configure both of my receiver channels i.e. what should be the difference. Currently, I am just setting the
same Output directory in both and file name schema * and has used ASMA with FileName parameter. So same name files are getting created and so one file gets discarded. How to create a .par file.
2) Also Is the file above is the correct file required by SWIFT.
3) Also when I check in SXMB_MONI, I can see that after running the adapter module same payload as given above is going in both payload and par files i.e. also if I am using different names in my receiver communication channels two files are getting created payload and par both are having the same payload. So what exactly should get created.
Kindly guide on this implementation.Hi,
I am able to generate the .par file by setting the localsecurity to true and the KeyId from the key manager.
Now two files are getting created .xml and .par. .xml file which is the payload file is the same as the input file with no difference and contains both the overrides and the data parameters. The .par file contains the Algorithm and the Value.
Is this correct?
Also suppose the input file name is SEPA.xml, then the payload file is created with the name as
SEPA.xml and the par file is created with the name SEPA.xml.par. I need only SEPA.par. How to achieve this. -
Need to create PDF and Spreadsheet file from RDF file when user passes the parameters
Hi Everyone,
I am beginner as report developer ,i came across one issue when the requirement came from the client regarding generating EXCEL FILE and PDF FILE from same RDF file .
I was able to generate the PDF file but i when i tried to create excel file it does not include the margin in it, also the cell border are not seen( file comes with data but with no CELL borders), I have also attached screenshot for reference .
View image: problem
or
http://i43.tinypic.com/2mq017k.jpg
Software Used :
Oracle reports Developer : 11g 1.2.3.0
Thanks ,
HarshilDear Olga12,
Thanks a lot for your quick reply.
When i suggested the solution to my client for creating two separate templates attached to same data definition , they declined and argued that we cant create 2 separate templates for all reports( more than 200 reports).
Is there any way to create the PDF/EXCEL from same RDF other than creating two separate templates ?
Thanks ,
Harshil -
Create directory and write files to it
i have installed tomcat 3.2.3 and am using ms access as databse.
through my jsp code i need to create random directories on the server and write files to it(need to have write access on the directories).
how do i do it?? thanx in advance.You can include java.io in ur jsp page only using
<%@ page language="java" import="java.io.File %>
then u can create directories on the fly on the server using
mkdir(s) method of the FILE Object.
You will have to specify the path while creating a File object.
You will get the application's path using
application.getRealPath() method .... to wich u can append
whatever u will like...
Once u got the directory u can also create files using file object
Hope this is of any help...
Feel free toa sk if i could not satisfy u... -
Create folder and copy files problem
Hello all indesign script Members
where I work we use a permanent folder structure for an example
a jobnumber called "123123"
I have wrote a little interface called interface.jsx, this file is saved and located in
123123/scripts/interface
I want my interface to navigate two folders up
to 123123/source/ creates a folder called "hej" so result is "123123/source/hej"
then I can pick from a little dialog box the folder 123123/source/a/ copy all .indd files to the folder hej (or any other folder I choose from the dialog box)
I want the script to know the active path instead of whole locations because, we have different project numbers all the time.
then run an extern script called hej.jsx
the best should be also if the script could chose 123123 as default jobnumber too.
Please could someone help me to script this?
/get started I am very newbie
Thank you so much in advance
All Adobe MembersHi tjacobs01,
Thanks for reply. I didnt include main method since i dont want to make the problem looks too complicated. I called both of the methods in main. The following is the simplified class code including main method.
import java.io.File;
import java.io.IOException;
public class TestClass{
public void buildFolder(){
File f=new File("/documents/hospital_backup");
if(f.exists()==false){
f.mkdirs();
public void copyFile(String file){
String form_cmd="cp /job_holding/hospital/" + file + " /documents/hospital_backup/"+file;
String[] command = new String[]{"sh", "-c", form_cmd};
try{
Runtime r=Runtime.getRuntime();
Process p =r.exec(command);
BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
String line = null;
while ((line = in.readLine()) != null) {
System.out.println(line);}
int exitVal=p.waitFor();
System.out.println("Process exitValue:"+exitVal);
}catch(Exception e){System.out.println(e);}
public static void main(String[] args) {
String dir_root="/job_holding/hospital/";
File f=new File(dir_root);
File[] fList = f.listFiles();
for (int i=0; i<fList.length; i++)
String file=dir_root+fList.getName();
TestClass test = new TestClass();
test.buildFolder();
test.CopyFile(file); -
Create folder and move files to specific directory in AL11
My requirement is to create a new folder in one of the existing directories in AL11 and move some files into it.
I searched the forum and found this solution but it creates folder only in DIR_HOME directory.
data: unixcom like rlgrap-filename.
data: begin of tabl occurs 500,
line(400),
end of tabl.
unixcom = 'mkdir mydir'. "command to create dir
"to execute the unix command
call 'SYSTEM' id 'COMMAND' field unixcom
id 'TAB' field tabl[].
I want the folder to be created in some other directory DIR_INTERFACES .
Any suggestions are welcome ..Get complete path (physical path) using FM FILE_GET_NAME_USING_PATH.
Default directory is DIR_HOME, hence it creates file in that directory...If you specify complete folder name, it will be created under that path..
Concatenate mkdir
space
<physical path>
mydir
into unixcom. -
Can automator create folders and organize files?
I produce a large number of files that must all be moved into appropriate folders manually, but in a consistent manner every time. The files are titled with a keyword for the folder that needs to be created for them. There are just five consistent folders.
Can automator be made to automatically create these folders and move the appropriate images into them? Perhaps from the right click menu?
I've tinkered a little bit, but only been able to produce erratic behavior. In all my experiments it always stalls on the 'create new folder' step, although it does create a folder, though usually not where I needed it to go.
Any advice would be really helpful! Thanks!Bravenewcharles wrote:
Ok, so while I edit my files in my Mac that will occupy some space on its hard drive that will be backed up in the TC. Does that mean that I will occupy two hard drives on the same stuff?
Exactly. That's kinda the definition of a backup. When (not if) something awful happens, like your Mac being lost or stolen, or the HD failing or getting corrupted, or you accidentally change or delete some stuff, you have a backup you can recover.
What will happen when my Mac's hard drive is completely full?
Don't let it. Delete things you don't need. If you can't delete enough, as Neil says, get an external HD for the "overflow" that won't fit, then let Time Machine back up both your Mac and the external. See Time Machine - Frequently Asked Question #32 for more info.
Message was edited by: Pondini -
Batch create folder and move files
Hi,
I have files such as:
FD3_xxx1
FD3_xx2
Fd3_xxx3
FD63_xxx1
FD63_xx2
Fd63_xxx3
How would I create a batch file that would create folders with the characters before the "underscore" and then add the files into them. For example, all "FD3" files will go in a folder called "FD3" and all "FD63" files will go into a folder called "FD63".Dear Frederik and/or Bill,
I have come across this question and your answer and it seems that this is a solution to may problem as well. However, you say that a user needs "to activate it to do something useful". I have no experience in programming and I do not know how to activate
it. Please let me what to do to make this work.
One needs to be careful when running batch files that move or delete large numbers of files in one fell swoop. This is why I posted the file in a passive form. To be on the safe side you must do this:
Open a Console session with cmd.exe.
Invoke the batch file in its current (=passive) form.
Carefully examine the screen output it generates.
If the output fully agrees with your expectations, activate the batch file by modifying this line
echo move %1 %Folder%
to read like so:
move %1 %Folder%
Why? Because the batch file command "echo" will write things to the screen but do nothing else. Hence the command
echo Hell World!
will put the phrase "Hello World!" on the console screen. Once you remove the word "echo", you will actually execute the "move" command:
move %1 %Folder%
A general observation: I feel somewhat uneasy about you running a batch file that includes advanced commands, apparently without you really knowing what it is doing and how it is doing it. Performing the task manually might be a safer option. -
Creating Logic and modeling for SAP BW datasource in SAP HANA views and SLT
Hi to all,
I have small question.
We have BW system and SAP ECC as source system and to get data from SAP ECC source system we are using SAP ECC Standard data source.
Now we required to, create modeling in SAP HANA by use of HANA View and get data from SAP ECC source table via SLT.
So we can replicate same modeling,as we done in SAP BW system.
But my question is that, as SAP ECC standard data source hit multiple table and do run-time calculation, before sending to SAP BI.
How we can derives such calculation and logic, in our HANA studio, because as we know in SLT data transformation can be done in limited way also
in view we can not drive such logic via SQL script ?.
Is there any way we can do such modeling and logic in SAP HANA ?
or
is there any standard document for this type of case, which we can use ?
Note: We don't want to use SAP DS or DXC for data loading to HANA, as we want it in more real time.
Regards
Pavneet RanaThanks for reply,
As SLT is based on ABAP, so we can write complex logic in it.
But if we talk about SAP ECC standard data source, they have complex logic, based on multiple table.
So we need to write code from scratch in SLT to derive same result. but it will be huge time consuming , and required good ABAP skills, also it will lead to bug in code.
Also it will reduce the real time performance of SLT, due to complex logic.
Second option is procedure via SQL script, which is again huge effort in term if logic and can lead to error/bug in logic.
Does we have any other way or architecture to do this is very simple way, with high performance and less error issue.
Regards
Pavneet Rana
Maybe you are looking for
-
HT4623 I can't activate my iphone 3GS , how can I do it ?
I can't activate my iphone 3GS , how can I do it ?
-
Does Apple TV programming select songs completely at random when shuffling? It seems that once a song is selected from an album, more songs are selected from that album more than would be expected from totally random selection.
-
Random Images in Dreamwaever CS5?
Hi, I'd like to set up my site so that every time the homepage reloads, a different image dispays each time. How is this done in Dreamweaver? Thanks!
-
Import Failure: AE won't open import window
I'm importing DNG sequences in to AE to conform them for premiere. I have an issue where I will open the import dialogue box twice to import the next DNG sequence - but when I click it a third time the import dialogue box fails to open. I have tried
-
Advice about application structure before starting
Hi all, I am so sorry for this longest post, but I have to explain all thing. Sorry again. I have been studying with Labview for a year by myself without taking any professional support. When I get stuck in preparing my VIs, I always post here and yo