As per my requirement i have added 2 context groups in my job. Below is the screenshot of my job:
Context group names are DBConnection and SourceConnection.
My requirement is to get those group names and display on console. Is there any way to get Only context group names in Talend?
Please help me.
Thanks,
Divya
Use a tContextDump and output to tLogRow and you will have your context variables printed to console.
Related
Would you please advise what is the way to create (Java) custom group. For instance, i need a group consists of three element (2101, 2102, 2103) so that fix message will be:
35=D|....|2100=1|2101=ETRSJSD|2102=ABCD|2103=5|
where 2100 include index of subgroup
QuickFix has similar NewSingleOrder.NoStrategyParameters()
I have created a ADF pipeline which picks up the files does processing of the files and project it to Power BI, want to log all the information to a table as part of logging.
what all information should I log into the table? and how to achieve it?
want to log all the information to a table as part of logging
Use Copy Activity and add source as input from other activities also use sink as SQL Server.
You can use below query and add it to Add dynamic content:
SELECT ‘#{pipeline().DataFactory}’ as DataFactory_Name,
‘#{pipeline().Pipeline}’ as Pipeline_Name,
‘#{activity(‘copytables’).output.executionDetails[0].source.type}’ as Source_Type,
‘#{activity(‘copytables’).output.executionDetails[0].sink.type}’ as Sink_Type,
‘#{activity(‘copytables’).output.executionDetails[0].status}’ as Execution_Status,
‘#{activity(‘copytables’).output.rowsRead}’ as RowsRead,
‘#{activity(‘copytables’).output.rowsCopied}’ as RowsWritten
‘#{activity(‘copytables’).output.copyDuration}’ as CopyDurationInSecs,
‘#{activity(‘copytables’).output.executionDetails[0].start}’ as CopyActivity_Start_Time,
‘#{utcnow()}’ as CopyActivity_End_Time,
‘#{pipeline().RunId}’ as RunId,
‘#{pipeline().TriggerType}’ as TriggerType,
‘#{pipeline().TriggerName}’ as TriggerName,
‘#{pipeline().TriggerTime}’ as TriggerTime
Refer this article by Rohit Dhande for more information
I was trying to do a delta load using ADF. I have a get meta data activity on my blob location to read all the files using getchildItem and lookup activity which reads loaded file names from a sql table. Following this I have a filter activity which should filter out the new files from the blob location.
expression on items
#activity('GetRawFilenames').output.childItems
expression on Condition
#not(contains(activity('GetLoadedFilesList').output.value,item().name))
But still its not filtering out the file list in the filter output. Could the experts please help? Thanks in advance..
Have a look at this. They describe same problem. Expression on condition should be:
#not(contains(join(activity('GetLoadedFilesList').output.value,','),item().name))
so after joining of GetLoadedFilesList activity your code should be working
I'm Java developer for about 2 years but I'm new with Jasper so I need some help, I know how to deal with a simple report with fields coming from a class or entity but now I have to do something harder.
I have these 3 entities:
Group
Function
Privilege
The group may have a list of function, and a function has a list oc privileges, that is the simplest scenario but a group may have a list of other groups instead of a list of function.
simple example: Group1 -> (Function1 [Privilege1, Privilege2], Function2 [Privilege3, Privilege4] - Group1 got a list with 2 functions each one with 2 privileges.
complex example: Group2 -> (Group1 -> [Function1 {Privilege1, Privilege2}, Function2 {Privilege3, Privilege4}], Group3 -> [FunctionX {Privilege1, Privilege2}, FunctionY... - Group 2 got a list with 2 sub-groups, each sub-group got functions and so on.
To build the report I'm used to send to Jasper just one object, in this case the parent group so I believe I need a way to iterate through its lists but I don't know what is the best approach.
I made some research about groups and sub reports but I couldn't find any situation like that and I can't figure out what is the best for what I need to do.
Some help would be appreciated!
I'm create jasper report as pass one single object as parameter or field.
assume one file structure
com.project.MyClass, we pass object of MyClass
this object is passed as parameter or as datasource whatever you want.
assume myClass is object
if you pass one single object than you must change expression class java.lang.String to com.project.MyClass in jasper.
now you can access your object as $F{myClass }.getMethodName()
you can also use use $F{myClass }.getMethodName().getSubmethodName()
this is 100% working. I use it for my all reports. If you want any help then ask.
can anyone explain in very simple words what the <group> tag stands for. I already read this: enter link description here
But I can't get it, I played with reports over three hours but can't get any results.
__
I have a csv datasource looking like that:
Name | Value
-------------
Ab | 123
Ba | wow
Cb | got
De | it
For instance I would like to get only the entry in the value column where the entry in the Name column is "Cb" (would be "got").
Hence, I created a group with: following expression: $F{Name}.compareToIgnoreCase("Cb")
Unfortunately I always get the entire column although I only want one entry.
Do I use the group tag in the right way? Maybe I have misunderstood the intended purpose of this tag.
Any help would be appreciated.
2014-March-22:
I made a simple example PastBin:minimalcode-jrxml-file using following csv file as datasource:
Name;Tom
Birthday;01-May-1980
Country;Germany
sex;male
Here is a screenshot of the design view (ireports 5.5.0):
And here is what I get when I click on preview (in ireports), unfortunately this is not what i want:
Maybe anyone can help.
Thanks
The purpose of this tag is to "group/unite data based on a specific column value. Let's take for example the classic HR schema. Every Employee is linked with a specific Department. While getting all the employees inside a report, you can "divide" them in groups based on the department on which they are connected (i.e: by creating a group with for the employee.department_id attribute). A simple usage might be creating different tables with employees records for every department. Basically, is the same function as the Group clause in SQL (only that Jasper is aware of these groups and allows you to customize them).
In your case, i'm not quite sure that the expression used is creating a jasper-group. Anyway, what you're trying to do (i mean, getting only that record) can be easily accomplished by a "WHERE" clause inside the report query: WHERE name='Cb'
You don't need group use filter expression:
<filterExpression><![CDATA[$F{Name}.equalsIgnoreCase("Cb")]]></filterExpression>