小编Dra*_*nna的帖子

基于连接参考数据的动态数据验证

我无法找到正确的公式来验证基于“连接”参考数据和实际数据的数据。

我在参考表中有两个参考数据组:

水果ID 水果名称 篮子ID 篮子类型 水果ID
1 苹果 BAS-1 10 1
2 香蕉 BAS-1 10 2
3 菠萝 BAS-1 20 1
BAS-2 10 2

参考FRUIT了可用数据。参考BASKET了可用的篮子,但有一条规则规定每个篮子中只允许放置一些水果。上表旨在明确:

  • 有 3 种水果可供选择,由 ID 标识
  • 有 2 个篮子可供选择,由复合 [ID、类型] 标识
  • 每个篮子都有一组有限的可选水果
    • [BAS-1, 10] 可以选择苹果和香蕉
    • [BAS-1, 20]可选择苹果
    • [BAS-2, 10] 可以选择香蕉

然后,我在另一张表中拥有数据,用户应该能够在其中进行交互,并且我希望数据验证通过下拉列表仅显示上下文中允许的值。例如:

篮子ID 篮子类型 水果
1 BAS-1 10 X
2 BAS-1 20 X
3 BAS-2 10 X

我的目标是在列中设置一个下拉FRUIT列表,仅允许 row_1 选择 Banana 和 Apple,row_2 选择 Apple,row_3 选择 Banana。我还没有找到一种方法来加入数据来显示实际的水果名称。到目前为止我得到的最接近的是这个公式:

=OFFSET(FRUIT; MATCH(BASKET_ID; …
Run Code Online (Sandbox Code Playgroud)

excel vba excel-formula

5
推荐指数
1
解决办法
86
查看次数

JPackages JavaFX + Spring boot 无法启动

我正在尝试使用 Spring Boot 构建 JavaFX 应用程序并使用 jpackage 进行部署。

使用该javafx-maven-plugin javafx:run命令时,我可以看到项目启动。但是将其构建为*.msi安装程序、安装并启动后*.exe,没有任何反应(无论是通过双击还是命令行运行)。

我该如何解决这个问题,或者至少知道发生了什么?我怀疑javafx:run目标是手动 jlink 中缺少一些参数,但是我无法使用,javafx:jlink因为应用程序本身不是模块,因为 Spring Boot 尚未模块化。

这是来源;

编辑: 根据@Slaw的建议,我修改了jpackage命令以包含`--win-console。从而成功运行该应用程序。虽然这是一个很好的步骤,但这不是我想要的,我想在没有提示的情况下运行它。

pom.xml:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>org.test</groupId>
    <artifactId>mytest</artifactId>
    <packaging>jar</packaging>
    <version>1.0</version>

    <properties>
        <maven.compiler.source>17</maven.compiler.source>
        <maven.compiler.target>17</maven.compiler.target>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-parent</artifactId>
            <version>2.6.0</version>
            <type>pom</type>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter</artifactId>
            <version>2.6.0</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <version>2.6.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-controls</artifactId>
            <version>17.0.1</version>
        </dependency>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-graphics</artifactId>
            <version>17.0.1</version>
        </dependency>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx-fxml</artifactId> …
Run Code Online (Sandbox Code Playgroud)

java javafx spring-boot jpackage

3
推荐指数
1
解决办法
873
查看次数

标签 统计

excel ×1

excel-formula ×1

java ×1

javafx ×1

jpackage ×1

spring-boot ×1

vba ×1