Dynamically passing input to the OVS field??
Hi Experts,
I have Two custom BO's, CBO1 and CBO2. For custom BO CBO2 i have created a OVS with exposing few fields in the OVSValueSelectorInport.
This OVS i am using in CBO1 .
But i have a requirement where i need to pass the value to the exposed fields dynamically.
Example : i have a common field called X in the both the BO's.
When the CBO1 status field value is OPEN, i need to set the CBO1 - X field value to the CBO2 OVS Search parameters.
When the CBO2 status field value is COMPLETED , I don't need to pass any value to the CBO2 OVS search parameters( In this OVS also i have X field?).
i feel , Here i need two configurations of the OVS to acheive my requirement.!!
Is there any way to create multiple configurations for OVS in C4C??
When i am assigning OVS Component to the CBO2 field in the UI designer , If i bind the exposed X field value with the CBO2 field value , then in the both OPEN and COMPLETED Status of CBO2 it will filter the result and will show to me, but this is not what i want.??
Can any one please share an idea??
Thanks,
Mani
Hi Vinod,
Thanks for the reply..!
Its not triggering my event handler script and not taking the assigned values form the Script. I have tried in different ways to assign values to it.
So i found one more work around, I have created a transient fields in my BO and in the after modify script file i am assigning the values to these transient field. Here i can differentiate the status and can fill the field values . the same transient field, I am using in OVS Import fields binding..
Now its working as per my requirement..
Cheers,
Mani
Similar Messages
-
Address Book contact preview shows a different date than what is input in the birthday field.
When opening the address book and clicking on an entry, the preview pane at the bottom shows a different date than the date that is entered in the birthday field. It shows the day before the actual date that is entered. See images below:
Thanks!Thunderbird numbering is based on the Extended Support Releases, which are provided every seven "regular" cycles (thus after 7 6-week cycles = every 42 weeks) to minimize fallout from new features hitting the releases to frequently. Initially, those release were issued to organizations only which require some kind of internal review or certification of software prior to deployment.
Currently we are in the "37.0" cycle and 38 beta 1 has just been released (but doesn't have the fix yet). Meaning, the next release after 31.6.0 won't be 31.7.0 but 38.0 already, followed by 38.1.0 up to 38.6.0, the continuing with 45.0, etc.
Confusing, yes, but that's what they came up with. -
Input enabling the custom fields
Hi All,
I have added two fields ZVAL_STRT and ZVAl_END to the shopping cart at item level.
Following all the rules of Note no 672960, the fields ae successfully added to the shopping cart.
But the fields are not coming in editable mode. Even implementing badi BBP_CUF_BADI_2, method MODIFY_SCREEN, and
setting the XINPUT fields to 'X' , I am not getting the fields in editable mode.
Please reply soon..
Regards
GaurangBy Default it will come in editable mode only .. No need to set explicitly in CUF BADI .. Comment the whole CUF BADI once and check in the screen also see the HTML templates as well... Which version of SRM you are using ?
Regards
Syed -
How can I dynamically pass values to the DayOfWeek array given below?
I have this below code:
var onMondayAndTuesday = DailyTimeIntervalScheduleBuilder.Create()
.OnDaysOfTheWeek(new DayOfWeek[] { DayOfWeek.Monday, DayOfWeek.Tuesday });
var trigger = TriggerBuilder.Create()
.StartAt(DateBuilder.DateOf(StartHour, StartMinute, StartSeconds, StartDate, StartMonth, StartYear))
.WithSchedule(onMondayAndTuesday)
.WithCalendarIntervalSchedule(x => x.WithIntervalInWeeks(Int32.Parse(nWeekInterval)))
.EndAt(DateBuilder.DateOf(0, 0, 0, EndDay, EndMonth, EndYear))
.WithIdentity(triggerKey)
.Build();
Here depending on the days users have selected any weekday would be passed in to the DaysOfWeek array. It might be just monday or monday
and friday etc. How can I achieve this? Please advice.
mayooran99Try this:
DayOfWeek[] days = new DayOfWeek[7];
days[0] = DayOfWeek.Friday;
days[1] = DayOfWeek.Monday;
days[2] = DayOfWeek.Saturday;
var onMondayAndTuesday = DailyTimeIntervalScheduleBuilder.Create()
.OnDaysOfTheWeek(days);
also you can use it as a list:
List<DayOfWeek> d = new List<DayOfWeek>();
d.Add(DayOfWeek.Friday);
Fouad Roumieh -
Restricting to enter value in the OVS field
Hi gurus,
I've a requirement where i need to restrict the user from entering some value in an input field which has an OVS and should only select the F4 help to that input field.
The user should be left with the only option of selecting the value help but not entering manually in the input field.
Is this possible.
Please help me in achieving this.
Thanks in Advance
ShravanHi Shravan,
Do like this..
Insted of input field take text view or input with readonly.
create another input field and bind with same attribute
place after first one, or use matrix layout. ( adjust two fields like input with f4 ) and make it width to 1 pix.
so you only visible F4 for that field.
Now, first input wont allow to enter any value, from F4 user can select values.
Hope you understood.. any issues revert back.
Cheers,
Kris. -
How to get the co-ordinates of a dynamically created input field
Hello Frn's
i have created a dynamic text view . but this text view is not appearing at proper position . I want palce it infront of a dynamically created input field . how can i do this ?
as i am thinking ...i should first of all get info about the co-ordinates of dynamaclly creatd input field . and with respect to these co-ordinates ...set the position of text View .
Please suggest your thoughts .
Thanks and Regards
Priyank DixitHi,
There is no provision in WD for getting screen coordinates and then placing the UI element.
You to add the UI element to layout editor and based on the layout type it will add the UI element to respective position.
I would advice not to create dynamic UI elements( instead you can create them statically and then play with visibility status through context binding ). This will be more effective way and less error prone. This is also recommended practice.
still,For dynamic creation you can refer to following wiki:
http://wiki.sdn.sap.com/wiki/display/WDABAP/CreatingUIElementsDynamicallyinAbapWebdynpro+Application
regards
Manas Dua -
Dynamic output & input fields in the table control
HI Guys,
How can one change the attribute of input field to output field basically greying of field) dynamically
based on the some flag. Loop at screen does not work. I need to change the attributes
of field 'outfiled' and output field display only'.
Any help is highly appreciated.
Regards,
HarshaHi Harsha,
I generated a table control (ERP 6.2) and somewhere I found the coding like this (the name of the table control is TABLE_CONTROL):
*&spwizard: output module for tc 'TABLE_CONTROL'. do not change this lin
*&spwizard: get lines of tablecontrol
module TABLE_CONTROL_get_lines output.
g_TABLE_CONTROL_lines = sy-loopc.
If I do a loop at the screen at this place, I can control the individual input/output for the screen fields (the table fields). In my work area (WA_CONTROL) I can see the actual value of fields. Depending on this, I choose to enable/disable input via:
loop at screen.
if wa_control-material <> ' '.
screen-input = '0'.
modify screen.
endif.
endloop. -
Passing values to custom OVS dynamically
Hi,
I am trying to select the Address from a list of addresses available for an Account while creating Visit for that account.
In Visit QC, I populate the Account field using the standard Account OVS. After this, I want to show the list of Addresses available for this selected account in my custom Address OVS.
Currently I have configured my OVS to Customer XBO. In this, I am passing Account ID as the parameter to the query and I am displaying the Account ID and the Addresses for that account.
But this OVS displays all the Account IDs and only 1 address for all the available Accounts.
As can be seen from the below screenshot, I have selected Account= ‘Lowes’ in Visit QC. But when I click on Addresses OVS, it displays me entire list of Accounts.
Is there a way in which I can dynamically pass the Account ID of the account selected in the Visit QC to my custom OVS? I also need to display all the Addresses available for this AccountID.
Please suggest how this can be achieved.
Thanks,
AmbujaHi,
By Custom OVS what I mean is, I have created an OVS based on standard Customer object. I am not using the public OVS. I have not defined any Custom BO. Do I need to define a custom BO for this?
I am using Customer XBO to show the list of Addresses as shown in below screenshot.
ValueHelpQuery is bound to InternalID of Customer.
I have not configured any Inport or Outport. Actually I am implementing the OVS for the first time. Could you please guide me on what needs to be configured in the Inport. I referred the PDF documentation for configuring OVS but did not find much info on configuring Inport and other event hanldlers.
Thanks,
Ambuja -
Passing Input Text Data to Dynamic TextBox in Another Scene
Hi everyone there,
I am creating a quiz for my school using flash.
I am wondering if it is possible to pass the answers key in
by students in the input text field to the dynamic textbox at the
end of the entire quiz to show all the ans by the students and all
the model ans of the quiz.
May i know if this can be done?
Or is it better to pass info from text box to text box in
from one frame to another in the same scene?
Also, how do i create a page that will list down the total
number of questions the student has answered correctly and show her
score?
Thank you very much.
FiOh
*^^*An instructor at a summer camp told me to avoid scenes, so
I've been afraid of them ever since.
I'm not sure I quite understand the first post - you want the
students to put in their own answer key?
I made a quiz once. It was about genetics. This first frame
had a "let's go" button that started the quiz. Each consecutive
frame had a question and an oddball amount of input fields. The
frame had each input set to a certain variable. At the end it added
one to the score variable for each textfield that matched my magic
answer. You could do all kinds of things this way. The syntax
looked something like:
if(input3A.text = whatever the answer is) {
++score; //adds to score variable
and it could make a result3A_txt.text = "Bingo";
"input3A" is arbitrary - for problem three, two, etc. the
text field was called "input" and then a number, and then, if there
was more than one text field for that problem, a letter. This is
just the first field in problem three.
The second line in the if statement talks to a field. You put
a static text with the problem number, and next to it,
result3A_txt. If the user answered the problem correctly, the field
will become "Bingo" or something. You would do this for each
problem so that every correct one would say "Bingo."
To get a percent score:
percent_txt.text = Math.round((score / max_score) *
100); -
Dynamically passing text and url-based images as an input parameter to cf8 report builder
I'm unsuccessfully trying to dynamically pass text and url-based images to a group footer or the detail section via an input parameter or even hardcoded. The field has the attribute 'XHTML Text Formating' set to True. The following are failed samples of a simplified value:
"<img height=’300’ alt=’Document’ width=’300’ src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
or
"<img src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
This just results in the above text being output. The end result would have various text and images from a database as input by a user, thus the reason I cannot just use the hyperlink information attribute as I could if it were a single known image. I tried rtf and pdf report types. Ideas?HTH,
Thanks. I'll keep that in mind, although I don't know how many images my user might need or what sizes so that might be tricky.
Since my target output is rtf so that MS Word can be used to edit the result, I added a pagebreak to a MS Word doc and used the resulting html source to replace the rich text editor source code for the page break, but that did not help either. The page break was so a user could add an image later. Something is wrong with the Report Builder related to intepreting XHTML, especially anything that has an attribute, including URL-based image links. I hope they try to provide another update before CF9. I doubt my client will be going to CF9 for some time, since they are just completing the migration to CF8.
BrianO -
How to delete Dynamically created input field UI Element
Hi all,
I want to delete dynamically created input field and label.
Is there any method please tell.
Thanks in advance
HemalathaHi,
In the WDEVENT parameter of the action handler you can find the event id.
***Variables
DATA:
lv_selected type string. "Selected tab value
***Structure and internal table for the Events and messages
DATA:
lt_events type WDR_EVENT_PARAMETER_LIST,
ls_events type WDR_EVENT_PARAMETER.
***Field symbols
field-symbols: <fs_value> type any. "Attribute value in events table
***Move the event table to lt_events
lt_events = wdevent->parameters.
read table lt_events into ls_events with key name = 'SAVE'. "Button Id
if sy-subrc eq 0.
assign ls_events-value->* to <fs_value>.
if sy-subrc eq 0.
lv_selected = <fs_value>.
endif. "IF sy-subrc eq 0.
endif. "IF sy-subrc eq 0.
Regards,
Lekha. -
Dynamically passing the source table name to OWB mapping
I am building a mapping wherein one of the source tables is a view. The view name varies with the time parameter I pass in. I am looking at ways to pass in the time parameter to the mapping procedure such that it first gets the view name from a table and uses that view as the source table to fetch data. Any directions?
In normal PL/SQL coding, I can first get the view name and use this view name to buld a dynamic query, which can be then executed.This is a common question. The best way to do this is to use a synonym.
Create the synonym in the database and import into OWB. Use the synonym in your mapping. Have your mapping accept a mapping input for the table you want the synonym to point to. Setup a premapping process to re-create the synonym with the table you want to use.
Here is the procedure that I use. It defaults to a private synonym. Remember, the synonym will be created in the same schema that the mapping is deployed to.
CREATE OR REPLACE PROCEDURE "CAWDATA"."CREATE_SYNONYM_PRC" ("P_SYNONYM_NAME" IN VARCHAR2, "P_OBJECT_NAME" IN VARCHAR2,
"P_IS_PUBLIC_SYNONYM" IN BOOLEAN DEFAULT false) IS
BEGIN
if p_is_public_synonym = true then
execute immediate 'create or replace public synonym '|| p_synonym_name || ' for '|| p_object_name;
else
execute immediate 'create or replace synonym '|| p_synonym_name || ' for '|| p_object_name;
end if;
exception
when others
then
raise_application_error(sqlcode,sqlerrm) ;
END; -
How to deactivate the screen fields dynamically in Module Pool Program?
Hi guys,
How to <b>activate & deactivate the screen fields</b> of a <b>module pool program</b>
<b>dynamically</b> through program. Like Change mode and display mode in a single
screen.Hi,
Make use of a Variable,say gv_flag, for both Activate and Deactivate functionalities. As many times you hit the same button, change this variable value. For example, let us say first time you hit this button, assign value 'X' to this variable. Second time you hit this button, assign value ' ' to this variable. In PBO based the variable value you have to Activate and Deactivate.
PBO.
if gv_flag = 'X'. " Activate
loop at screen.
if screen-fname = 'ITAB1-MATNR'.
screen-input = '1'.
modify screen.
endif.
endloop.
elseif gv_flag = ' '. " Deactivate
if screen-fname = 'ITAB1-MATNR'.
screen-input = '0'.
modify screen.
endif.
endloop.
endif.
PAI.
case sy-ucomm.
when 'ACDC'. " Activate/Deactivate
if gv_flag = 'X'.
gv_flag = ' '.
else.
gv_flag = 'X'.
endif.
endcase.
thanks,
sksingh -
ADF 11g + How to capture the value of a dynamically created input text box
Hi All,
I have a requirement where, on selection of the value in a drop down, the input text boxes need to get dynamically populated on the JSPX page. I'm able to bring this functionality, and it is working fine.
But the challenge right now I'm facing is that, how to read/capture the value entered in those dynamic text boxes on submission of the page. Please help me in getting this resolved.
Below is the code snippet I'm using for this.
// Clearing the existing input fields in the Panel form
while (pf100.getChildren().iterator().hasNext()) {
pf100.getChildren().remove(pf100.getChildren().iterator().next());
// Creating the new fields based on the number of IP addresses selected
for (int i = 0; i < iIPAddress; i++) {
RichInputText pcPreferredDomain = new RichInputText();
pcPreferredDomain.setLabel("Preferred Domain / Hostname for Desktop PC/ Laptop - " +
(i + 1));
pcPreferredDomain.setColumns(40);
pcPreferredDomain.setId("pcpfdomain" + (i + 1));
pf100.getChildren().add(pcPreferredDomain);
Thanks All in Advance,
Thanks & Regards,
Dharmathej MAs per your method, you are creating the RichInputText components as local variables.
What happens when you are creating them as class level variables in the managed bean, if you do so, you can refer to the values of the UI components in the actionListener/action code for the command button in the managed bean
sample:
public class ManagedBean{
RichInputText [] pcPreferredDomain;
public ManagedBean(){
// Clearing the existing input fields in the Panel form
while (pf100.getChildren().iterator().hasNext()) {
pf100.getChildren().remove(pf100.getChildren().iterator().next());
pcPreferredDomain = new RichInputText[iIPAddress];
// Creating the new fields based on the number of IP addresses selected
for (int i = 0; i < iIPAddress; i++) {
pcPreferredDomain[i] = new RichInputText();
pcPreferredDomain.setLabel("Preferred Domain / Hostname for Desktop PC/ Laptop - " +
(i + 1));
pcPreferredDomain.setColumns(40);
pcPreferredDomain.setId("pcpfdomain" + (i + 1));
pf100.getChildren().add(pcPreferredDomain);
Thanks,
Navaneeth -
Subscript & Superscript in dynamic and input text field in Flash
Yes, <sub> & <sup> tags are not supported by
Flash but you can
use Subscript & Superscript in dynamic and input text
field in Flash:
Download & install Subscript & Superscript fonts
from
http://www.subscriptfont.com
or
http://www.superscriptfont.com
You will need to restart Flash software after installed
fonts.
Create a dynamic text field with Arial font embeded. Set the
HTML property to true.
Create a dynamic text field with Subscript font embeded.
Create a dynamic text field with Superscript font embeded.
Use HTML tag to set text to subscript or superscript like
below:
Some text<font face="Superscript">©</font>
If you are using ActionScript to test the htmlText, use
script like below:
my_txt.htmlText = "Some text<font
face='Superscript'>TM</font>";
They are better than CG since it goes lower than the baseline
and it's real subscript..Hi Nirnalatha,
I have newly joined this forum and while going through the
posts I came across your post which I thought I could help out. But
I think I am too late for the reply.
I am also into Flashlite development couple of months from
now. Coming to your questions:
1. Textbox problem: I am surprised to know that E70 mobiles
(Device central list has E70-1 only) does not show input text box
when cursor is in input box. Anyways its a good thing that you dont
get an additonal input box. Like all J2ME applications you will be
able to type the text inline. Infact we had reverse problem where I
was told to create inline edit input box instead of flashlite input
box. I think this is the mobile setting. Check the device features
in the Adobe Device Central under Flash - Standalone player - Text
and Fonts features. It will be mentioned whether inline text is
allowed or not.
2. Soft keys issues: You need to use
fscommand2("SetSoftKeys", "Previous", "Next");
and use a key listener in order to override the Mobile
Softkey commands. Check out the flashlite help which clearly
explains this.
Hope I have given youa way to solve ur problem.
Maybe you are looking for
-
How to deploy a Web Application in Apache Tomcat?
Hi, I am a SAP Master Data management guy. But I have been assigned some Java J2EE work. I need help. I want to deploy a JSP Page in Apache Tomcat 5.5.26 Server. The procedure I followed is: I wrote a JSP : helloworld.jsp : <html> <title> Test JSP </
-
Mac office crashes on opening since mavericks
since upgrading to mavericks ... I now find mac office word, excel, power point, outlook all now crash on opening... wonderfull ! now what am I supposed to do ! have never ever upgraded osx and found key software such as this no longer works ! please
-
Can´t erase mail messages and couldn´t find sent ones
Hi there, I am new in this and with my ipad and have some problems using email company account; I can not erase messages and an advise says ´ïmpossible to transfer to trash´´ In adition, when I want to see my sent messages I found old ones but neithe
-
Sleep/wake button not working - fixing in Israel?
Hi all, I'm a proud owner of an iPhone 5. In the last week I've noticed that my Sleep/wake button is not functioning. I've Googled it a little and understood that it's a common problem, and if I'll step into a Apple store in the US they will replace
-
Hey I am trying to burn a dvd as well as cds but after almost finished burning them an error response comes up that says an error occured and you cannot continue burning this cd/dvd I don't know how to fix it can anyone suggest something??????? Thank