Custom ItemRenderer makes the column non editable
Hi Folks,
I have a DataGrid which s editable, I've created a custom ItemRenderer to deal with special format needed for Date variables, for that I extended the mx:Text class in order to get access to the listData.dataField variable.
The problem is that this makes the column non-editable, the other column in the table are editabe.
When I used a VBox container the column was editable however I didn't get access to the listData, which I need for the dataField variable.
Any help will be appreciated.
Thanks,
MR.
Here is the my DateItemRenderer code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Text xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import aslib.common.Constants;
import aslib.common.Utils;
import aslib.connection.JSONConnector;
import mx.controls.dataGridClasses.DataGridListData;
import mx.controls.listClasses.ListData;
import mx.formatters.DateFormatter;
[Bindable]
private var _dispValue:String;
public function dateStr(val:Object):String {
var innerDt:Date;
if(!(val is Date))
innerDt = Utils.convertDateStr(val as String);
else
innerDt = val as Date;
if(innerDt){
var df:DateFormatter = new DateFormatter();
df.formatString = "DD/MM/YYYY";
var formatedDate:String = df.format(innerDt);
return formatedDate;
}else{
return "";
public override function set data(value:Object):void {
var date:Object = value[(listData as DataGridListData).dataField];
if(date){
_dispValue = dateStr(date);
]]>
</fx:Script>
<mx:text>{_dispValue}</mx:text>
</mx:Text>
OK, found the issue, forgot to add 'super.data = value' in the set data method...
Similar Messages
-
How to make a row non-editable depending on a db column value
HI,
I've an editable report region and the requirement is to make the row non-editable according to the value in one of the column. Like if the value for that column is null the row should be editable else non-editable. Any option to do this in Oracle APEX.
Regards,
PrasanthI assume you are using a tabular form. In that case, you would have to run a loop in Javascript to read all the rows in the Form. The example is given below. You can use Firebug in Firefox to identify your field names and replace f02, f03 and f04 with your field names.
<script language="JavaScript" type="text/javascript">
function f_readonly_items(){
for (i=0;i<document.wwv_flow.length;i++)
if (document.wwv_flow.f02.value) != Null
document.wwv_flow.f02[i].readOnly = true;
document.wwv_flow.f03[i].readOnly = true;
document.wwv_flow.f04[i].readOnly = true;
</script>
Hope this helps. -
I want to make a textfield non editable with blinking cursor,and the text is input from a custom keypad....
Please Help me.
I want to make a numpad of my own from which i can set the text but i want the user to tap in between the text..You seem to stop the while loop to run the following code, then the program ends. Are you running this using the "continuous run" button????
You need one big while loop containing the acquisition, then you build up the history data in a shift register. Clicking "save" will save the data, but not stop the loop.
Why did you place a time-control in the FOR loop??? This is just post-processing so it should just do it without any delays. I don't understand the logic in the FOR loop. You are appending arrays, but then you delete the first element at each iteraction constantly trimming data from the beginning of the appended array. Then you autoindex at the output tunnel heavily duplicating all data. Ths make s no sense!
Can you explain how you want you data saved?
Message Edited by altenbach on 12-16-2005 11:20 AM
LabVIEW Champion . Do more with less code and in less time . -
Making the ALV Non Editable on the Fly
Dear All ,
I have a one requirement inwhich i want to make the ALV grid Editable or non editable depending on a value of a perticular field in the Internal table.
Eg. I have one internal table as IT_DATA with fields Customer number , Order NUmber Comments and Status.
There are 10 records in this internal table out of which 5 has a status as 1 and 5 has a status as 0.
Now i want to make the field Comments non editable if the value in the status is 1. If it is 0, i want to keep it as Editable.
Please Suggest ,
Regards,
Nikhil JoshiHi
Try like this
DATA : it_fieldcat TYPE TABLE OF slis_fieldcat_alv,
wa_fieldcat TYPE slis_fieldcat_alv.
if status = 0.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'FLD1'.
wa_fieldcat-coltext = 'Field1.
wa_fieldcat-edit = 'X'.
APPEND wa_fieldcat TO it_fieldcat.
elseif status = 1.
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'FLD2'.
wa_fieldcat-coltext = 'Field2.
APPEND wa_fieldcat TO it_fieldcat.
then call function module 'REUSE_ALV_GRID_DISPLAY;.
Thanks & Regards,
Anagha Deshmukh -
HOW TO MAKE TABLE CONTROL NON EDITABLE
hi all
how to make table control non editable
Thanks & Regards
harshaHi,
Try this code in the PBO inside the module in the LOOP...ENDLOOP.
IF SY-TCODE EQ 'ZEMPLDISPLAY'.
LOOP AT SCREEN.
if screen-name eq 'column1' or screen-name eq 'column2'. "Give the names of the columns in the table control
SCREEN-INPUT = '0'.
MODIFY SCREEN.
endif.
ENDLOOP.
ENDIF.
Or you can go the Layout of the table control in Change mode and for every column's attributes, make it 'Output' only field. Check 'Output only' field. -
Make 1 field non-editable while using transaction VA02.
Hi,
I want make a field non-editable under tab 'shipping' for transaction VA02. I know one way of doing it by adding code to MV45AFZZ -> USEREXIT_FIELD_MODIFICATION. is there any other way ( other user-exit / BADI) to achieve the same.Hi,
Please go through this link... It tells you the step to follow....
http://www.sap-basis-abap.com/sapbs010.htm
Also please refer these posts..
Re: Transaction Variants & Variant Transactions
Re: Transaction Variants -
Needed to make baseline date non-editable
Hi Gurus,
My requirement is to make baseline date non editable for miro.Please help how to proceed for this.Hi,
In txn. SHDO create a screen Variant for the tcode MIRO (prog. SAPLFDCB, Screen 0020).
Then click on Create icon from top
It will open the MIRO screen, then click on payment tab, maintain entries in baseline date then clik enter it will popup one screen, there you need to flag under "output Only" for Baseline date, then save.
this setting will make non editable field.
Regards
GK.
Edited by: Gnana Kumar on Oct 28, 2010 2:34 PM -
1) Make the column read only without coding
Please guid eme how to make the column read only in the list without using the coding.
VijBasically, the answer is that you can't. There are ways to change a specific list view to make a column readonly by replacing the form with a custom DataView form. But that only applies to that view and since users can create their own views,
those views would have read/write access to the column if the user has read/write access to the item. SharePoint only supports security down to the item level out of the box and not down to the individual column level.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
How to set the field non-editable in the classical report..
Hi..
How to set the field non-editable in the classical report..Hi experts,
For the component 'ICCMP_EMP_SRCH' there is a view 'BUPAEMPSEARCH' , which has 2 context nodes 'CUSTOMER' AND 'SEARCHEMPLOYEE' , i need to add the field 'NICKNAME' which is part of the 'CUSTOMER' context node on the search screen. Currrently all the fields on the screen screen are from the 'SEARCHEMPLOYEE' context node. when i did the configuration , the 'NICKNAME' field is greyed out . I have already generated the Getter ,Setter , GET_I, GET_M methods for the 'NICKNAME' field and the context node and controller class and context class are all active .
on debugging the GET_I method, i see that rv_disabled = 'TRUE' and the current = collection_wrapper->get_current( ) is returning empty value .
for this rv_disabled to be set false , the code below is not triggered since there is no value in current.
IF current->is_property_readonly(
'NICKNAME' ) = abap_false. "#EC NOTEXT
rv_disabled = 'FALSE'.
ENDIF.
when i check for other search fields of context node 'SEARCHEMPLOYEE' , all the fields are set to rv_disabled = 'FALSE'.
can anyone suggest how to approch this. iam i missing any binding between context nodes or any activations ?
The field properties are set as Input field and the display checkbox is not checked. -
How to make the text_field to editable in the adobe document?
Hi, expert,
I meet a problem when I develop a WDA. I hope to get your help. Thanks a lot. The following is my action:
Action:
1. I am using "Text Field" control rather "Text" Control in the pfd form by transfer code "sfp". I make sure in Object Palette under value tab type is : user entered - optional in the layout tab in the pfd form. The textfield is editable in the PDF preview.
2. Add the pdf forms to webdynpro application and set "sss" to the inputfield("Text Field") through context in the WDA.
3. Run the WDA. In the IE, I found the textfield in the PDF is not editable. How can I make the textfield to editable?
Whether I need change the code or others to make text_field to editable?
Do you give me some hints? Thank you very much.
The following is my code in the WDA:
method WDDOMODIFYVIEW .
********Make INTERACTIVE_FORM to editable。******
data:
lr_interactive_form type ref to cl_wd_interactive_form,
lr_method_handler type ref to if_wd_iactive_form_method_hndl.
lr_interactive_form ?= view->get_element( 'INTERACTIVE_FORM' ).
lr_method_handler ?= lr_interactive_form->_method_handler.
lr_method_handler->set_legacy_editing_enabled( abap_true ).
data:
Node_Zz_00_Test_Form_000 type ref to If_Wd_Context_Node,
Elem_Zz_00_Test_Form_000 type ref to If_Wd_Context_Element,
Stru_Zz_00_Test_Form_000 type Wd_This->Element_Zz_00_Test_Form_000 ,
Item_TEST1 like Stru_Zz_00_Test_Form_000-TEST1.
navigate from <CONTEXT> to <ZZ_00_TEST_FORM_000> via lead selection
Node_Zz_00_Test_Form_000 = wd_Context->get_Child_Node( Name = wd_This->wdctx_Zz_00_Test_Form_000 ).
get element via lead selection
Elem_Zz_00_Test_Form_000 = Node_Zz_00_Test_Form_000->get_Element( ).
get single attribute
Elem_Zz_00_Test_Form_000->set_Attribute(
exporting
Name = `TEST1`
Value = 'sss' ).
endmethod.
Best regards,
taoHi Volker,
Thanks a lot for your help.:)
When I compile the WDA, the WDA don't occur any error. The WDA occurs error when I run the WDA.
1. In the st22 transcation code, I found the following code:
method RAISE .
DATA: error TYPE STRING.
error = MSG_STRING( msg = msg a = a b = b c = c i = i j = j k = k ).
************************begin of error************************************
RAISE EXCEPTION TYPE CX_WD_GENERAL EXPORTING msg = error.
************************end of error*********************************
endmethod.
I think the method RAISE is invoked by CREATE_ADOBE method at the point:
if sy-subrc ne 0.
--- there was an error; check, if it was an ADS related problem
call function 'FP_GET_LAST_ADS_ERRSTR'
importing
e_adserrstr = lv_adserrstr.
cx_wd_general=>raise( msg = lv_adserrstr ).
endif.
--- close spool job
The following is the code of the CREATE_PDF method:
method CREATE_PDF.
data:
data_source_info type ref to if_wd_context_node_info,
data_source_attributes type wdr_context_attr_info_map,
interface_type type fpinterfacetype,
name type string,
value type string,
fm_name type rs38l_fnam,
fp_docparams type sfpdocparams,
fp_outputparams type sfpoutputparams,
fp_output type fpformoutput,
pdf_ref type ref to fpformoutput,
output type fpformoutput,
rest type string,
lv_adserrstr type string. "#EC NEEDED
field-symbols:
<source> type wdr_context_attribute_info.
data_source_info = data_source->get_node_info( ).
data_source_attributes = data_source_info->get_attributes( ).
--- now build pdf content using the form api
try.
--- get name and type of the generated function module
call function 'FP_FUNCTION_MODULE_NAME'
exporting
i_name = form_name
importing
e_funcname = fm_name
e_interface_type = interface_type.
----- what about error handling
catch cx_fp_api_usage. "#EC NO_HANDLER
catch cx_fp_api_repository. "#EC NO_HANDLER
catch cx_fp_api_internal. "#EC NO_HANDLER
endtry.
--- set output parameters and open spool job
fp_outputparams-nodialog = 'X'.
fp_outputparams-getpdf = 'X'.
--- workaround ADS drop 8c
fp_outputparams-connection = 'ADS_PWDF2036'.
call function 'FP_JOB_OPEN'
changing
ie_outputparams = fp_outputparams.
--- set form language and country (->form locale)
fp_docparams-langu = sy-langu.
call function 'WP_USER_COUNTRY_GET'
exporting
user_name = sy-uname
importing
country = fp_docparams-country
exceptions
no_country_assigned = 1
others = 2.
if sy-subrc <> 0.
fp_docparams-country = 'DE'.
endif.
--- this flag indicates that we want to generate an interactive(!) form
fp_docparams-fillable = enabled.
--- interface type: SMART FORMS => raise error
--- interface type: DDIC => use DDIC interface and render display only form
--- interface type: XML Schema => use XML interface and render interactive form if enabled is true
case interface_type.
Smart Forms -> not allowed
when if_fp_interface=>c_interface_type_sf.
message x000(00).
Good old DDIC
when if_fp_interface=>c_interface_type_new.
no interactivity for DDIC stuff allowed, but it can be overwritten
if enabled = abap_true.
fp_docparams-fillable = legacy_editing_enabled.
else.
fp_docparams-fillable = abap_false.
endif.
data:
exception_list type table of rsexc,
export_parameters type table of rsexp,
import_parameters type table of rsimp,
tables_parameters type table of rstbl.
--- get the interface of the generated function module
call function 'FUNCTION_IMPORT_INTERFACE'
exporting
funcname = fm_name
tables
exception_list = exception_list
export_parameter = export_parameters
import_parameter = import_parameters
changing_parameter =
tables_parameter = tables_parameters.
data:
ptab type abap_func_parmbind_tab,
ptab_line type abap_func_parmbind,
etab type abap_func_excpbind_tab,
etab_line type abap_func_excpbind.
field-symbols:
<import> type rsimp.
--- dynamical filling of the interface of the generated function module
loop at import_parameters assigning <import>.
ptab_line-name = <import>-parameter.
ptab_line-kind = abap_func_exporting.
if ptab_line-name cs '/1bcdwb/docparams'.
get reference of fp_docparams into ptab_line-value.
else.
--- is this an attribute?
data dref type ref to data.
create data dref type (<import>-typ).
read table data_source_attributes with key name = <import>-parameter assigning <source>.
if sy-subrc = 0.
data: node_name type string.
node_name = <import>-parameter.
try.
field-symbols <statatt> type any.
assign dref->* to <statatt>.
data_source->get_attribute( exporting name = node_name importing value = <statatt> ).
get reference of <statatt> into ptab_line-value.
catch cx_root. "#EC CATCH_ALL
ptab_line-value = dref.
endtry.
else.
ptab_line-value = dref.
endif.
endif.
insert ptab_line into table ptab.
endloop.
ptab_line-name = '/1BCDWB/FORMOUTPUT'.
ptab_line-kind = abap_func_importing.
get reference of fp_output into ptab_line-value.
insert ptab_line into table ptab.
--- error handling
etab_line-name = 'OTHERS'.
etab_line-value = 10.
insert etab_line into table etab.
--- dynamic call of the generated function module
--- this is "smart forms style"
call function fm_name
parameter-table
ptab
exception-table
etab.
if sy-subrc ne 0.
--- there was an error; check, if it was an ADS related problem
call function 'FP_GET_LAST_ADS_ERRSTR'
importing
e_adserrstr = lv_adserrstr.
cx_wd_general=>raise( msg = lv_adserrstr ).
endif.
--- close spool job
call function 'FP_JOB_CLOSE'.
--- check the result
read table ptab with key name = '/1BCDWB/FORMOUTPUT' into ptab_line.
pdf_ref ?= ptab_line-value.
pdf = pdf_ref->pdf.
XML Schema based interface
when if_fp_interface=>c_interface_type_xsd.
data: xml type string.
xml = data_source->to_xml( ).
data:
context_node type string.
context_node = data_source_info->get_name( ).
data: x_xml type xstring.
if not data_xml is supplied.
call transformation wdr_interactive_from_in
parameters datasource = context_node
source xml xml
result xml x_xml.
else.
x_xml = data_xml.
endif.
call function fm_name
exporting
/1bcdwb/docparams = fp_docparams
/1bcdwb/docxml = x_xml
importing
/1bcdwb/formoutput = output
exceptions
usage_error = 1
system_error = 2
internal_error = 3
others = 4.
if sy-subrc ne 0.
--- there was an error; check, if it was an ADS related problem
call function 'FP_GET_LAST_ADS_ERRSTR'
importing
e_adserrstr = lv_adserrstr.
cx_wd_general=>raise( msg = lv_adserrstr ).
endif.
--- close spool job
call function 'FP_JOB_CLOSE'.
pdf = output-pdf.
when others.
message x000(00).
endcase.
endmethod.
2. I found the defaultTrace.0.trc in the $sap_home$\DEV\DVEBMGS00\j2ee\cluster\server0\log\:
#1.5#001485BBC8ED0076000000140000044000043973130FA533#1189066310671#com.adobe.AdobeDocumentServicesWorker#com.adobe/AdobeDocumentServices#com.adobe.AdobeDocumentServicesWorker#ADSUSER#228#SAP J2EE Engine JTA Transaction : [018ffffff826002ffffffcc]#devserver_DEV_1606150#Guest#d1f02e705c5011dcb0f5001485bbc8ed#SAPEngine_Application_Thread[impl:3]_22##0#0#Error#1#/System/Server#Plain###Processing exception during a "UsageRights" operation.
Request start time: Thu Sep 06 16:11:50 CST 2007
com.adobe.ProcessingError: Error while retrieving a password for credential: ReaderRights:
java.lang.Exception: Could not retrieve a password for credential: ReaderRights
Exception Stack Trace:
com.adobe.ProcessingError: Error while retrieving a password for credential: ReaderRights:
java.lang.Exception: Could not retrieve a password for credential: ReaderRights
at com.adobe.ads.request.UsageRights.execute(Unknown Source)
at com.adobe.BaseADSRequest.doWork(Unknown Source)
at com.adobe.AdobeDocumentServicesWorker.execute(Unknown Source)
at com.adobe.AdobeDocumentServicesEJB.processRequest(Unknown Source)
at com.adobe.AdobeDocumentServicesEJB.rpData(Unknown Source)
at com.adobe.AdobeDocumentServicesLocalLocalObjectImpl0.rpData(AdobeDocumentServicesLocalLocalObjectImpl0.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
at SoapServlet.doPost(SoapServlet.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
#1.5#001485BBC8ED0076000000150000044000043973130FAAAC#1189066310671#com.adobe.AdobeDocumentServices#com.adobe/AdobeDocumentServices#com.adobe.AdobeDocumentServices#ADSUSER#228#SAP J2EE Engine JTA Transaction : [018ffffff826002ffffffcc]#devserver_DEV_1606150#Guest#d1f02e705c5011dcb0f5001485bbc8ed#SAPEngine_Application_Thread[impl:3]_22##0#0#Error##Plain###Client: 800 SystemId: DEV AppName: SAFP
Processing exception during a "UsageRights" operation.
Request start time: Thu Sep 06 16:11:50 CST 2007
com.adobe.ProcessingError: Error while retrieving a password for credential: ReaderRights:
java.lang.Exception: Could not retrieve a password for credential: ReaderRights
at com.adobe.ads.request.UsageRights.execute(Unknown Source)
at com.adobe.BaseADSRequest.doWork(Unknown Source)
at com.adobe.AdobeDocumentServicesWorker.execute(Unknown Source)
at com.adobe.AdobeDocumentServicesEJB.processRequest(Unknown Source)
at com.adobe.AdobeDocumentServicesEJB.rpData(Unknown Source)
at com.adobe.AdobeDocumentServicesLocalLocalObjectImpl0.rpData(AdobeDocumentServicesLocalLocalObjectImpl0.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
at SoapServlet.doPost(SoapServlet.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
According the exception in the defaultTrace.0.trc:" Could not retrieve a password for credential: ReaderRights ", beacause Adobe reader8 don't get the credential in my machine, the error is occured when run the WDA.
My question is how can I to get credential for Adobe Reader8 ?
Thanks a billion for your support and help.:-)
Best regards,
Tao -
How to make the column in multi-record block resizable?
I am using Form6o, can I make the column in a multi-record block resizable?
Thanks!I don't know exactly how they did it, but I have seen it done in Forms 6i. It is not exactly Excel style, but it comes close. You can use when-mouse-down and when-mouse-up triggers to determine start and end position of the mouse (with system.mouse_x_pos) and then set the width property.
So, when you drag the mouse, you don't see the column size increase, you only see the result after you let go of the mouse button. -
Make a filed Non-Editable for specific Users
Hi Experts
Any Idea How can I make fields of any Table non-editable for a specific Group of Users.
My Requirement
I have 4 fields namely, Customer Name, Address, Pincode,City which at time of creation is open to user but once updated and customer is created, I need to make it non-editable for a specific Group of user.
Please advice.
Regards
PrashantHello Neethu,
I just wanted to confirm one of the sentence in the above post.
I feel that the option 2 can also be achieved (Once record is approved and gone through all processes of WF and saved in MDM.Specific users should not modify the record.)
For this we need to create validation where we need to mention the User
Just create a Status field and write an expression as
IF(STATUS FIELD [RECORD]=STATUS[DONE] AND UPDATED BY="USER NAME",FALSE,TRUE)
for this the automatic execution type property should be set to error.
Only difficulty is that we need to mention all the users for whome we want to remove the write access once the record is saved.
Rgds,
Prasad. -
How to make a column field editable through OADP customization
HI Every body,
I am facing a issue during oadp customization.As part of our requirement , i have added a column to the compensation planning in mss through OADP and the column is displaying fine,but the issue is that,the fields are not editable.So can anyone let me know ,how can i make the field editable through OADP customization.Is it really possible to do through OADP or not?
Regards
RRAYfor which application you added the columns?
let me explain takinh ECM as an example
The backend part of the OADP provides a possibility to define data
columns without assigning a function module for data extraction to it.
The content of these columns as well as the column properties have to be
defined in the application coding(WebDynpro frontend application) which
is the reason why these columns are called #Application Columns#. The
advantage of application columns is two-fold: Firstly, their content can
be calculated dynamically during runtime in dependence of both, the
content of other columns and application data. Secondly, it#s even
possible to have data columns ready for input. These columns are build
in the frontend webDynpro application, therefore for your custom column
group, kindly assign the standard for these three columns.
For OADP customizing of the compensation planning application kindly
follow the link below.
http://help.sap.
com/saphelp_erp2005/helpdata/en/29/d7844205625551e10000000a1550b0/frameset.htm -
Making a particular Column Non Editable
Hi all,
My question is that ... i ahve created a jtable in default table model ........
And i have maked a column as a row header .. by using table column model..And the problem is that the column which has been made as a rowheader is in editable mode .. i want to make it non editable .. it is possible or not
here is my code
TableColumnModel Tc1 = new DefaultTableColumnModel() {
boolean first = true;
public void addColumn(TableColumn tc) {
// Drop the first column . . . that'll be the row header
if (first) { first = false; return; }
tc.setMinWidth(110);
super.addColumn(tc);
TableColumnModel rowHeader = new DefaultTableColumnModel() {
boolean first = true;
public void addColumn(TableColumn tc) {
if (first) {
tc.setMaxWidth(36);
super.addColumn(tc);
first = false;
model1= new DefaultTableModel(100,10);
tb=new JTable(model1,Tc1);
tb.setRowHeight(20);
tb.createDefaultColumnsFromModel();
tb.setPreferredScrollableViewportSize(new Dimension(770,350));
JTable headerColumn1 = new JTable(model1, rowHeader);
headerColumn1.createDefaultColumnsFromModel();
headerColumn1.setCellSelectionEnabled(false);
headerColumn1.setRowHeight(20);
headerColumn1.setBackground((Color)UIManager.get("TableHeader.background"));
tb.setSelectionModel(headerColumn1.getSelectionModel());
tb.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
headerColumn1.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
headerColumn1.setSelectionBackground(Color.lightGray);
headerColumn1.setColumnSelectionAllowed(false);
JViewport jv1 = new JViewport();
jv1.setView(headerColumn1);
jv1.setPreferredSize(headerColumn1.getMaximumSize());
jsp = new JScrollPane(tb);
jsp.setRowHeader(jv1);override isCellEditable(int row, int column) as:
public boolean isCellEditable(int row, int column){
return ( column != nonEditableColumnIndex ? true : false);
}cheers
DB -
How to create a Custom List without the column "Title" ?
Maybe this one is easy as it sounds, I just want to know how to create a little list for my SharePoint application featuring 3 columns:
1 - User Name (this should be Person type - UNIQUE + Required)
2 - Report (Memo - Required)
3 - Status (Choice + Required)
The list will be used to allow the users to submit a weekly report and I don't want to include the title because there is no use to me, I know I can hide the column by customizing the list but this sounds very amateur even for a newbie like me (yeah... sounds
so cheap!), since I've been reading a lot about custom content types and I still didn't get the chance to use this properly I was wondering how I could put them to use and I guess the example here would be the best right?
I really spent some time trying but I always end getting the Title even when I try to use custom content types so I'm really giving up and asking for some help at this point.
Thanks a lot for the help!!!Yes, you can do that. If you need a different content type with your custom fields. Following are the steps : http://www.dotnetcurry.com/ShowArticle.aspx?ID=620
After creating your custom Content Type, Click on the 'Title' filed in your custom content type.
In the 'Column Settings' make it 'Hidden (Will not appear in forms)' and click ok.
Now add this content type to your list/library.
In the list/Library go to setting and 'Advance settings' and make the 'Allow management of Content Type?' as 'yes' and click ok.
Now make default content type not visible from 'Change new button order and default content type' link in the settings page of list/library, and your contet type as 'Default'.
Create a new view, remove the 'Title' field and make that view as 'dafault' view, you can delete the 'All Items' view also if required.
Now whenever user come to that list/Library they will not see the title column and also will not appear in the 'New Item'.
Note : The 'Title' field is mandatory in all the list/library and by default added to the 'All Item' view. So, by doing above steps you are creating a new content type where 'Title' is not mandatory and also not added in default view.
get2pallav
Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.
Maybe you are looking for
-
hi, I have connected 8GB DiskToGo make pen drive in my Windows 7 32 bit enterprise edition. This is under Yellow Exclamatory mark. If I update the driver, i am receiving "Best Driver is installed already". Windows cannot start error code is 10 in th
-
Where can I get an Arabic USB/Wireless Apple keyboard?!
I have asked this to Apple UK and Apple USA telephone sales, who have no idea where to start (other than google!) Where can I buy one of the Arabic USB keyboards?! How hard can it be to get one? I'm in London, with a UK Mac Pro. Apple say they won;t
-
Can i use output of one report in another report?? Pls help!
Hi Gurus, I have a requirement where in i execute Report_1, inside that report_1, there is a pushbutton, when i click on that, it executes Report_2. My Report_2 creates some output xml and displays it too. What i want is, i want to keep this output (
-
How to check if the module specified in RUN_PRODUCT exists?
Hi, I use RUN_PRODUCT to call report in form. I have a problem that if the module specified doesn't exist, no error message will be prompted except a log the in Report Engine as follows: REP-0110: Unable to open file <module>. REP-1070: Error while o
-
Error 4261 when burning a CD with 7.0.1
Each time I try to burn a cd with 7.0.1 I get error 4261 and the burning is canceled, below is my cd diagnostic, can someone help please, thank you in advance, Microsoft Windows XP Home Edition Service Pack 2 (Build 2600) Dell Inc. Dimension 4700 iTu