How to create user specified database table from UI in java swing - swing

I want to create a user-specified Table and columns from user interface in java swing.
I tried but still cant write any code .I expect to create a user-specified Table and columns from user interface in java swing.

Related

Is it possible to run a schedule in Foundry without View permissions on all input datasets?

In the following scenario:
Admin User sets up a schedule with multiple input datasets in Input Project and output in the Output Project
End User only has access to the Output Project containing an Output Dataset
Can End User manually run the schedule that includes building multiple datasets from Input Project and ultimate target of Output Dataset?
I'm reviewing the docs on the schedule's build scope but still unclear.
Assuming:
All of the input datasets from other projects are added as references in the Output project
The user has write access to the Output project
Then a project-scoped schedule created to build the Output dataset will be runnable by the user.

Upload from CSV file to DHTMLX GANTT

There is a custom implementation in dhtmlx gantt for upload from MPP/XML which goes to their servlet and renders the gantt. Has anyone tried to build a custom CSV upload or any third parties available to load the csv into the gantt.
https://dhtmlx.com/blog/export-import-ms-project-dhtmlx-gantt-chart/
There is no such solution from DHTMLX (FYI I work for DHTMLX), and I'm not aware if there is any third-party service or ready-to-use solution that could be used for a development.
At the code level, importing csv into gantt breaks down into three steps:
parsing CSV into an object array
mapping columns of CSV to properties of that objects (mandatory properties of gantt tasks - text/start_date/duration/parent)
and inserting the result into database.
The first step is trivial. Mapping columns may require implementing some sort of UI so the user could specify which columns of csv mean what in gantt.
For an inspiration, you can check how it's done in this app https://app.ganttpro.com/ - requires registration, but you can create a free account using google or facebook acc - create new project ("+ CREATE NEW" in lefthand menu), select "Import from" and try uploading some csv file -> here is how the ui looks like.
As for the last step - inserting parsed records into db - you'll need to do some coding in order to insert tasks without losing project hierarchy (task.parent -> task.id relations, given that database ids of your items will likely change after inserting), but overall it shouldn't be very difficult.
If you looking for something more specific - please update your question.

Watson Conversation dialog for large number of entities?

I currently have a chat bot that has an entity for each stock symbol. There are over 3,000. For my dialog I want to be able to detect questions like #get #price #stockSymbol. Is there a way to deal with a large number of entities without writing an if statement for each one?
You are only allowed to have 100 entities in a single workspace. However those entities can have 100,000 values.
So you could create an entity called #StockSymbol and then each value would be the Stock identifier (eg. IBM).
So you would only need one IF statement to determine it is a stock, then pass back the entity information to your calling application to take action on the value.
To put this in programatically, if it is a one time thing you can create a CSV file like the following:
StockSymbol,IBM
StockSymbol,MSFT
StockSymbol,APPL
and so on. Then import that entity file. Alternatively you can use the workspace API to update an already deployed workspace.
I am sorry to say there is no process within the Conversation Service UI that has an automatic dialog creation method. In cases like this, many teams create an external script that can read a file with your entities in it, and then creates a workspace json file with the required dialog nodes. The workspace json file is a relatively simple format, and I have found you can easy merge any new json file into an already created workspace. In fact with the new API's it even possible to load the new elements into a running workspace. ( although if new to this, create a duplicate ws, and merge into this one, or download and merge via a good editor. )

Move Rails 4 translations to PostgreSQL

I need to store locales of Rails app in DB. And give access for admin to edit locales from admin area of app (activeadmin).
This is idea what I have.
Create file with locales named, e.g. en.yml.lock.
Write translations in this file (duplicate to en.yml in development).
Create table for translations (json or hstore).
Create Capistrano task and load file to DB.
After deploy generate en.yml on server with values from DB.
After editing translations in DB click some button "Regenerate" or use some callback and rewrite en.yml on server.
Reboot application.
What are you think about it? May you have more pretty solution?
And one more question. I think storing this with JSON is easier, but how can I generate form for translation in which user can edit only values, not keys?

How do I extend Lookup Transformation Editor in SSIS

I have created a transformation component, and basically it accepts data from a source, and will do very transformations before it can save the information in a database.
But, I want to map between the source columns and the database columns that are called up from my transformation component.
I would like it to look like the mapping in Lookup Transformation Editor.
How do I create an editor that will have the same functionality for mapping, so that it will allow a user to draw a line from a source column to a destination column.
I am using Sql Server 2008 and VS2008 for this project.
I realize I will need to create a custom UI for this component, replacing the Advanced Editor that comes up by default.
Use my wrapper for the DtsMappingSurfaceControl: http://toddmcdermid.blogspot.com/2009/07/using-dtsmappingsurfacecontrol-in-your.html