简体   繁体   English

Google Data Studio 中的分步配置 API 问题

[英]Stepped configuration in Google Data Studio API issue

I'm currently building a Google Data Studio connector where I need to make use of the stepped configuration to achieve dynamic user input.我目前正在构建一个 Google Data Studio 连接器,我需要在其中使用阶梯式配置来实现动态用户输入。

For example, connecting to Google Analytics will have a configuration of account -> properties -> view.例如,连接到 Google Analytics 将具有帐户 -> 属性 -> 视图的配置。

I want to achieve something exactly of this sort but when a user input the first answer from a dropdown, the connector should make an API request to pull data into the dropdown of the next config.我想实现这种类型的东西,但是当用户从下拉列表中输入第一个答案时,连接器应该发出 API 请求以将数据拉入下一个配置的下拉列表中。

Please, how do I go about this.请问,我该怎么做 go 。

You should be able to get the parameters the user selects from "request.configParams" (in the getConfig function).您应该能够从“request.configParams”(在 getConfig 函数中)获取用户选择的参数。 Using your chosen parameter, you can do an API call to get the data you need so that you can set up your options for the stepped configuration.使用您选择的参数,您可以执行 API 调用来获取您需要的数据,以便您可以为分步配置设置选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM