在ng2-smart-table angular 2我想在actions列中添加一个新按钮,点击这个按钮它将路由到另一个页面,这是添加,编辑和删除按钮,但我试图制作这样的新按钮但是它不起作用
settings = {
add: {
addButtonContent: '<i class="ion-ios-plus-outline"></i>',
createButtonContent: '<i class="ion-checkmark" ></i>',
cancelButtonContent: '<i class="ion-close"></i>',
confirmCreate: true,
},
edit: {
editButtonContent: '<i class="ion-edit"></i>',
saveButtonContent: '<i class="ion-checkmark"></i>',
cancelButtonContent: '<i class="ion-close"></i>',
confirmSave: true
},
delete: {
deleteButtonContent: '<i class="ion-trash-a"></i>',
confirmDelete: true
},
Run Code Online (Sandbox Code Playgroud)
,我怎么能添加按钮,我在ng2智能表文档中搜索,我找不到任何与此相关的内容https://akveo.github.io/ng2-smart-table/documentation
我有一份主报告,这份主报告包含两个子报告,
第一个子报表包含两个表,当第一个表上有大量数据时,它成功打印第一个页面,但其他页面为空.
预期的输出是继续显示第一个表的行,直到它转到第二个表,如果没有很多数据它正常工作
这个设计代码:
<band height="429">
<staticText>
<reportElement x="13" y="5" width="100" height="60" uuid="b236e2f4-495e-4a22-87fa-4e316ea5f41f"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Account Number :]]></text>
</staticText>
<staticText>
<reportElement x="13" y="27" width="89" height="18" uuid="7fdc8df6-4c51-4d87-b8f7-cb0acec8acef"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Description :]]></text>
</staticText>
<staticText>
<reportElement x="13" y="47" width="80" height="21" uuid="294925d2-bf2a-4c51-9f8a-339873e0f747"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font size="11" isBold="true"/>
</textElement>
<text><![CDATA[Period from :]]></text>
</staticText>
<textField>
<reportElement x="113" y="7" width="100" height="17" uuid="0406491b-1bdb-41db-8ece-4058578dc28a"/>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{CUSTOMERACCOUNTNUMBER}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="100" y="24" width="350" height="23" …Run Code Online (Sandbox Code Playgroud) 我知道这个问题可能会重复,但我尝试了很多但没有成功
我需要在 spring boot rest 控制器中创建多个 RequestParam 如下:
@GetMapping("/prd-products/test")
@Timed
public ResponseEntity<List<Test>> getAllTests(@RequestParam (required = false) String search, @RequestParam (required = false) Pageable pageable) {
Page<Test> page = prdProductsService.findAllTest(search, pageable);
HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, "/api/prd-products");
return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);
}
Run Code Online (Sandbox Code Playgroud)
当我尝试通过以下网址调用此服务时:
http://localhost:9116/api/prd-products/test?search=id==1,id==2&pageable=0&size=2
Run Code Online (Sandbox Code Playgroud)
它给了我以下错误
"title": "Bad Request",
"status": 400,
"detail": "Failed to convert value of type 'java.lang.String' to required type 'org.springframework.data.domain.Pageable'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'java.lang.String' to required type 'org.springframework.data.domain.Pageable': no matching editors or conversion …Run Code Online (Sandbox Code Playgroud) 在 Cassandra 中,我试图使用>= 操作从表中检索文本数据,但是,尽管尝试使用=它返回成功,但未检索到任何内容
这是查询示例
select * from s.vechile_information where datetimelong >= '1493215758000' and vechile_customerid = '123' and vechileId = '32' allow filetring;
Run Code Online (Sandbox Code Playgroud)
但是当删除>它工作正常
select * from s.vechile_information where datetimelong = '1493215758000' and vechile_customerid = '123' and vechileId = '32' allow filetring;
Run Code Online (Sandbox Code Playgroud)
这是表结构
CREATE TABLE fcs.vehicle_information (
vehicle_customerId text,
vehicleid text,
cityid text,
cityname text,
citynamear text,
createdby text,
dateTimeLong text,
description text,
driverid text,
drivername text,
drivernamear text,
groupofvehicles text,
groupofvehiclesystemid text,
insexpirygregoriandate bigint, …Run Code Online (Sandbox Code Playgroud) angular ×1
cassandra ×1
nosql ×1
pageable ×1
restful-url ×1
spring-boot ×1
subreport ×1
typescript ×1