PowerDesigner - Assign a TriggerTemplate to a trigger through VBScript? - vbscript

In PowerDesigner v12, how would one, through use of VBScript, assign a TriggerTemplate to triggers that are missing the definition?
We have a script now that can loop through the triggers and display the triggertemplate (if it has one), but all attempts to assign a template to these triggers have failed.
Any insight would be greatly appreciated!
Can someone with power edit this and add 'powerdesigner' as a tag? I can't do it.
Thanks,
Calvin

I may have found an answer, but I want to get other input on it.
While I cannot get a reference to the TriggerTemplates that are part of the DBMS, the model itself can have its own TriggerTemplates. These model based templates can be referenced and assigned to the triggers as needed.
My thoughts were to actually create copies of the DBMS templates inside the model, and use those instead.
Thoughts?

Related

Using LUIS to extract an entity from a user response to a prompt for text and to store the output

I just can't find any info on this!!!
Please see the image. I want to capture the "number" from the user response as a variable (property) but can't see how to. Any ideas?!
I want to be able to do this within the composer, not with code. Surely #prebuilt number is storing the recognized entity - how do I set a variable (property) to the value of the entity? Thanks.
Here's the image of my issue
LOL - solved! The answer is to use coalesce. Keeping it here for reference for others.
Solution

Magento Dataflow (Advanced) Profile, default values

I want to create an import from a CSV but i can't modify the CSV file.
So i need to define default values for a couple required fields in Magento (like "type" ( > Simple Product ) etc.
I'm looking at https://stackoverflow.com/a/7319214/2252078 to make a custom Adapter and that inject the missing required values in the array before saving.
But i already get an error that says:
Method "parse" not defined in adapter spaanproductions_basics/convert_adapter_product
So i can't even begin with my custom code.
Maybe someone has a beter idea how to create some default values, or how to fix this issue.
Magento version: 1.9.1.1
Thanks in advance.
Kind regards,
Sonny
Not sure what the problem is, your code does seem to be valid. You could try http://pastebin.com/vxewc0Zt . OR temporarily rename your app/code/local/Spaanproductions/Basics/Model/Covert/Adapter/Product.php to verify wetter the right class is actually being loaded although I highly doubt that's the problem
-- Edit (See comments) --
try changing spaanproductions_basics/convert_adapter_product to basics/convert_adapter_product your models are defined under basics, not under spaanproductions"
At the first you have to export products as a csv file to catch the structure and then modify that as you need.
Take a look at this answer, it could be useful:
Update Magento products with multiple images

Assigning a value to an icCube Event in Reporting

I am using icCube 5.0 Reporting
I want to assign the value of an Event to that returned by the icCube MDX function UserName()--sort of like #{eventname} = UserName().
Eventually, #{eventname:reportParm} will be sent to a launched report for use in a filter.
Does anyone have any hints for me?
There is no clean way (already in todo list)
For the time being there is no clean way. You've to create a Constant - not an event - in Configuration/Constants that you call for example
ic3c-userName
Assign a javascript expression
:ic3reporting.context_.userInfo().name()
So you've now an event with the name of the user as value you can use.
From version 5.0.3 you can use the new syntax.
For user name:
:ic3reporting.userName()
also you can access the report's name by
:ic3reporting.reportName()

vb.net data set not working

I am using two different datasets to populate datagridview my project using visual studio using vb.net. It is windows forms application which is used to display information from the database based on user inputs. Once the information is displayed the user can save the information into a table specifically created to store the report information in order for it to be recalled at a later date. I am now trying to recall this information so have created my dataset in the same way as before and am now trying to invoke a new occurrence of it and this is where the probelm begins. The code is below.
Dim dv2 As New System.Data.DataView
dv2 = New System.Data.DataView(DataSet2.Tables(0), "Status <> ''", "",
DataViewRowState.CurrentRows)
DataTable2TableAdapter.fill(DataSet2.DataTable2, f5.ComboBox2.SelectedValue)
I am getting two issues.
For DataSet2.Tables(0): Reference to a non-shared member requires an object reference
For DataTable2TableAdapter: ’DataTable2TableAdapter’ is not declared. It may be inaccessible due to its protection level.
I dont know why this is happening as I have written the same code here as for my previous data set other than changing the SQL statement behind the dataset at set up. Any thoughts would be welcome as I am totally out of ideas. All questions are welcomed.
Thanks
Try the following code to fix your error number 1....
Dim tablezero as System.Data.DataTable
'
tablezero = DataSet2.Tables(0)
The reason your getting the error is because you are trying to access an object (Table(0)) and it is not visible to the code that is trying to access it, if it was SHARED then it would be visible.
So you can resolve it by defining and object instance/reference to it and then accessing that reference, which in this case i have called "tablezero" (or by making table(0) SHARED - usually not the best bet unlessits neccesary - no point in having something accessible to the whole class it is declared in unless absolutelty neccessary)
It is quite possible the second error may dissapear after just fixing above, then again its difficult to tell without your code for Dataset2
Hope it helps.

Sorting a view by dropdown

Hey, i've been looking around for a ajax dropdown sorter for my Views in Drupal.
Unfortunatly, i haven't found alot of usefull information about this subject.
Can anyone tell me if theres a solution already available or can help me started on a custom module by telling me which hooks i should use?
I had a similar issue. Unfortunately I wasn't able to sort the data from the database which is by far the best way. I was however able to take the data and sort it with PHP using a preprocessor function. Depending on the name of your view, setup a function similar to the following:
function templatename_preprocess_name_of__view(&$vars)
{
//Super sweet sorting code goes here
}
The name of your view needs to follow the name of the template file that it is driven by, if there isn't on you should create one. Make sure to change dashes to underscores in your function name. Hope this is helpful. If you find a way to do it from the DB I'm all ears because that would be super awesome.

Resources