/AWS1/IF_QST=>UPDATETHEME()¶
About UpdateTheme¶
Updates a theme.
Method Signature¶
METHODS /AWS1/IF_QST~UPDATETHEME
IMPORTING
!IV_AWSACCOUNTID TYPE /AWS1/QSTAWSACCOUNTID OPTIONAL
!IV_THEMEID TYPE /AWS1/QSTSHORTRESTRICTIVERES00 OPTIONAL
!IV_NAME TYPE /AWS1/QSTTHEMENAME OPTIONAL
!IV_BASETHEMEID TYPE /AWS1/QSTSHORTRESTRICTIVERES00 OPTIONAL
!IV_VERSIONDESCRIPTION TYPE /AWS1/QSTVERSIONDESCRIPTION OPTIONAL
!IO_CONFIGURATION TYPE REF TO /AWS1/CL_QSTTHEMECONFIGURATION OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_qstupdatethemersp
RAISING
/AWS1/CX_QSTACCESSDENIEDEX
/AWS1/CX_QSTINTERNALFAILUREEX
/AWS1/CX_QSTINVPARAMVALUEEX
/AWS1/CX_QSTLIMITEXCEEDEDEX
/AWS1/CX_QSTRESOURCEEXISTSEX
/AWS1/CX_QSTRESOURCENOTFOUNDEX
/AWS1/CX_QSTTHROTTLINGEX
/AWS1/CX_QSTUNSUPPEDUSEREDIT00
/AWS1/CX_QSTCLIENTEXC
/AWS1/CX_QSTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_awsaccountid TYPE /AWS1/QSTAWSACCOUNTID /AWS1/QSTAWSACCOUNTID¶
The ID of the Amazon Web Services account that contains the theme that you're updating.
iv_themeid TYPE /AWS1/QSTSHORTRESTRICTIVERES00 /AWS1/QSTSHORTRESTRICTIVERES00¶
The ID for the theme.
iv_basethemeid TYPE /AWS1/QSTSHORTRESTRICTIVERES00 /AWS1/QSTSHORTRESTRICTIVERES00¶
The theme ID, defined by Amazon Quick Sight, that a custom theme inherits from. All themes initially inherit from a default Quick Sight theme.
Optional arguments:¶
iv_name TYPE /AWS1/QSTTHEMENAME /AWS1/QSTTHEMENAME¶
The name for the theme.
iv_versiondescription TYPE /AWS1/QSTVERSIONDESCRIPTION /AWS1/QSTVERSIONDESCRIPTION¶
A description of the theme version that you're updating Every time that you call
UpdateTheme, you create a new version of the theme. Each version of the theme maintains a description of the version inVersionDescription.
io_configuration TYPE REF TO /AWS1/CL_QSTTHEMECONFIGURATION /AWS1/CL_QSTTHEMECONFIGURATION¶
The theme configuration, which contains the theme display properties.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_qstupdatethemersp /AWS1/CL_QSTUPDATETHEMERSP¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->updatetheme(
io_configuration = new /aws1/cl_qstthemeconfiguration(
io_datacolorpalette = new /aws1/cl_qstdatacolorpalette(
it_colors = VALUE /aws1/cl_qstcolorlist_w=>tt_colorlist(
( new /aws1/cl_qstcolorlist_w( |string| ) )
)
it_minmaxgradient = VALUE /aws1/cl_qstcolorlist_w=>tt_colorlist(
( new /aws1/cl_qstcolorlist_w( |string| ) )
)
iv_emptyfillcolor = |string|
)
io_sheet = new /aws1/cl_qstsheetstyle(
io_tile = new /aws1/cl_qsttilestyle( new /aws1/cl_qstborderstyle( ABAP_TRUE ) )
io_tilelayout = new /aws1/cl_qsttilelayoutstyle(
io_gutter = new /aws1/cl_qstgutterstyle( ABAP_TRUE )
io_margin = new /aws1/cl_qstmarginstyle( ABAP_TRUE )
)
)
io_typography = new /aws1/cl_qsttypography(
it_fontfamilies = VALUE /aws1/cl_qstfont=>tt_fontlist(
( new /aws1/cl_qstfont( |string| ) )
)
)
io_uicolorpalette = new /aws1/cl_qstuicolorpalette(
iv_accent = |string|
iv_accentforeground = |string|
iv_danger = |string|
iv_dangerforeground = |string|
iv_dimension = |string|
iv_dimensionforeground = |string|
iv_measure = |string|
iv_measureforeground = |string|
iv_primarybackground = |string|
iv_primaryforeground = |string|
iv_secondarybackground = |string|
iv_secondaryforeground = |string|
iv_success = |string|
iv_successforeground = |string|
iv_warning = |string|
iv_warningforeground = |string|
)
)
iv_awsaccountid = |string|
iv_basethemeid = |string|
iv_name = |string|
iv_themeid = |string|
iv_versiondescription = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_shortrestrictiveresourc = lo_result->get_themeid( ).
lv_arn = lo_result->get_arn( ).
lv_arn = lo_result->get_versionarn( ).
lv_resourcestatus = lo_result->get_creationstatus( ).
lv_statuscode = lo_result->get_status( ).
lv_string = lo_result->get_requestid( ).
ENDIF.