Set Default category for IBASE
Hi Experts,
I have an issue with Ibase and that is I need to set a default category for the IBASE as '01'.
Though there is only one category is there for Ibase I am still getting the pop-up for the Selection when I click on IBASE-Create in Web UI.
The requirement is not to have the pop-up for selection and it should take default category when i say create on IBASE.
plz help me in this regards.Any help is appreciated .
thanking U for the help,
Sree.
Hi kasper /rohit,
pls look into this and provide some insight to me.
here is the code .
code from ip_create() method to block pop up is
CONSTANTS: lc_maxrow1 TYPE int4 VALUE 1,
DESCRIBE TABLE gt_ibtyp LINES lv_rows.
IF lv_rows > lc_maxrow1.
CHECK SY-SUBRC = 0.
* lv_rows = lc_maxrow.
lv_title = text-cre.
lv_descr = text-sel.
create_popup = comp_controller->window_manager->create_decision_popup( iv_title = lv_title
iv_description = lv_descr
iv_visible_row_count = lv_rows
iv_display_table = gt_ibtyp
iv_visible_columns = lt_col_def ).
create_popup->set_on_close_event( iv_event_name = 'CREATE_POPUP_CLOSED' iv_view = me )."#EC NOTEXT
create_popup->open( ).
ENDIF.
it has stopped the creation of pop up and in the method EH_ONCREATE i wrote
ls_param-name = cl_crm_ibase_il_constant=>createparam.
ls_param-value = '01'.
* ls_param-value = ls_ibtyp-ibtyp.
APPEND ls_param TO lt_param.
lr_bol_core = cl_crm_bol_core=>get_instance( ).
TRY.
CALL METHOD lr_bol_core->root_create
EXPORTING
iv_object_name = cl_crm_ibase_il_constant=>root_object
iv_create_param = lt_param
iv_number = 1
RECEIVING
rv_result = lr_root.
CATCH cx_crm_unsupported_object .
ENDTRY.
CHECK lr_root IS BOUND.
entity ?= lr_root->get_current( ).
IF entity->lock( ) = abap_true.
entity->switch_to_change_mode( ).
ENDIF.
Here the problem is the ibheader component is not getting the data
which it used to get by selecting the category in pop up and
all the screen is empty with out any data.
Is there anything to be written in IP_MAIN or some thing to be added to the existing code.
Thanking U,
Sree.
Edited by: Sree on Dec 3, 2008 2:32 AM
Similar Messages
-
How to hide PNP selection windows and set default values for PNP.
Hi expert,
I am using HR logical database PNP, but I don't want to display selection windoes for running program on PNP, whereas I want to set default value for some selection items in the program. could you please tell me how to get those two targets?
Many Thanks,Hi
You have mentioned 2 things.
1. Don't want selection windows for running program for PNP - this can be achieved using the HR Report category - You can get more details on HR Report Category on
HR Report Category
2. I want to set default value for some selection items - This you need to achieve in initialization event of your program.
How you can get this can be explained by INITIALIZATION (SAP Library - ABAP Programming (BC-ABA))
Thanks,
Sreeram -
How to Set default value for taxonomywebtagging control with terms and nested terms
Hi,
I have created taxonomy control in custom aspx page and I am able to select terms but I am trying to setup default value to that control.
Can anybody let me know how to set the default value for TaxonomyWebTagging control in custom.aspx page with nested terms?
Any help would be greatly apprecited.
Control code in aspx page:
<td>
<asp:Label runat="server" ID="lblLanguages">Field A: </asp:Label><asp:Label runat="server" ID="rfvlblLanguages" CssClass="errorMsg" ForeColor="Red">*</asp:Label>
</td>
<td>
<Taxonomy:TaxonomyWebTaggingControl ID="term" Width="385px" runat="server" /></td>Mapping metedata code:TaxonomySession session = new TaxonomySession(SPContext.Current.Site);
//Set the Business Unit Field
SPSite site = SPContext.Current.Web.Site;
TermStore termStore = session.TermStores["Managed Metadata Service"];
Group group = termStore.Groups["GROUPName"];
TermSet termSet = group.TermSets["TERMSETNAME"];
Term term = termSet.Terms["TermA"];
Guid termGuid = term.Id;
term.SspId.Add(termStore.Id);
term.TermSetId.Add(termSet.Id);
term.AllowFillIn = true;
term.AnchorId = countryGuid;
term.IsMulti = true;
Thank you.
AA.Hi,
According to your description, you want to set default value for TaxonomyWebTaggingControl.
I have a test in my environment. It could be achieved by setting the Text Property of TaxonomyWebTaggingControl.
Here is the code snippet:
TaxonomySession session = new TaxonomySession(SPContext.Current.Site);
SPSite site = SPContext.Current.Web.Site;
TermStore termStore = session.TermStores["Managed Metadata Service"];
Group group = termStore.Groups["GroupA"];
TermSet termSet = group.TermSets["A"];
Term term = termSet.Terms["A1"];
TaxonomyWebTaggingControl1.SspId.Add(termStore.Id);
TaxonomyWebTaggingControl1.SSPList = termStore.Id.ToString();
TaxonomyWebTaggingControl1.TermSetId.Add(termSet.Id);
TaxonomyWebTaggingControl1.TermSetList = termSet.Id.ToString();
TaxonomyWebTaggingControl1.AllowFillIn = true;
TaxonomyWebTaggingControl1.IsAddTerms = true;
TaxonomyWebTaggingControl1.IsMulti = false;
TaxonomyWebTaggingControl1.Text = string.Format("{0}|{1}", term.Name, term.Id.ToString());
Here is a detailed article for your reference:
http://blog.bugrapostaci.com/2010/09/23/taxonomywebtaggingcontrol-sharepoint/
Feel free to Reply the test result.
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Patrick Liang
TechNet Community Support -
How to set default values for boolean columns
I'm trying to deploy some content types and columns into a site with a feature. All it's ok, except that I'm trying to set a default value for boolean columns with no success.
I've tried to set default value at column level:
<Field ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DisplayName="Se publican noticias en español"
Type="Boolean" Hidden="FALSE" Group="Columnas ShaCon" >
<Default>TRUE</Default>
</Field>
and at content type level:
<FieldRef ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DefaultValue="TRUE" Required="TRUE" />
But in any case, when i create a new item with this content type, default value is applied.
Can anyone tell how to set default values for boolean columns?
Thanks in advance,
Regards,
SergioIn the field definition you can set
<Default>1</Default>
or
<Default>0</Default>
How to set the default value Null? -
Setting default values for field on screen.
Hello,
I am trying to set default value for one of the fields I have on screen when I execute the custom transaction.
I am doing that in PBO as follows. But the default value is not set for Date field.
PROCESS BEFORE OUTPUT.
MODULE PBO_OUT.
MODULE STATUS_5000.
*& Module STATUS_5000 OUTPUT
text
MODULE STATUS_5000 OUTPUT.
SET PF-STATUS 'NON_SAP_DOCUMENT'.
SET TITLEBAR '001'.
ENDMODULE. " STATUS_5000 OUTPUT
*& Module PBO_OUT OUTPUT
text
MODULE PBO_OUT OUTPUT.
ERDAT = SY-DATUM.
ENDMODULE. " PBO_OUT OUTPUT
Please help.
Thanks.
Regards,
Rajesh.Works Now...
-
Extending flash: how do I set default values for filenames
Hi,
I am trying to set default values for filenames
<choosefile> and <popupslider>s that will show up when
my XMLpanel first loads in my jsfl extension file. It seems that I
can only set default values for textbox items.
How do I do this for filenames and popups?
As a workaround, I also tried using a flash object dialog box
to look like a <choosefile>, or any jsfl command, but then
how do I return those values back to the XMLpanel that calls them.
and pass the data back to my jsfl script.
lemme know if you know a way,Create two constants for the Allocate Mode input (right click > create > constant). Place one in the true case of the case structure, and place the other one in the false case. Wire them to the same tunnel (border of the case structure), then wire the tunnel to the Allocate Mode terminal of the AO Config. I don't have Traditional DAQ installed, but that should do it.
Misha -
Set default value for parameter fields
Good day!
Situation:
1. I have 2 parameter fields in reports (dateFrom and dateTo)
2. Before running report in ASP.NET I change value this fields (dateTo = today, dateFrom = today - 3 days)
3.I use for this source:
foreach (ParameterField crParam in CrystalReportSource1.ReportDocument.ParameterFields)
CrystalDecisions.Web.Parameter crParametr = new CrystalDecisions.Web.Parameter();
string ParametrName = crParam.Name;
crParametr.Name = ParametrName;
crParametr.DefaultValue = ActionReportParameter.GetParametrValue(ReportName, ParametrName);
CrystalReportSource1.Report.Parameters.Add(crParametr);
4. And repurt run without request value parameter fields.
5. BUT!!! now I need request value parameter fields before report start running - I want set default values for filelds and offer user change its before report start run.
How do this?
ThanksI believe you need to create your own parameter promt screen. Capture what the user entered and pass that to the report(?).
slv -
Set default value for people picker only when user checks a checkbox (Sharepoint 2010)
The javescript in below link works for me.
http://social.technet.microsoft.com/Forums/sharepoint/en-US/2b130f64-3db2-484a-9a53-ccbe18d2c5de/set-default-value-for-people-picker-in-list-template-current-user?forum=sharepointgenerallegacy
However, I'd like to set default user for people picker only when user checks a checkbox.
I am new to development. Could you please help me on this requirement ?
Thank you very much.Hello,
Use this link to to validate checkbox value, if true then set the person or group value (i.e. as posted in your link).
http://geekswithblogs.net/haniamr/archive/2011/03/10/validate-that-a-checkbox-is-checked-using-javascript.aspx
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Need to set default values for the fields plant and location in ME21N
Hi All,
i need to set default values for the fields plant and location in ME21N tcode.
In accout assignment if we give 'A' then we need to create asset by clicking the Asset tab,there you have the fields plant and location.
How to resolve this?
Thanks in Advancehi .
i needed to set default strorage location and plant in personal setting in me21n.
i solve it with this way.
go to program SAPLMEPERS in se38.
create new function in output with the sample name :MODULE ZTEST_001 OUTPUT.
in this module write:
if MEPOITEM_PROP-WERKS is INITIAL and MEPOITEM_PROP-LGORT is INITIAL.
MEPOITEM_PROP-WERKS = '1000'.
MEPOITEM_PROP-LGORT = '0032'.
endif.
this is the solution.
best regards.
maryam -
How can I set default values for Allocate Mode in AO config?
Hi, How can I set default values for allocate mode in AO config. To be specific, in the attached vi, I need to set the Allocate Mode in AO Config to 'Use FIFO Memory (6)' if the value inside my case structure is false and to 'no change (0)' if the value inside the case strusture is true.
Solved!
Go to Solution.
Attachments:
generateWaveformFIFO.vi 15 KBCreate two constants for the Allocate Mode input (right click > create > constant). Place one in the true case of the case structure, and place the other one in the false case. Wire them to the same tunnel (border of the case structure), then wire the tunnel to the Allocate Mode terminal of the AO Config. I don't have Traditional DAQ installed, but that should do it.
Misha -
Setting Default Preferences for All Users in Crystal Reports Server 2008 v1
We are currently looking to set the default preferences in the CMC for all of our users.
I did locate this page Link: [How to set default preferences for all users in Infoview 3.1/CRS 2008]
The first part of the thread did seem promising but I am unable to find the sample .jsp code that people recommended.
I would assume that this scenario is common enough that someone knows a way to set universal preference defaults.
Thank youI thought I could just run it too but when I attempt to I get a Windows Script Host error:
Script: C:\User Prefs.vbs
Line: 1
Char: 1
Error: Expected statement
Code: 800A0400
Source: Microsoft VBScript compilation error.
I noticed the first most line seems to be markup for a web interface though I am not familiar with vbs so I may be wrong. I used the publishing wizard to put the script on the CMC to attempt to run it through the CMC but it still does not work. -
Is there any way we can set default value for a Date Attribute to current date in Master Data Services.
I as well wants to know that is there any posibility to show Calendar control while input data into respective date attributes.
Thanks.Hi Anagha,
So far i havent found any way to set todays date by default from MMI, but i guess this flow should work as workaroud
1. Add buisness rule which can set a default value when Date = NULL/Blank
2.get the entity table ,use -select EntityTable from mdm.tblEntity where Name = '<enter entity name>'
3.Go to that table and add a after update trigger like
if uda_<entityid>_<attributeid(Date attribute)> = default value
update uda_<entityid>_<attributeid(Date attribute)> =getdate() where id = <LastUpdatedRow>
I will check on this too from my side.
By the way AFAIK i dont think so calendar control integration is possible . -
Setting default values for item in opportunity mgmt(crmd_bus2000111)
Hi All,
I need to set default values for the field Fiscal Quarter in item level using BADI CRM_CUSTOMER_I_BADI .This Field is created using EEW. The default value is like if the date is nov-2007 the value for this fiscal period is FQ4-2007 .
Any clue would be great help..Why don't you try setting the default value in the List next to the Matrix - item 107
Item 107 is a matrix (a transposed one), I have no idea what list you mean... I am using item 107, not 112. Item 112 is used only to detect a click on the "Add Record" button, which is the last row of the matrix 112.
I don't see the gender column in the grid and I'm also unsure of the id you have for it "12" - are you sure it's correct ( i usually use Item("columnName") )?
Sorry for the confusion. "12" is the name of the standard column "Password" which we have renamed to store the gender.
Anton -
How to set default language for Portal?
Hi All,
We use EP6.
Default language is not defined and therefore is being set by the browser's language.
Where do I set default language for all users?
(I don't want that the users will be able to change it by themselves by browser/EU role).
I tried to set the "request.mandatorylanguage" and
"request.mandatorycountry" in prtDefault.properties but it didn't help.
Thanks,
OmriHi Omri,
are those to parameters
request.defaultlanguage=...
request.defaultcountry=...
set in the prtDefault.properties, and the J2EE Server restarted after the change?
Check out this thread and the link given there for more info: HOW to define the default language in the portal
Hope this helps,
Robert -
How to set default value for Price Change Indicator in Purchase order
Hi,
While creating the service purchase order with item category "D" the price change indicator in the services tab of the purchase order is getting checked by default. I want to uncheck this by default.Where can we set the default property for this.
Thanks in Advance!
SuryaMy plsql parameter is p_arr which is of "TYPE vc2_255_arr IS TABLE OF VARCHAR2(255) INDEX BY BINARY_INTEGER"You need to declare it in a package specification and initialize in the package body:
SQL> create or replace package pmp_lib
as
type vc2_255_arr is table of varchar2 (255)
index by binary_integer;
vc2_255_arr_default vc2_255_arr;
end pmp_lib;
Package created.
SQL> create or replace package body pmp_lib
as
begin
vc2_255_arr_default (1) := 'abc';
vc2_255_arr_default (2) := 'def';
end pmp_lib;
Package body created.
SQL> declare
arr pmp_lib.vc2_255_arr := pmp_lib.vc2_255_arr_default;
begin
for i in 1 .. arr.count
loop
dbms_output.put_line (arr (i));
end loop;
end;
abc
def
PL/SQL procedure successfully completed.so in your case it would probably be sth like (assuming pmp_lib is a package):
<%@ plsql parameter="p_arr" type="PMP_LIB.VC2_255_ARR" default = "PMP_LIB.vc2_255_arr_default" %>
Maybe you are looking for
-
My ipad will not connect tot he server when trying to access my mail. This has been happening since last Sunday. Some have said it is due to the latest software update. I am able to connect to the internet. I am not having this issue on iPhone. I che
-
Since installing the 6.0.4 Safari update via the Mac App store, I have a host of problems: 1. Mail can no longer find "an associated app" when I click on a url in a mail message 2. The Share button (extension) in the Safari toolbar no longer works
-
Zoom not working on bridge CS5
zoom function not working on bridge, when using zoom slider at base, the jpegs move off right of screen a bit before filling next row,
-
Leopard 10.5 & Windows Vista
Hey folks. There's no other forum for me to post a question like this, so I figured this is the best place to do it. I've been a Mac user for the last 14 years, but I've finally come to the point where I need to migrate from a Mac to a PC. The impetu
-
How to zip a LARGE file using zipOutputStream
Hi, I am trying to zip a file which is over 50MB, and I got an "Out-of-Memory" error. Here is part of the java program: public static String Zipper(String Path,String ZipName,String FilestoZip, boolean DeleteFile){ /* This function archives a given s