Vector values dynamically changing ..
I have a function that takes in a List.This List is created by getting a auto generated ID's(sequential) from Oracle database .What I plan to do is store this list in a vector and process them later (actually trying to batch the statements).But I see that the list value is dynamically changed ...(sorry if I am a bit vaguethe example will make it more clearer)
public static void DBInsert(List valueList) {
loadDesc.add(valueList); // Where loadDesc is a Vector
System.out.println("The added valeue is "+ valueList);
System.out.println("This is the Vector"+loadDesc);
I expect to see
The added value is [101,NULL]
This is the Vector [101,NULL]
The added value is [102,NULL]
This is the Vector [101,NULL],[102,NULL]
The added value is [103,NULL]
This is the Vector [101,NULL],[102,NULL],[103,NULL]
But I get
The added value is [101,NULL]
This is the Vector [101,NULL]
The added value is [102,NULL]
This is the Vector [102,NULL],[102,NULL]
The added value is [103,NULL]
This is the Vector [103,NULL],[103,NULL],[103,NULL]
What do you think I should do ...
Thanks for your time
What do you think I should do ...
How about post some relevant code. If your values are not what you expect, then there is probably something wrong with how you are creating and filling your list. Post the code where you create and fill the Lists that are passed to the DBInsert method.
Similar Messages
-
How To dynamically change values in custom form
Hi,
Requirement is to change values in custom form dynamically that are passed by Global variables through standard form .
I have used forms personalization to call custom form and passing some parameters to custom form using global variables.
Now i have to change values displayed in custom form(already opened) when user moves from one record to another record.
I cannot change the standard form.Only i have write logic in custom form that dynamically changes values as user moves from one record to another in standard form.
Global variables values will be different for each record.
Pls let me know how i can achieve this.
Regards
UditUdit,
Your question should be posted to the Enterprise Business Suite (EBS) forum. This forum is dedicated to non-EBS forms development.
Craig... -
Refresh view , change drop down values dynamically!!
Hello SDN,
I have a requirment in PCUI, I have two drop down fields at the view, values for which are all pre-determined as when the application view is loaded.
My need is if i select a value in field 1( from the drop down list) the values should change accordingly in Field 2(drop down list) hinding or adding some.
Can anyone help me how i should approach of doing this.
Many thanks
Pankaj
Message was edited by:
PANKAJ ARORAHi Pankaj,
You should mark the send request option configuration in the first dropdown and develop code in your class to filter de second dropdown with the value of the first dropdown.
Regards.
Manuel
Reward with points! -
Dynamic change Rootuielement's properties such as swfFile value in WdDoModi
Hi experts,
I need to dynamically change one of the view's Rootuielement's properties - SWFFILE in WDDOMODIFYVIEW method. I did some research, and could not figure out what the field is called (such as whether it is considered as an elemement), and how it is referernced in the WD programming. As a result, I am able to search for reusable class and method for my need. Could you please shine some light on me? By the way, I am on basis 7.02 release.
Thank you very much,
DebbieHi Debbie,
As how mentioned by Pooja the ROOTUIELEMENTCONTAINER is of type CL_WD_TRANSPARENT_CONTAINER. You can obtain its reference from within your WDDOMODIFYVIEW by saying as:
data: lr_root type ref to cl_wd_uielement_container.
lr_root ?= view->get_element( id = 'ROOTUIELEMENTCONTAINER' ).
Or
You can directly use the below method to skip passing any id:
lr_root ?= view->get_root_element( ).
Regards,
Uday -
How to dynamically change the text of a TextObject with embedded DataField?
Hi
I'm trying to dynamically change the text of a TextObject at runtime, by using the .NET library. My problem is that if one or more DatabaseFieldDefinition is embedded inside my text, I'm unable to change the "static text" only, by keeping the field, e.g. I have :
Text1 => "Contact Name: {Contact.Name}"
and I'd like to change it to anything else like:
Text1 => "Nom du Contact: {Contact.Name}"
Half of my TextObject is static text while second part comes from the dataset.
(of course the translation is dynamic - it is called at run-time and the new value to be set depends on the calling application language)
If I simply modify the Text property of my TextObject, the {Contact.Name} embedded field is not evaluated anymore by the Crystal Engine, but considered as a single text.
Using formulas or parameters looks quite difficult, because it means having many ones just for translation needs - I cannot control the way my users will create their reports and "force them" to use complex methods just in order to put a text and a value together...
Anyone knows how to deal with that ?Only way I can think of doing this:
1) Create a formula (call it lang) and enter the string "Contact Name" in it
2) Place the {Contact.Name} field next to the string
3) So now you have:
ContactName: {Contact.Name}
4) Check what localization you are after. If you need "Nom du Contact", change the lang formula so it shows "Nom du Contact" using the code below:
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Public Class Form1
Inherits System.Windows.Forms.Form
Dim Report As New CrystalReport1()
Dim FormulaFields As FormulaFieldDefinitions
Dim FormulaField As FormulaFieldDefinition
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
FormulaFields = Report.DataDefinition.FormulaFields
FormulaField = FormulaFields.Item(0)
FormulaField.Text = "[formula text]"
CrystalReportViewer1.ReportSource = Report
End Sub
I realize this may not give you consistent spacing as the translations may have strings of differnt length. Perhaps someone has other idea(s)... -
Dynamically changing internal table in 'gui_download'
Hi Experts,
i have to download 4 internal tables, each with different structures, to the presentation server using 'gui_download', based on which radio-button is selected in the selection screen. I am hoping to use a single 'form' and 4 'perform' calls. how can I dynamically change the tables in the 'gui_download' function modules.
plz help.....................Hi ,
Build the field catalog dynamically based on the internal table structure based on the radio button selected.Use the dynamic internal table generated from the filedcatalog and use in GUI_DOWNLOAD.
See the below code:
*& Report ZRAJESH02
REPORT zrajesh02.
Dynamic internal table
TYPE-POOLS: slis.
FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
<dyn_wa>.
DATA: alv_fldcat TYPE slis_t_fieldcat_alv,
it_fldcat TYPE lvc_t_fcat.
DATA: lv_monate TYPE f,
lv_months TYPE i,
lv_date TYPE sy-datum,
p_check1 type n value '1'.
lv_date = sy-datum + 360.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_check TYPE c.
SELECTION-SCREEN END OF BLOCK b1.
START-OF-SELECTION.
CALL FUNCTION 'MONTHS_BETWEEN_TWO_DATES'
EXPORTING
i_datum_bis = lv_date
i_datum_von = sy-datum
i_kz_incl_bis = ' '
IMPORTING
e_monate = lv_monate.
lv_months = lv_monate.
PERFORM f_fcat USING 'AUFNR' 'CHAR' '12'.
PERFORM f_fcat USING 'POSNR' 'CHAR' '06'.
while p_check1 LE p_check.
PERFORM f_fcat USING p_check1 'CHAR' '1'.
p_check1 = p_check1 + 1.
endwhile.
PERFORM build_dyn_itab.
LOOP AT <dyn_table> INTO <dyn_wa>.
WRITE:/ <dyn_wa>.
ENDLOOP.
FORM f_fcat USING fieldname dattyp length.
DATA:wa_it_fldcat TYPE lvc_s_fcat.
CLEAR wa_it_fldcat.
wa_it_fldcat-fieldname = fieldname.
wa_it_fldcat-datatype = dattyp.
wa_it_fldcat-intlen = length.
APPEND wa_it_fldcat TO it_fldcat .
ENDFORM. "f_fcat
*& Form build_dyn_itab
text
FORM build_dyn_itab.
DATA: new_table TYPE REF TO data,
new_line TYPE REF TO data.
wa_it_fldcat TYPE lvc_s_fcat.
CLEAR wa_it_fldcat.
wa_it_fldcat-fieldname = 'AUFNR'.
wa_it_fldcat-datatype = 'CHAR'.
wa_it_fldcat-intlen = 12.
APPEND wa_it_fldcat TO it_fldcat .
CLEAR wa_it_fldcat.
wa_it_fldcat-fieldname = 'POSNR'.
wa_it_fldcat-datatype = 'CHAR'.
wa_it_fldcat-intlen = 6.
APPEND wa_it_fldcat TO it_fldcat .
Create dynamic internal table and assign to FS
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = it_fldcat
IMPORTING
ep_table = new_table.
ASSIGN new_table->* TO <dyn_table>.
Create dynamic work area and assign to FS
CREATE DATA new_line LIKE LINE OF <dyn_table>.
ASSIGN new_line->* TO <dyn_wa>.
ENDFORM. "build_dyn_itab
Thanks,
Rajesh. -
How to pass tag name and value dynamically in the output of PCo notification?
Hi,
I have a requirement to develop such a scenario where there can be multiple no of tags in PCo (Say 10) but there will be single notification to push the tag name when the value got changed and the changed value to MII. for any value change for any of the tag, the notification will be trigger. So As per my knowledge I have to pass the tag name and value dynamically in the "output" tab of the notification. But need your support to find out how to pass them dynamically.
Thanks in advance.
Regards,
SumanHi Suman/Jeedesh,
As per Pco notification, it will trigger whenever any of the tag value changes in Agent instance subscription items.
For above issue, My suggestion
1. Create DB table name TAGLIST with 200 tags as rows in columns (Tagname, TagValue)
2. Based on notification trigger, create a transaction and update values w.r.t TagNames in above table
3. Next time, when notification trigger with fresh value for any of the tag, cross check with existing TagName with Value and update in DB table.
4. And in the mean time, send those Tag details vie mail trigger or as per requirement
Instead of creating 200 notification, above is a just alternate way suggestion to achieve dynamic tag value change notification.
Hope it might solve your problem
Regards,
Praveen Reddy -
Alle experts:
In ALV layout report, how to dynamic change the layout int ABAP porgram?
e.g. I have save 5 layout, I need to change them base the my selection in ABAP program? How to do this?
Thanks in advance!Try to call fieldcatlog dymnamically. Refer tofollowing code. Reward if helpful.
REPORT zfir0001 MESSAGE-ID ztax.
Tables
TABLES : glt0, t001, skat.
Internal Tables
DATA: BEGIN OF itab OCCURS 0,
racct LIKE glt0-racct, "Account number
txt20 LIKE skat-txt20, "G/L account short text
co_1000 LIKE glt0-hslvt, "Balance carried forward for company code 1000
co_1100 LIKE glt0-hslvt, "Balance carried forward for company code 1100
co_1200 LIKE glt0-hslvt, "Balance carried forward for company code 1200
DATA : BEGIN OF itab1 OCCURS 0,
bukrs LIKE glt0-bukrs,
waers LIKE t001-waers,
END OF itab1.
DATA : BEGIN OF it_itab1 OCCURS 0.
INCLUDE STRUCTURE glt0.
DATA : END OF it_itab1.
Data Declarations
DATA : w_total LIKE glt0-hslvt,
w_count LIKE glt0-bukrs,
w_flg TYPE c,
lv_count TYPE i.
w_slash TYPE c VALUE ' '.
Selection screen
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE tit1.
SELECT-OPTIONS : s_bukrs FOR glt0-bukrs OBLIGATORY,
s_racct FOR glt0-racct OBLIGATORY,
s_ryear FOR glt0-ryear OBLIGATORY,
s_rldnr FOR glt0-rldnr OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
INITIALIZATION.
tit1 = 'Please select:'(004).
TYPE-POOLS: slis. "ALV Declarations
DATA: i_fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
gd_tab_group TYPE slis_t_sp_group_alv,
gd_layout TYPE slis_layout_alv,
gd_repid LIKE sy-repid.
********Geting the selected company code in table itab1****
START-OF-SELECTION.
IF NOT s_bukrs-high IS INITIAL.
itab1-bukrs = s_bukrs-low.
APPEND itab1.
w_count = s_bukrs-low.
DO.
IF s_bukrs-high = w_count.
EXIT.
ELSE.
w_count = w_count + 1.
ENDIF.
SELECT SINGLE * FROM t001
WHERE bukrs = w_count.
IF sy-subrc = 0.
itab1-bukrs = w_count.
APPEND itab1.
CLEAR itab1.
ENDIF.
ENDDO.
ELSE.
itab1-bukrs = s_bukrs-low.
APPEND itab1.
ENDIF.
SELECT * FROM glt0 INTO CORRESPONDING FIELDS OF TABLE it_itab1
WHERE rldnr IN s_rldnr
AND bukrs IN s_bukrs
AND ryear IN s_ryear
AND racct IN s_racct.
SORT it_itab1 BY bukrs.
LOOP AT it_itab1.
AT END OF racct.
w_flg = 'X'.
ENDAT.
SELECT SINGLE txt20 INTO (itab-txt20) FROM skat
WHERE spras = sy-langu
AND saknr = it_itab1-racct.
PACK it_itab1-racct TO it_itab1-racct.
itab-racct = it_itab1-racct.
w_total = it_itab1-hsl01 + it_itab1-hsl02 + it_itab1-hsl03 + it_itab1-hsl04 +
it_itab1-hsl05 + it_itab1-hsl06 + it_itab1-hsl07 + it_itab1-hsl08 +
it_itab1-hsl09 + it_itab1-hsl10 + it_itab1-hsl11 + it_itab1-hsl12 +
w_total + it_itab1-hslvt.
IF w_flg = 'X'.
READ TABLE itab1 WITH KEY bukrs = it_itab1-bukrs.
IF sy-subrc = 0.
SELECT SINGLE * FROM t001
WHERE bukrs = itab1-bukrs.
IF t001-waers = 'JPY' OR
t001-waers = 'HUF'.
w_total = w_total * 100.
ENDIF.
CASE it_itab1-bukrs.
WHEN '1000'.
itab-co_1000 = w_total.
WHEN '1100'.
itab-co_1100 = w_total.
WHEN '1200'.
itab-co_1200 = w_total.
ENDCASE.
COLLECT itab.
CLEAR: itab, w_flg, w_total.
ENDIF.
ENDIF.
ENDLOOP.
SORT itab BY racct.
IF NOT itab[] IS INITIAL.
PERFORM field_cat1.
lv_count = 1.
LOOP AT itab1.
PERFORM field_cat USING itab1-bukrs.
ENDLOOP.
PERFORM display_alv_report .
ELSE.
MESSAGE s000 WITH 'No records Found'(003).
ENDIF.
*& Form display_alv_report
text
FORM display_alv_report .
gd_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = gd_repid
is_layout = gd_layout
it_fieldcat = i_fieldcat[]
i_save = 'X'
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDFORM. "display_alv_report
*& Form field_cat1
text
FORM field_cat1 .
i_fieldcat-col_pos = 0.
i_fieldcat-fieldname = 'RACCT'.
i_fieldcat-seltext_m = 'Account'(001).
i_fieldcat-fix_column = 'X'.
i_fieldcat-emphasize = 'X'.
APPEND i_fieldcat TO i_fieldcat.
CLEAR i_fieldcat.
i_fieldcat-col_pos = 1.
i_fieldcat-fieldname = 'TXT20'.
i_fieldcat-seltext_m = 'Description'(002).
APPEND i_fieldcat TO i_fieldcat.
CLEAR i_fieldcat.
ENDFORM. "field_cat1
*& Form field_cat
text
-->XV_BURKS text
FORM field_cat USING xv_burks TYPE char4.
lv_count = lv_count + 1.
i_fieldcat-col_pos = lv_count.
CONCATENATE 'CO_' xv_burks INTO i_fieldcat-fieldname.
i_fieldcat-seltext_m = xv_burks.
i_fieldcat-just = 'C'.
i_fieldcat-no_zero = 'X'.
i_fieldcat-do_sum = 'X'.
APPEND i_fieldcat TO i_fieldcat.
CLEAR i_fieldcat.
ENDFORM. "field_cat
Edited by: dhanashree wadkar on Apr 30, 2008 6:00 AM -
How can I dynamically change a Grids ro color
Hi,
I am using a grid within a component in my Flex application.
I have an XML dataProvider, and I want to change the row
colour of my Grid depending on a value coming form my dataProvider
– but I cant seem to get this to work :(
can anyone help / advise me on how I can dynamically change the
colour of my grid row depending on a value coming from my XML
DataProvider????
For example:
Within my component I have the following grid within an
“MXML” component called myGrid.mxml:
[CODE]<mx:Grid id="GGrid">
<mx:GridRow backgroundColor="0xCFD8DA">
<mx:GridItem>
<mx:Label id=”name_lbl”/>
</mx:GridItem>
</mx:GridRow>
<mx:GridRow backgroundColor="0xCFD8DA">
<mx:GridItem>
<mx:Label id=”expiryDate_lbl”/>
</mx:GridItem>
</mx:GridRow>
<mx:GridRow id=”statusRow”>
<mx:GridItem>
<mx:Label id=”status_lbl”/>
</mx:GridItem>
</mx:GridRow>
</mx:Grid>[/CODE]
I am setting/declaring my results/variables form my
dataProvider in the main Application (“MXML”) file:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns="*"
creationComplete="initApp()" >
<mx:HTTPService
id="myResults"
url="
http://localhost/myResults.xml"
resultFormat="e4x"
result="myResultHandler(event)" />
[CODE]<mx:Script>
<![CDATA[
import mx.core.Application;
[Bindable]
public var myDataFeed:XML;
public function initApp():void
myResults.send();
public function myResultHandler(event:ResultEvent):void
myDataFeed = event.result as XML;
Application.application.myGrid.name_lbl.text =
myDataFeed.name;
Application.application.myGrid.expiryDate_lbl =
myDataFeed.expiry;
Application.application.myGrid.status_lbl.text =
myDataFeed.status;
if(myDataFeed.status == “OK”)
Application.application.statusRow.backgroundColor="0xCFD8DA";
else if (myDataFeed.status == “WARNING”)
Application.application.statusRow.backgroundColor="0xFF9900";
else if (myDataFeed.status == “CRITICAL”)
Application.application.statusRow.backgroundColor="0xFF0000";
]]>
</mx:Script>
</mx:Application>[/CODE]
however, I cannot access the property
“backgroundColor” of the gridRow in this way:
[CODE]Application.application.statusRow.backgroundColor[/CODE]
As I get the following error:
[CODE]Severity and Description Path Resource Location
Creation Time
Id 1119:
Access of possibly undefined property backgroundColor through
a reference with static type mx.containers:GridRow.
enterpriseDB_new enterpriseDB_new.mxml
line 721 1194443056449 19295[/CODE]
can anyone help / advise me on how I can dynamically change the
colour of my grid row depending on a value coming from my XML
DataProvider????
Thanks,
Jon.quote:
Originally posted by:
ljonny18
Hi,
I am using a grid within a component in my Flex application.
I have an XML dataProvider, and I want to change the row
colour of my Grid depending on a value coming form my dataProvider
– but I cant seem to get this to work :(
can anyone help / advise me on how I can dynamically change the
colour of my grid row depending on a value coming from my XML
DataProvider????
Thanks,
Jon.
Hi,
a few hours ago I stumbled across this cookbook entry - it
didn't solve MY problem, but maybe it provides a way to solve your
problem?
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=61&product Id=2&loc=en_US
From the article:
quote:
Changing the background color of a DataGrid cell is not as
simple as changing some style because the default renderer for a
DataGrid cell does not have a backgroundColor. Therefore, to do
this simple task, you have to create a custom itemRenderer where
you draw your own background in the updateDisplayList function.
HTH
Uwe -
OBIEE 10g AGO Function Dynamically Change the Heading
I created columns in my rpd named Sales Previous Month, Sales 2 months ago and Sales 3 months ago using the AGO Function. This is working fine.
My problem is when displaying these headings the users would like to see the Month Name instead of the Headings I created. For example if looking at a report for January the users would like to see:
Sales Previous Month = December
Sales 2 Months ago = November
Sales 3 Months ago = October
Is there any way to dynamically change the value of the column header to show the name of the month?Hi SriniVEERAVALLI,
Thanks for the reply. I have found that I might haven't created the relationship between dimension and fact tables correctly.
I initially created the foreign key relationship (instead of creating complex join) in physical diagram between the dimension and fact table. And the relationship type is hence greyed out.
I have deleted the foreign key relationship in physical diagram. Then
1. In physical diagram, create complex join between dimension and fact . The relationship is 'inner' and can't be changed.
2. In Logical table diagram, create foreign key between dimension and fact . The relationship can be changed (inner, outer, etc).
Is this the correct way?
I tried these on two newly created dummy tables and it worked. -
Dynamically change label template
I'm using Apex 4.0.2 and I'm trying to dynamically change the label template for a field from Optional to Required.
I have one form and in a specific situation (known on page load) an item on this page changes from optional to required. I have a conditional validation on this item, so the user gets an error when the item is null and the condition is met.
But I would also like to change the item label template from Optional to Required. Is this possible in some way?
Maybe it is possible or easier with a different template. Currently they are:
Required Before Label template:
<label for="#CURRENT_ITEM_NAME#" tabindex="999"><img src="#IMAGE_PREFIX#apps/required.gif" alt="#VALUE_REQUIRED#" tabindex="999" /><span class="required">
Optional template:
<label for="#CURRENT_ITEM_NAME#" tabindex="999">Edited by: InoL on Aug 1, 2011 4:09 PMI got the same effect (more or less, just adding a star in front of the label) with jquery:
$("label[for='P4_REL_ID']").prepend('<img tabindex="999" alt="Value Required" src="/i/apps/required.gif">'); -
Dynamic change of headings in SQL Report
Can you dynamically change a reports Column Heading Text. I want a selected value from the database to become 1 of the column headings.
If you are ready to take bit of trouble and modify the generated package body. you can try the following.
1. go to the procedure show_internal in the generated package body.
2. you will see PORTAL30.wwv_user_utilities.add_other_arguments(
3. 'p_other_args' parameter has "_col_headings" as one of the values.
4. the corresponding 'p_other_vals' values will show up in the report column heading. [ an example is PORTAL30.wwv_user_lang.lang('Empno') ]
So if you can pass your 'dynamic' heading values here, you can change the report heading dynamically. -
Dynamically change sql query (from statement)
Hi all,
Is it possible to change the 'from statement' dynamically in
report 6i? I have 3 identical tables with different names (each
to collect data in different area) and I want to be able to
dynamically change the sql query at run time so I can use only
one (1) report to print data in 3 different tables.
Is it possible? Thanks for the tip!Yes you can. Create a user parameter lets say "frm". give the
initial value for the parameter as the table a. Ex : FROM EMP .
Go to the datamodel of the report . Change the query like this,
Original query => Select * from emp
Modified query => Select * &frm
Coz frm has the default value FROM EMP, so it will replace the
default value. When you call the report from differrent product
you can pass the parameter value as table a, table b , table x.
Hope you got your answer.
Thanx
Feroz -
Dynamically change table selecting from
in 3.2 on 11g database is there a way to dynamically change the table used in a select statement for an interactive report? I have a series of similar tables, one for each month of the year. I want to click a month on one page and bring up a report from the table for that month. I want to use one page for this report and have all links from previous page link to the same page, just different result based on what month was clicked.
I know I could just setup 12 different reports and conditionally display each region based on a value passed to the that page, but I'd prefer to only create one page & one report on that page.
Thanks for any ideas or solutions.Your function will have the code dynamically built.. What you do is you build your sql and pass in the table name and any other items that will change based upon your requirements..
here is an example...
function inventory_report (p_State IN VARCHAR2) RETURN VARCHAR2 IS
declare
q varchar2(4000);
begin
q:=' select p.category, ';
q:=q||' p.product_name, ';
q:=q||' p.quantity, ';
q:=q||' p.unit_price ';
-- Here is where we substitute the passed in state name for the data table we extract data from
q:=q||' from ' || V('p_State') || ' p, ';
q:=q||' where p.product_quantity > 0 ';
return q;
end;Thank you,
Tony Miller
Webster, TX -
Dynamically changing Restricted List
Hi,
We have a requirment,
Two team IT and HR are there. Each has it's own set of Reviewers and Approvers.
We have created a custom profile form where we have a metadata field for reviewers and approvers.
Based on user role, i am able to set up default values of Reviewer and Approver. This is fine. But IT team has two reviewers and i need to display as them drop down list.
Using Restricted list i can give the values, but i dont have the option to filter out reviewers based on role in restricted list.
Can someone guide me in how to dynamically change the restricted values in UCM.
Regards,
Boopathynot sure about dynamic restricted list in rules but you can achieve your requirent in many ways...
for description lets assume
2 roles IT and HR
2 metadata xApprover and xReviewer
Option1:_
create 2 new rules
1) ruleIT
- add xReviewer and xApprover fields and set the restricted list for IT team.
- In General Tab, check the "User rule activation condition" and in custom tab use the following code
((userHasRole("IT"))2) ruleHR
- add fields and define restricted list ...go to custom tab and add
((userHasRole("HR"))finally, add the above rules to yoru profile.
Option2:_
another option ...
define idoc include as
<@dynamichtml myCustomInclude@>
<$if not isUploadFieldScript$>
<$if userHasRole("HR")$>
<select name="xApprover">
<option value="Ap1">Ap1</option>
</select>
<select name="xReviewer">
<option value="Re1">Re1</option>
</select>
<$elseif userHasRole("IT")$>
<$endif$>
<$endif$>
<@end@>Go to your Profile Rule and Edit the fields(xApprover,xReviewer)
...in "Edit Rule Field xApprover" window, select "Use custom include" and enter the above include name "myCustomInclude"
if you need any field validation, put it in else block of isUploadFieldScript
Edited by: Bunty on Apr 3, 2013 11:32 AM
Maybe you are looking for
-
Business Partner Items (0FC_BP_ITEMS) delta extraction help
Has anybody used 0FC_BP_ITEMS extractor? The documentation says that it supports delta, but it needs to be enabled. I did enable delta extraction in IMG as SAP help site suggested. However, the documentation also says that before running delta, I nee
-
I know there's so much questions about audio when rendering but I haven't found my answer It works perfect when I rendering a comp without audio but when I turn the audio on in render settings and click on render it doesn't proceed rendering, somehow
-
Exchange rate SAOP-AXIS adapter - SAP PO 7.4
Hi Expert, My requirement is to fetch exchange xml file from web link : http://www.nationalbanken.dk/DNUK/rates.nsf/rates.xml . I have gone through Michael blog: http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/01/05/michals-pi-tips-excha
-
My canon t3i just stopped importing to lightroom
I have been using lightroom and photo suite 8 for almost a year, today lightroom does not recognize the files when i try to import? I have two cameras both t3i and both are doing the same thing so i think it has something to do with lightroom?
-
HT1414 Can't get into settings because of an icloud message
I have a message on my ipad from icloud backup stating This ipad hasn't been backed up in 3 weeks. Backups happen when this ipad is plugged in locked, and connected to Wi-Fi. I have had it plugged in for a few days, all the support states to go into