cancel
Showing results for 
Search instead for 
Did you mean: 

Get context parameters issue

Former Member
0 Kudos

Hello everybody,

When I try to get parameters of a webi which contains Prompt AND Context.

GET with biprws/raylight/v1/documents/{0}/parameters it respond me only the Prompt parameters. Must I pass some parameters after the "parameters" ?

Kind regards,

Cyrille.

Accepted Solutions (1)

Accepted Solutions (1)

eric_festinger
Contributor
0 Kudos

bonjour Cyrille,

That's surprising! Can you copy-paste the ouput of the GET call, and a screenshot of the refresh workflow with BI LaunchPad as well?

Thanks,

eric

Former Member
0 Kudos

Hello Eric,

After the GET of "biprws/raylight/v1/documents/ID/parameters"

{

  "parameters": {

    "parameter": {

      "@dpId": "DPb4",

      "@type": "prompt",

      "@optional": "false",

      "id": 4,

      "technicalName": "psChoix de la filiale :",

      "name": "Choix de la filiale :",

      "answer": {

        "@type": "Text",

        "@constrained": "true",

        "info": {

          "@cardinality": "Single",

          "lov": {

            "@searchable": "true",

            "@refreshable": "true",

            "@partial": "false",

            "@hierarchical": "false",

            "id": "UNIVERSELOV_DS15.DO2",

            "updated": "2016-07-26T08:40:26+02:00",

            "columns": {

              "@mappingId": "0",

              "column": {

                "@type": "String",

                "@id": "0",

                "$": "Nom du site "

              }

            }

          },

          "previous": {

            "value": "Liban"

          }

        },

        "values": {

          "value": "Liban"

        }

      }

    }

  }

}

The issue is coming when I'm trying to modify the universe of this webi.


When I try, B.O ask me for a context.. (?)

I Cannot respond to the B.O Question because he didn't pass me the response, this is weird no ?

+JObject.Parse(httpResult){

  "mappings": {

    "content": {

      "mapping": [

        {

          "@status": "Ok",

          "source": {

            "id": "_-miEYMpWEeWOaJnuvsGS5w"

          },

          "target": {

            "id": "_-miEYMpWEeWOaJnuvsGS5w"

          }

        },

        {

          "@status": "Ok",

          "source": {

            "id": "_QlPE4MnDEeWOaJnuvsGS5w"

          },

          "target": {

            "id": "_QlPE4MnDEeWOaJnuvsGS5w"

          }

        },

        {

          "@status": "Ok",

          "source": {

            "id": "_QlSIMMnDEeWOaJnuvsGS5w"

          },

          "target": {

            "id": "_QlSIMMnDEeWOaJnuvsGS5w"

          }

        },

        {

          "@status": "Ok",

          "source": {

            "id": "_QlUkccnDEeWOaJnuvsGS5w"

          },

          "target": {

            "id": "_QlUkccnDEeWOaJnuvsGS5w"

          }

        },

        {

          "@status": "Ok",

          "source": {

            "id": "_i2ymMN73EeWWQMLx9-3SQw"

          },

          "target": {

            "id": "_i2ymMN73EeWWQMLx9-3SQw"

          }

        },

        {

          "@status": "Ok",

          "source": {

            "id": "_lb-OgMpYEeWOaJnuvsGS5w"

          },

          "target": {

            "id": "_lb-OgMpYEeWOaJnuvsGS5w"

          }

        },

        {

          "@status": "Ok",

          "source": {

            "id": "_lovncM5DEeW55uZEoP6k8w"

          },

          "target": {

            "id": "_lovncM5DEeW55uZEoP6k8w"

          }

        }

      ]

    },

    "parameters": {

      "parameter": {

        "@dpId": "DPb9",

        "@type": "context",

        "@optional": "false",

        "id": 5,

        "technicalName": "cQuery_Sub_2",

        "name": "Select a context",

        "answer": {

          "@type": "Text",

          "@constrained": "true",

          "info": {

            "@cardinality": "Single",

            "lov": {

              "@searchable": "true",

              "@refreshable": "true",

              "@partial": "false",

              "@hierarchical": "false",

              "values": {

                "value": [

                  {

                    "@id": "_mC1q8BEJEeazjt_OG3zAzw",

                    "$": "0_Context_sans_faits"

                  },

                  {

                    "@id": "_62RIwMwMEeWkzINd4s3AcQ",

                    "$": "1_Context_abonnement"

                  },

                  {

                    "@id": "_kZvW4Au-EeahCcEDAxHrBQ",

                    "$": "1_Context_bonus"

                  },

                  {

                    "@id": "_zglmcMshEeW7ArAMEe-n_w",

                    "$": "1_Context_facture"

                  },

                  {

                    "@id": "_h_vfYM8SEeWXXPmpj0XibA",

                    "$": "1_Context_frais_remise"

                  },

                  {

                    "@id": "_RxOHQBjdEeaoKddqhGtPMQ",

                    "$": "1_Context_valtransac"

                  },

                  {

                    "@id": "_S5OmQRjfEeaoKddqhGtPMQ",

                    "$": "2_Context_abo_bon"

                  },

                  {

                    "@id": "_Cye-8MvtEeWkzINd4s3AcQ",

                    "$": "2_Context_transac_valtransac"

                  },

                  {

                    "@id": "_WCU6oRjeEeaoKddqhGtPMQ",

                    "$": "2_Context_valtransac_exo"

                  }

                ]

              }

            }

          }

        }

      }

    }

  }

}Newtonsoft.Json.Linq.JObject

What do you mean by :

" screenshot of the refresh workflow with BI LaunchPad as well?"





Kind regards,


Cyrille FORMONT.

former_member197386
Active Contributor
0 Kudos

Hi Cyrille,

Ok, it seems you're trying to perform a "change source" operation.

The context you get during mapping resolution is coming from the target universe (not the source universe having only one prompt in your case).

Does it make sense?

Regards,

Anthony

Former Member
0 Kudos

Hi Anthony,

It make sense,so , in case the following process is normal :

- GET parameters of my webi

- Trying to change universe : Context question is coming

- I Choose one context to respond at the question

- POST my response

- B.O Ask me about Prompt, so I just place what I got in the "GET parameters"

- POST it

- B.O ask me again about context (the same than before) , if I reply to it, the process just start again,

Do you have any idea ?

former_member197386
Active Contributor
0 Kudos

Hi Cyrille,

A RESTful API is stateless, so you have to post all your parameters (context and prompt) response when submitting mappings.

Regards,

Anthony

Former Member
0 Kudos

Thanks Anthony for your response.

Have a nice day,

Cyrille.

Answers (0)