Split character Reporting Service (Character "ENTER") - sql-server

i had one row from database
when i view this data on reporting service i get view:
baris 1
baris 2
i want to change view on reporting service to be
baris 1
baris 2
anyone can help please?

I would use a combination of the Split function with the constant: Constants.vbCrLf. In your scenario the Split might be tricky - there's no obvious delimiter to split on.
This example might get you started:
= "1. " + Split ( Fields!my_column.Value , " " )(0) + " " + Split ( Fields!my_column.Value , " " )(1)
+ Constants.vbCrLf
+ "2. " + Split ( Fields!my_column.Value , " " )(2) + " " + Split ( Fields!my_column.Value , " " )(3)

Related

Formula that splits data into separate sections based on a divider (blank cell)

I am trying to find a formula which splits data into separate columns based on a blank column.
As this is imported through another sheet and uses a divider:
try:
=INDEX(SUBSTITUTE(TRANSPOSE(IFERROR(SPLIT(TRIM(TRANSPOSE(
SPLIT(QUERY(SUBSTITUTE(IF(INDIRECT("A2:A"&MAX((ROW(A2:A))*(A2:A<>"")))="",
"×", A2:A), " ", "¤"),,9^9), "×"))), " "))), "¤", " "))
update:
=ARRAYFORMULA(IFERROR(1/(1/SUBSTITUTE(TRANSPOSE(IFERROR(SPLIT(TRIM(TRANSPOSE(
SPLIT(QUERY(SUBSTITUTE(IF(INDIRECT("A1:"&MAX((ROW(A1:A))*(A1:A<>"")))="",
"×", A1:A), " ", "¤"),,9^9+0), "×"))), " "))), "¤", " "))))

H2 - Field must be in group by list

i get the following exception: Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Field "RECHNUNGEN0_.GRUPPEN_RECHNUNGSJAHR" must be in GROUP BY List
can someone explain whats wrong in the query?
#Query("Select new de.company.jpa.model.RechnungsjahrUndNummerVO(" +
"r.gruppenRechnungsjahr, " +
"r.gruppenRechnungsnummer) " +
"From RechnungEntity r " +
"Where (:vermittlungsnummern is null or r.vermittlungsnummer in :vermittlungsnummern) " +
"and (:statusklassen is null or r.statusklasse in :statusklassen) " +
"and (:gruppenOm is null or r.gruppenOm = :gruppenOm)" +
"group by r.gruppenRechnungsnummer " +
"order by r.gruppenRechnungsjahr")
List<RechnungsjahrUndNummerVO> findRechnungsjahrUndNummernByVermittlungsnummernStatusklasseGruppenOm(List<String> vermittlungsnummern,
List<String> statusklassen,
String gruppenOm);

Change font weight in a WPF label only for some parts

I have a calculator and the results are shown in a label. Is it possible to set the result values (some string, some double) to display in bold?
My code looks like this:
...{
label2.Content = "your time: " + saldoMin +
" and: " + fooNeg +
" " + inH +
" : " + inMin +
" [h : min]\nyour factor: " + YourFactor +
"\n\ngo at: " + beginnH +
" : " + fooNull;
}
and I only want the objects saldoMin, fooNeg, inH, ... to be bold, but not the code behind.
You can use a TextBlock with Runs. Here is an example:
var text = new TextBlock();
text.Inlines.Add(new Bold(new Run("Bold:")));
text.Inlines.Add(new Run(" nonbold"));
label2.Content = text;

Apache Flink: What type of record does JDBCInputFormat return?

I am getting an error related to setRowTypeInfo for a JDBCInputFormat. The error is below. Clearly the Tuple2 type of the DataSet doesn't like the RowTypeInfo of the JDBCInputFormat but I can't find anywhere that provides clarification on how to define the format.
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(default-compile) on project flink: Compilation failure [ERROR]
/Users/rocadmin/Desktop/flink/flink/src/main/java/svalarms/BatchJob.java:[125,48]
incompatible types: inferred type does not conform to equality
constraint(s) [ERROR] inferred:
org.apache.flink.api.java.tuple.Tuple2
[ERROR] equality constraints(s):
org.apache.flink.api.java.tuple.Tuple2,org.apache.flink.types.Row
[ERROR] [ERROR] -> [Help 1]
DataSet< Tuple2<Integer, Integer> > dbData =
env.createInput(
JDBCInputFormat.buildJDBCInputFormat()
.setDrivername("oracle.jdbc.driver.OracleDriver")
.setDBUrl("jdbc:oracle:thin:#//[ip]:1521/sdmprd")
.setQuery("" +
"SELECT T2.work_order_nbr, T2.work_order_nbr " +
"FROM sdm.work_order_master T2 " +
"WHERE " +
"TO_DATE(T2.date_entered + 19000000,'yyymmdd') >= CURRENT_DATE - 14 " +
"AND T2.W_O_TYPE = 'TC' " +
"AND T2.OFFICE_ONLY_FLG = 'N' " +
"")
.setRowTypeInfo(new RowTypeInfo(BasicTypeInfo.INT_TYPE_INFO, BasicTypeInfo.INT_TYPE_INFO))
.finish()
);
A JDBCInputFormat returns records of type Row. Hence, the resulting DataSet should be typed to Row, i.e.,
DataSet<Row> dbData =
env.createInput(
JDBCInputFormat.buildJDBCInputFormat()
.setDrivername("oracle.jdbc.driver.OracleDriver")
.setDBUrl("jdbc:oracle:thin:#//[ip]:1521/sdmprd")
.setQuery(
"SELECT T2.work_order_nbr, T2.work_order_nbr " +
"FROM sdm.work_order_master T2 " +
"WHERE " +
"TO_DATE(T2.date_entered + 19000000,'yyymmdd') >= CURRENT_DATE - 14 " +
"AND T2.W_O_TYPE = 'TC' " +
"AND T2.OFFICE_ONLY_FLG = 'N' "
)
.setRowTypeInfo(Types.ROW(Types.INT, Types.INT))
.finish()
);
got it going
TypeInformation[] fieldTypes = new TypeInformation[] {
BasicTypeInfo.BIG_DEC_TYPE_INFO,
BasicTypeInfo.BIG_DEC_TYPE_INFO
};
RowTypeInfo rowTypeInfo = new RowTypeInfo(fieldTypes);
JDBCInputFormatBuilder inputBuilder =
JDBCInputFormat.buildJDBCInputFormat().setDrivername("oracle.jdbc.driver.OracleDriver").setDBUrl("jdbc:oracle:thin:#//ipaddress:1521/sdmprd").setQuery("" +
"SELECT T2.work_order_nbr , T2.work_order_nbr " +
"FROM sdm.work_order_master T2 " +
"WHERE " +
"TO_DATE(T2.date_entered + 19000000,'yyyymmdd') >= CURRENT_DATE - 14 " +
"AND T2.W_O_TYPE = 'TC' " +
"AND T2.OFFICE_ONLY_FLG = 'N' " +
"").setRowTypeInfo(rowTypeInfo).setUsername(“user”).setPassword(“pass”);
DataSet<Row> source = env.createInput(inputBuilder.finish());

how to click on javascript element in selenium

52 Low
This is how the html part is coded by developer
In case the ID of the link (tab) is not changing then you should put:
((JavascriptExecutor)driver).executeScript("document.getElementById('tab8').click()");
or even simplier (as Vivek noted):
((JavascriptExecutor)driver).findElement(By.id('tab8')).click();
In case the ID of the tab could potentially change you could search it by its text:
((JavascriptExecutor)driver).executeScript(
"var tabs= document.getElementsByTagName("a");" +
"var tabText= "52 Low";" +
"for (var i = 0; i < tabs.length; i++) {" +
" if (tabs[i].textContent == tabText) {" +
" tabs[i].click();" +
" break;" +
" }" +
"}");

Resources