Populating dropdown with Map rule
Hey,
I am currently getting a list of users that belong to an admin role and looking up the individual fullnames to create a map to display the name in the dropdown but pass the accountId once the form is submitted. My rule is below however the result of my rule currently gives me this:
<List>
<Map>
<MapEntry key='id1' value=name1'/>
</Map>
<Map>
<MapEntry key='id2' value='name2'/>
</Map>
</List>
I really just want something like this so i can put it in the valueMap property in a dropdown:
<Map>
<MapEntry key='id1' value='name1'/>
<MapEntry key='id2' value='name2'/>
</Map>
Any ideas how i need to change my rule below:
<block>
<defvar name='idList'>
<invoke name='getUsers' class='com.waveset.ui.FormUtil'>
<ref>:display.session</ref>
<map>
<s>conditions</s>
<map>
<s>adminRoles</s>
<s>Role</s>
</map>
</map>
</invoke>
</defvar>
<dolist name='entry'>
<ref>idList</ref>
<map>
<ref>entry</ref>
<invoke name='getAttribute'>
<invoke name='getObject'>
<ref>:display.session</ref>
<s>User</s>
<ref>entry</ref>
</invoke>
<s>fullname</s>
</invoke>
</map>
</dolist>
</block>
Try:
<block>
<defvar name='idList'>
<invoke name='getUsers' class='com.waveset.ui.FormUtil'>
<ref>:display.session</ref>
<map>
<s>conditions</s>
<map>
<s>adminRoles</s>
<s>Role</s>
</map>
</map>
</invoke>
</defvar>
<defvar name='retMap'>
<new class='java.util.HashMap'/>
</defvar>
<dolist name='entry'>
<ref>idList</ref>
<set>
<ref>retMap</ref>
<ref>entry</ref>
<invoke name='getAttribute'>
<invoke name='getObject'>
<ref>:display.session</ref>
<s>User</s>
<ref>entry</ref>
</invoke>
<s>fullname</s>
</invoke>
</set>
</dolist>
<ref>retMap</ref>
</block>
Similar Messages
-
Hi Friends,
I have one difficult issue which have one mapping rule to write user defined function. I am sending mapping rule Please give me java coding to create udf for this mapping rule which is following below:
CRFT.COSTR = M_ORD_01 and
CRFT.CRID = CRHE.CRID and
CRFV.FTNO = CRFT.FTNO and
CRFV.ATNAM = ZPPI_ORDER_SCHED_EN_DATE
And
CRFT.COSTR = M_ORD_01 and
CRFT.CRID = CRHE.CRID and
CRFV.FTNO = CRFT.FTNO and
CRFV.ATNAM = ZPPI_ORDER_SCHED_EN_TIME
From ATWRT of ZPPI_ORDER_SCHED_EN DATE+ ATWRT of ZPPIORDER_SCHED_EN_TIME
In format yyyy-MM-ddTHH:mm:ss
using this mapping rule, ATWART field can map with target field "End Time" i think.
Actually source field is CALCULATE but this field is not in Source structure
target field is "End Time" this field is in Target Structure.
I will wait for ur response
Thanks adn regards
SaiHi Jagadish,
This RFC is CONTROL_RECIPE_DOWNLOAD
in this RFC, i want to map ATWRT field to Target field "End Time" with mapping rule which i had already given.
In Graphical mapping, i am doing . but i can not get it because mapping condition is difficult. if you have any idea in graphical mapping give me early
before that i have to give explantion about this is date value and time value passed through this ATWRT field as different records.
i am doing as a condition ie first i have taken date condition. from that condition, first two fields CRFT.COSTER and M_ORD_01 has given to "equals" funtion like that have done remaining fileds then the output of those "equals" functions given to "and" functions finally i get one output of "and" function. while sending DATE values from RFC this output of "and " function.
Like this, for Time condtion i have done mapping same way and giving a TIME values from RFC as Second record then output of this "and" function while sending second record with time value.
here mainly i am getting problem is .....
here i am taking source field ATWRT( in this field i am sending date format adn time format as different records) with the outputs of the mapping conditons as input vaules of another function. i dont have any idea for another function why because is first date record should be wait until the time record comes in this function.after then both vaules should concat .
now here whenever you send date value through this field ATWRT as first record and after satishfy the date condition form mapping rule, The date value of ATWRT should go to input of concat function. next i will send time value like date value through ATWRT as second record . It should go to another input of concat function. Then here both date value and time value concat with T and should be come output in the format yyyy-MM-ddTHH:mm:ss and this will go to Target field "End Time".
I will be wait for ur possitive reply
thanks for giving response
Thanks adn regards
sai -
How to insert data in the table without join and using mapped rule value
1.Table SOL_K
A B C D – Columns Name
C D A B –Coulmns Values Defined (Rule --- Defined)
2.SECOND table SIC_K
SIC_ K
A B C D
Kamal Micky NULL MANOJ
3 Table SIC_Mapping
Same Columns A B C D based On Table SOL_K defined rule
I want to insert values(from table SIC K) into table SICMapping Table with the help of first table(SOL_K)(mapped rule)
Required Result SIC_Mapping Table
The output will be come like this.
A B C D — Columns Name
NULL MANOJ Kamal Micky ---- Came based on defined Mapping RuleWhat's your database version?
That's a funny requirement.
How about :
select case sol.a
when 'A' then sic.a
when 'B' then sic.b
when 'C' then sic.c
when 'D' then sic.d
end as a
, case sol.b
when 'A' then sic.a
when 'B' then sic.b
when 'C' then sic.c
when 'D' then sic.d
end as b
, case sol.c
when 'A' then sic.a
when 'B' then sic.b
when 'C' then sic.c
when 'D' then sic.d
end as c
, case sol.d
when 'A' then sic.a
when 'B' then sic.b
when 'C' then sic.c
when 'D' then sic.d
end as d
from sol_k sol, sic_k sic
;XQuery can do the trick too :
SQL> SELECT *
2 FROM XMLTable(
3 'for $i in ora:view("SIC_K")/ROW
4 return element r {
5 for $j in ora:view("SOL_K")/ROW/child::*
6 return element {name($j)} {$i/child::*[name()=$j]/text()}
7 }'
8 columns
9 a varchar2(30) path 'A'
10 , b varchar2(30) path 'B'
11 , c varchar2(30) path 'C'
12 , d varchar2(30) path 'D'
13 );
A B C D
MANOJ Kamal Micky
Edited by: odie_63 on 29 juin 2011 22:07 -
Idoc to flat file conversion: problem with mapping
Dear experts,
I have the following scenario: SAP (idoc) -> XI -> 3rd party
The idoc has s structure like this:
. ZSCX001 (idoc name)
... IDOC
..... ORDERHEADER
....... ORDERLINE
......... DELIVERY LINE
......... DELIVERY LINE
..... ORDERHEADER
....... ORDERLINE
......... DELIVERY LINE
......... DELIVERY LINE
etc
The flat file has this structure:
. FILENAME
... RECORD
..... FIELD1
..... FIELD2
... RECORD
..... FIELD1
..... FIELD2
etc
Now, per IDOC I need to create 1 file. For each delivery-line in the IDOC I need to create 1 record in the outputfile (flat file).
In message mappings, I did the following:
- messages-tab: Occurrence of the Idoc and inbound message type for flatfile: both 1
- design-tab: I linked IDOC to the FILENAME (so for each Idoc I create 1 flat file)
- design-tab: I linked the tag "Delivery line" to "RECORD" (I expected 1 record per delivery line)
When I test it, I only get 1 resulting record in the flat file, even if I test with 3 ORDERHEADER->ORDERLINE->DELIVERY LINE segments.
Can anybody tell me what I am doing wrong?
Thanks in advance,
WilliamHi,
First make sure occurence of Record is 0..unbounded.
Second use the blow mapping rule..
Delivery line --->RemoveContext ---> RECORD
Regards,
Sarvesh -
How to Insert data in 3 table without use of join 1table mapped rule define
1.Table SOL_K
A B C D – Columns Name
C D A B –Coulmns Values Defined (Rule --- Defined)
2.SECOND table SIC_K
SIC_ K
A B C D
Kamal Micky NULL MANOJ
3 Table SIC_Mapping
Same Columns A B C D based On Table SOL_K defined rule
I want to insert values(from table SIC K) into table SICMapping Table with the help of first table(SOL_K)(mapped rule)
Required Result SIC_Mapping Table
The output will be come like this.
A B C D — Columns Name
NULL MANOJ Kamal Micky ---- Came based on defined Mapping RuleThis is the forum for issues with the SQL Developer tool. You will get better answers in the SQL and PL/SQL forum.
-
No document type defined in mapping rule
Hi,
Information on document type is need to be loaded from SAP R/3 to BCS for reporting purpose. Customised doc type with assigned role - subassignment already defined. Problem is i still don't see the document type (fiels) for selection in mapping rule (under load from data stream).
Any input would be appreciated. Thanks.
Regards, ReneeDue to reporting requirement, there are certain GLs need to be filter futher by doc type. As long as the document type is successfully extracted from SAP R/3 to BW BCS and filtering is defined in BE Analyzer, i don't need to display it in the report.
Anyway, customised document type already created and doc type can be extracted from SAP R/3. tq -
Directory Integration Platform - DN Mapping Rule
Hi all,
Can anyone help me with setting up the mapping in a directory synchronization profile in DIP?
Using the GUI, the three fields required are Source Container, DIP-OID Container and DN Mapping rule.
The containers are obvious but what is the syntax for setting the DN mapping rule? I just want to match equality on the cn attributes in each container.
Many thanks,
Bernier u using the AD specific or Default schema?
Cant u simply put the selection criteria as "Present" instead of "Bank" - of course since you say that dn is not available we need to see which field should provide the info. -
Hi everyone
I've got a problem with maps on my E72.
I've seen advert that Nokia is going to let everyone use maps for free on selected models.
I was going to buy Sat Nav for whole Europe as I travel a lot and I was going to change my old N95. I thought I could do both in one new phone. Checked all the available models and chose E72. It said it;s got GPS and you don't need to use your network and spend fortune on internet connection. Got it from eBay for £270.
I installed Ovi Maps from internet and the first thing that surprised me was it had 'only' 7-8MB.
I thought that something was wrong, maps for 72 countries couldn't be 8MB big.
After some time I managed to set my e72 up. Put my Maps on and...
It takes loads of time to find GPS connection, but the worst thing is if I type lets say Paris it doesn't find anything. Map has wholes, like suddenly the roads end and there's nothing there.
My question is what am I doing wrong? Do I need to download something more? I didn't have any maps on my phone when I bought it. Where can I find them?
If someone could help I'd appreciate it.
Thanks a lot.I forgot to mention that when I choose a destination it keeps saying Calculating route all the time. I waited about 15 minutesand it didn't calculate anything.
-
Problem with maps in Mavericks on iMac
I have a problem with my Maps on Mavericks.
I can open it just fine, no crash or whatever but the map itself just won't load, whatever mode it is on. Here is the screenshot of my Maps:
As you can see, it just stays blank all the time.
I'm also running Parallels 9 and don't know if that has something to do with problem.Spent days trying various fixes, but this is the one that did it for me. Thanks!
livetowin
Re: Problem with maps in Mavericks on iMac
Dec 8, 2013 7:14 PM (in response to robin1943)
Try this
Since my date and time were incorrect and imessage was not working as well, I tried this
1. Go to system preferences and click date and time
2. Select date and time tab
3. Uncheck "set date and time automatically" and manually enter the correct time
4. Go to time zone tab and uncheck the box there too
5. Go back to date and time tab and now check the box "set date and time automatically"
6. Then check the box in time zone as well
Now open maps and see if it works! -
Period account closing bal includes cumul movements, even with a rule.WHY?!
Hello chaps, I've been struggling with this for a few days now and I'm going to have admit defeat. :(
I'm trying to do two things.
1. View periodic balance sheet movements
2. Get the correct custom closing balance to roll up once I've done 1 (in Periodic view)
What I've done.
For Point 1. I use the SwitchTypeForFlow attribute on the flow members. This let's me see the balance sheet movements in Periodic view. Great.
Which leads me onto Point 2. Whilst I can now see the balance sheet movements in Periodic view, the closing balance (the parent of Opening + increases - decreases) does not total correctly. Instead of adding the Opening + increases - decreases for ONE period, It adds them for ALL the previous periods.
Ok, so to get round that, I thought I'd just create a new member called "ClosingBal" and override what HFM is doing. I'll now have two rules. The "OpeningBal" is just the closing balance of last period. "ClosingBal" is just the sum of opening + increases - decreases for the period. So here are the two simple rules
HS.Exp "C1#OpeningBal=C1#ClosingBal.P#Prior"
HS.Exp "C1#ClosingBal=C1#OpeningBal+C1#increases-C1#decreases"
But when I do this, even with the rule, it STILL adds up the cumulative increases and decreases for all prior periods as well, not just the ones for the period. Why is it doing that? All I want is my closing balance in that one period to be equal to opening balance + increases - decreases. It works fine in YTD view, but not Periodic view. I need it to work in Periodic view
any help much appreciated.
Thanks,
SalSal,
There is no solution here that allows the user to simpley change the View member from Periodic to YTD, keeping all else the same, and get your desired result. However, you could create a solution that when a user wants Periodic numbers he/she would select the Periodic View member and then select a unique ClosingBal member (eg. 'ClosingBalPer') and a unique OpenBal member (eg. 'OpenBalPeriodic'). When the user wants YTD numbers he/she would select the YTD View member and then select a different and also unique ClosingBal member (eg. 'ClosingBalYTD') and a different and also unique OpenBal member (eg. 'OpenBalYTD').
Here you would have 2 different rules for you opening balances:
HS.Exp "C1#OpeningBalPer=C1#ClosingBal.P#Prior"
HS.Exp "C1#OpeningBalYTD=C1#ClosingBal.P#Last.Y#Prior"
And your ClosingBal rules would look like this:
HS.Exp "C1#ClosingBalPer=C1#OpeningBalPer+C1#increases-C1#decreases"
HS.Exp "C1#ClosingBalYTD=C1#OpeningBalYTD+C1#increases-C1#decreases"
In regards to the ClosingBal rules, these aren't necessary if you make the ClosingBal member a parent of the other members. If 'decreases' need to be subtracted then they should be flagged as 'SwithSignForFlow'.
With this solution if a user selected YTD with the Periodic members or Periodic with the YTD members then their numbers wouldn't make sense so there would be some user eduction involved with this solution. -
List Tile View not working with include rule on iOS?
hi Expert,
I used the List Tile View with include rule in Agentry 6.0 on WinCE before to generate "selected" object list upon different conditions, e.g., assigning tasks based on scenarios.
Currently, I am experimenting the same function on iOS tablet.
On the start screen which is a detailed screen for main object, there is a List Tile View and an include rule. However, the objects in the tile list are not updated correctly when the output of the rule changes. Note that the same include rule works perfectly with a List View for the same collection.
To my observation, the problem seems to associated with "update" of the tiles when result of include rule changes. For example, in scenario 1, there are 5 objects in the list; switching to scenario 2, there are 10 objects. From the No.6 to No.10, the objects are correct. The No.1 to No.5 are still the original 5 objects for scenario 1.
When the user clicks on tiles, it makes the situation worse. Normally, a single object's tile will always be shown in the selected tile regardless which tile is selected from the list.
My development environment is 6.0.40 and the client is 6.0.40 on iPad (iOS 7.1). I would like to know whether this is a known issue before I provide more details.
Thanks.
-Yanghi experts,
When I asked the question on this list tile view refreshing issue, my dev environment is Agentry 6.0.38.
In Agentry 6.0.40.1's release note, there is a fixed
AG-25821 iOS 7 refresh issue with iPad tile list
However, I currently have Agentry 6.0.42.1 on iPad (iOS 7.1.2). And my editor/server is 6.0.42.0. I still have the list tile view refreshing issue. The same rule can be used on list without any problem. But the list tile still has trouble on display the right set of objects.
My question is is that fix related to the problem I saw?
Thx.
-Yang -
Slow Performance with Business Rules
Hello,
Has anyone ever had slow performance with business rules? For example, I attached a calc script to a form and it ran for 20 seconds. I made an exact replica of the calc script in a business rules and it took 30 seconds to run. Also, when creating / modifying business rules in EAS it takes a long time to open or save or attach security - any ideas on things to improve this performance?
Thanks!If you are having issues with performance of assigning access then I am sure there was patch available, it was either a HSS patch or planning patch.
Cheers
John
http://john-goodwin.blogspot.com/ -
Gettin Error While activating Device Mapping Rule
Hi all,
I am getting below error while generating Device attribute mapping Rule :
Err:Metainfo FM MMW_DM_DSMS_METH_META - Class Name not specified
Any idea how to resolve this problem.
Regards,
AbhishekHi Abhishek,
Custom attributes will not be reflected under category list.
It can be viewed by clicking 'customize' button only in sdoe_rmm01.Do not add custom attributes part of category.
If you have clicked 'Admin UI display' while creating it will get reflected in the admin portal under single valued or multi valued attributes tabs .This way it allowes you to assign custom atrribute values to devices from admin portal.
By the way when you created the other attributes.in category .how did you manage to give proper data types ?
When you say , backward compatible, are you planning to migrate the SyncBOs defined in MI to the current DOE?If yes , this is all that you need to do.
Regards,
Liji -
What's Wrong with These Rules?
I can't see what's wrong with these rules. Does any one see the problem?
Passport data is verified if
Database provides an exact match for the passport number and date of birth.
Photo matching is required if
Passport data is verified.
Passport photo matches evidentiary photo if
Photo matching is required and
Photo match is valid.
Photo match is valid if
Photo matching is required and
user states that photo matches evidentiary photo.
The investigation session asks the question "does Database provide an exact match ..." Response is True.
"Photo matching is request" is set to true because "Passport data is verified" is true.
Then the investigation stops. It doesn't go on and ask if "user states that photo ...". This arrtibute has the value of <unknown>. All the identifiers (red numbers) match up correctly. I just can't see what is wrong.
Thanks,
TerryThanks, Brandon,
Your idea was helpful. It was a goal, but not a top level goal. By checking the data at each step, I found that a higher level rule that was dependent on these rules was the culprit. I should have had an "and" when I had wrote the rule with an "or". I don't entirely understand why this higher level rule needed to have "and" instead of "or", but it works now and that's all I care about.
Terry -
How to append calling and called number with translation rules?
Hello,
I have one question about digit manipulations.
How to append calling number and called number with IOS commands?
For example, when 123 dials 45678, translations have to be performed and the new called number to be 12345678.
Thank you,
I will vote this conversation.It is not possible with translation rules.
However, you can do that with a TCL/IVR script.
Maybe you are looking for
-
GB 6.0.5 to 10.0.2.
I have recently migrated from Snow Leopard to Mountain Lion. All this time GarageBand has been at version 6.0.5 (428.50). Occasionally I have checked for an updated to GB but have always had the response that 6.0.5 is the latest version. A month or
-
MacBook Pro can't detect my projector. Only displays screen saver
Tried connecting Optoma projector to new Macbook Pro. However only the screen saver is being displayed. When I go to Preferences - Displays - just says that no device is detected and gives no options to change anything. Did not have this problem with
-
How to store data temporarily in a tablecomponent not bound to database
hi, I have two fields called Product and quantity which are not comming from any database table but need to be stored in a table format so that i am able to add rows to it (ie add more products and their quantity).when i am done with adding rows i sh
-
Dear apple Please helpe to answer my question 1- I want ti know why apple dont add font khmer in ios ,because Have a lot of people in Cambodia use iPhone , 2- in my iPhone 5 restore errer 9 , I change USB and change computer already but can not fix i
-
Syntax error in Define entitytype method in MPC class.
Hi, I am trying to create Odata service by creating new entity type and entity set at service level creation itself (Data model-->Create). Now at the time of generation of classes I am getting syntax error fields are not defined in method, Define Ent