Fixed length select list fields
Is it possible to fix the width of a Select List field? I don't want it to auto-resize to the max width of the values in that column, but see no way to do that on the page editor. Thanks.
Hi Mike:
To fix the width of a select list item, set
style="width:120px;"
in the HTML Form Element Attributes of the element
Regards, Marcelo
Similar Messages
-
Select List field in Form not pulling correct record
I have a report that displays a Product Name and a Host Name. Each product can reside on multiple hosts and each host has multiple products, hence an associative table with product_host_asgmt_id, product_id and host_id is defined.
The report I created selects data from the associative table and presents the user the product names and host names without a problem. the same report has an edit link that when selected will open a form that should display the selected host name and product name. In the form both of these fields are defined as Select List. The issue is that the list shows all the LOV but does not focus on the one that was selected in the report to edit.
I unhid the product_host_asgmt_id, product_id and host_id in the form and the values contained are correct, so I think the Automated Row Fetch is working. This same form needs to be used for editing and for creating new values hence the Select List.
I I have the Source section of the Host_name select list field set to : Only when current session state is null and the Source Type is an SQL query selecting all host_name form the host table.
Any ideas how to get the values selected in the report to appear in the form?
Thanks and apologize if this is trivial. I'm a rookie Apex user (but I like it).When you link to the form page, I assume you are passing the host_id value into a page item. Say you pass this value into item P2_HOST_ID, just make the select list item's Source Type Item (application or page item name) and enter P2_HOST_ID in the Source field.
This assumes that the lov query is of the form "select host_name d, host_id r from ...".
Be careful with Source Used "Only, ..." so that you never allow the page to display with a stale and unwanted value in P2_HOST_ID or that will produce an incorrect display value in the select list.
Scott
P.S. Please tell us your first name and put it into your handle and/or profile to help us. -
Filtering Fixed Length data type fields
Hello,
My application has filters on fixed length charcter(CHAR) columns. But the query do not return any data because of trailing blanks. I cannot use RTRIM function as there are many filters and modifying them will be a big project. So is there any SET variable that can be used to solve this problem?
EX: select * from emp where name = 'SMITH' do not return any data.
select * from emp where name = 'SMITH ' returns data.
Thanks for help.So is there any SET variable that can be used to solve this problem?Nope. This is just one reason why CHAR dataypes are teh Suck and really ought to be avoiding.
The other problem with using TRIM() is that it will invalidate any indexes on those columns, so you need to build function-based indexes, which is a PITN. An alternative approach would be to
select * from emp where name = rpad('&ename', 15)
/but that would require you to go through all your queries and apply RPAD which would be an even bigger PITN.
I suppose a migration exercise to replace all your CHAR columns is out of the question????
Cheers, APC -
Reporting on a Multi-Select list field X:Y:Z
I'm sure someone must have come across this problem but I can't find a reference to it on the forum.
PROBLEM
I have a data entry form with multi-select lists. Users choose a number of display values and the return values are stored in the field in the format
20:30:50
When I create an SQL report on a row, there is no option to Display the column as a "multi-select list" like there is with a standard List of Values.
How do I report the display lookup values rather than the return code?
Is it possible to display the selected values in a report for example
red
orange JOHN 10-JAN-07
green
red
orange MARY 12-FEB-07
orange
green MARK 13-JUL-07
regards
Paul PPaul,
I have several examples on this topic:
http://htmldb.oracle.com/pls/otn/f?p=31517:87
http://htmldb.oracle.com/pls/otn/f?p=31517:84
http://htmldb.oracle.com/pls/otn/f?p=31517:75
Basically, you will need to create a table out of your colon separated values and then
join this table with other tables to be able to display it however you want.
What just comes to my mind is that Dietmar presented a nice workarround for a similar
problem here:
Nested report howto?
Denes Kubicek -
Hi Guru's,
Can anyone help me about my program.?
How can i get the exact length of a field so that when they are concatenated they have the same size of the field.
Thank You in advance.
Regards,
dranelhi,
To find out the field length of a data object, use the LENGTH addition:
DESCRIBE FIELD <f> LENGTH <l> IN CHARACTER MODE | IN BYTE MODE.
exp.
DATA: text(8) TYPE c,
len TYPE i.
DESCRIBE FIELD text LENGTH len IN CHARACTER MODE.
o/p:-
Field LEN contains the value 8.
regards
Gaurav -
Fixed length for the fields of ALV output
Hi,
How to fix a field in the ALV output to its max length..For example..if a field's max length is 10...that coloumn should not be dragged or moved to right..Its lenght shluld be fixed to 10...Could any bod suggest me how to perform this...thanks..
Shyam.Hi,
U can better optimize the width.it will be good.
data : W_LAYOUT TYPE SLIS_LAYOUT_ALV.
W_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
I_STRUCTURE_NAME = 'T_ALV'
IS_LAYOUT = W_LAYOUT
IT_FIELDCAT = T_FIELDCAT_ALV
I_CALLBACK_TOP_OF_PAGE = 'ALV_TOP_OF_PAGE'
TABLES
T_OUTTAB = T_ALV
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
Fixed Length of a field in the File-XI-RFC Scenario
Dear All,
I am doing one File-XI-RFC scenario in which user is sending me the file with some delivery nos (VBELN) in it and I am sending those all delivery nos to my RFC in R/3.
Now I want one conition to be put that if any delivery no is of less than 10 characters than that delivery no should not be sent to RFC rest the remaining will be processed to RFC.
I have put one UDF for this whose code is as follows:
int len = a.length();
if (len == 10)
int b=1;
b = (1/len);
return a;
But this code is not working. Please guide me how to solve this problem.
Regards,
N.JainHI,
Input is A : Delivery No take all the delivery no in one context.
for(i=0;i<A.length;i++)
int b= Integer.parseInt(A<i>); it will remove all the leading zeros if it has any.
int j=(new Integer(b).toString().length()); count the lenght of the Del no.
if(j>10)
result.addValue(A(i));
else
result.addValue("null"); will not send anything.
Thanks and Regards,
Chirag gohil -
How to output non-fixed length field by DMEE?
Hi,
In DMEE, I need to set a fixed length for each field. If the source data length is less than what we set, it will ouput space to fill in rest of the place. Is that a way I could just out put exactly what I need? No extra space to be output.
Thank you!Hi
The extra spaces can be removed as follows:
In the transaction DMEE --> Head --> Format attributes --> Field type = 1
Best regards
Jean Daniel -
Select list and date picker on one line - is this a bug?
I'm using: Application Express 3.2.0.00.27
Is the following a bug? If so, how do I get it reported so it will be fixed in a future release of APEX? If not, how do I do it so it ends up the way I want?
1. create blank page
2. create html region
3. create "select list" item (Begin On New Line - Yes, ...Field - Yes, ColSpan - 1, Row Span - 1)
4. create date picker item (Begin On New Line - No, ...Field - No, ColSpan - 1, Row Span - 1)
There will be other items displayed in more columns above what I just had you create above. I want the select list and the date picker to display next to each other on same line, so I placed date picker item on same line in same field as select list item.
HOWEVER... the date picker ends up displayed under the select list item (kind of), instead of next to it on the same line.
Here's what I get:
...................... [Select List Field] Date Picker Label
Select List Label
...................... [Date Picker Field]
Here's what I want:
Select List Label [Select List Field] Date Picker Label [Date Picker Field]
Thanks,
Steve
Edited by: sskelton on Aug 3, 2009 11:01 AM
Edited by: sskelton on Aug 3, 2009 11:02 AMHi Steve,
I'm not sure if it's the official way, but you could add a post here: Enhancement Request Thread : Post 3.1 - that's what I've been doing :D
Andy -
LOV an SQL : how to configure a select list to get all records
Hello,
I am using Oracle 10g with APEX 2.0.
Here is my question:
I have a report and I am using 3 text fields and a select list to search through a join of two tables. The select list is composed of a "list of values" and the parameter, which is used in the SQL-sentence, has a numeric value.
Result table after the join operation looks like this:
Field1 Field2 Field3 Field4 (By assuming the field3 is the one which used in the select list.)
21a this 1000 bn
21a that 1001 vb
33c thus 1012 ct
What I want to do is to set another parameter-value pair in the select list to let user choose the "ALL" of the mentioned items in the select list so that the search will return all the records without having taken this select list-field into consideration.
Is it possible to do it with LOV and SQL? Do I need any other functions? or configurations?
Thanks in advance,
SedefHi user630478!
I always use a select list with submit and the option to get a NULL-Value for such things. To solve your problem do the following things:
1.) Create two named LOVs. One as you already did and another one for all values.
2.) Your select list with submit should be configured to show a NULL-Value e. g. it shows ALL with the value 0.
3.) Create two conditional branches that work together with your select list. One that show the normal results if a user has clicked on a normal value and the second should act only if a user has clicked on ALL.
4.) Write a process that switches the LOVs in your select list from one to the other. This process should only be fired if the second conditional branch has been actived.
Maybe if I understood right that's what you want to know.
yours sincerely -
How to make select list as read only
Hi All.
when i m loading a page ...how to make value of select list as read only ..
i tried doing this ....
i added readonly attribute to the select list's element attibute ...it is showing as read only field by darkening the select list field but ... the select list is editable even now... its allowing to choose from drag and drop ...
Thanks & Regard ,
NandiniI have the same requirment..
I have a select list on a editable form and i want to make that one read only.
When I use read only property it doent do anything. (But this is working for text items well).
When I use "disabled' option it works fine. But then that value does not post when use POST the form. So making select list disabled is not a solution.
Any Idea..
Thanks
mc -
Making Read Only A select List Item
Hi,
I am using Application Express 3.1.1.00.09 version.
If the date field is future date then the Select List field should become Read only.
I tried to make "read only".
When I made it "read only" '>[] is displayed???
Does some one have a solution?
Thanks,
Priyanka.Hi Leckraj,
I assume that
the select list is not displayed at all.means that your page item is not rendered as a select list input control, but it's rendered as text only, right? That's the nature of the read only condition, it will render almost all controls as text only.
About the dynamic action solution. That can be simplified and doesn't require a hidden item or JavaScript.
1) Create a dynamic action which fires for the "Page Load" event
2) As (Server Side) Condition Type set "exists (SQL quer returns...)" and specify your SQL statement
3) Use a "Disable" action to disable your select list page item
The above dynamic action will only be included and executed on the page, if the SQL statement returns a value.
Note: Please keep in mind that dynamic actions are browser based operations, for a skilled user it's no problem to enable the select list and modify the value. To secure it you should add a server side validation to verify if the user is really allowed to modify the value. That's the difference to the "Read Only Condition", because in that case the APEX engine guarantee that the value can't be modified.
Regards
Patrick
Member of the APEX development team
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
How to enter values in the selected list by pressing f4
Hi Gurus,
I have a problem can any one help me in solving this?
When we go to any table thorugh se11 or se16 to display all the records based on the selective fields like pernr, company code, benefit plan in a Z-table
Here when I want to display records of selected benefit plans by using the field bplan. here when I go to that bplan field and press f4 then gives me a list of benefit plans, from that list I have to select proper benefitplan for selected records of that plan
1. Question:
I have two new plans , can any suggest me how to add in the f4 list of that field. Is it done through any program?
Another issue,
I have a report program, when I execute it gives me selected list fields like pernr, date, and some more fields. if you select some fields with the help of f4 , we can choose correct value,
2 Question,
I have two new parameters to be added in the f4 list of the fields in the Needed very urgent?
Thanks
RaviHi
You can create a search for that field with more than one fields and yu can add the search help for that field
see the doc
1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).
2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.
3)An elementary search help defines the standard flow of an input help.
4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.
5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.
6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.
CREATION:
Go to SE11 Tcode
select search help
give the 'z' search help name and create
select the selection method ur table name eg : 'mara'
dialog module 'display value immediately'.
add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.
where left position when displaying and spos = search position
and then save and activate ..
See the links:
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=2176485
https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=3601619
pls go through this for search help creation
http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
Search Help Exits:
Re: dynamic values for search help
Re: Dynamic search help
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm
http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_exit.htm
https://forums.sdn.sap.com/click.jspa?searchID=4390517&messageID=1712818
You can add F4 values for that field using the following
See the following ex:
TYPES: BEGIN OF TY_MBLNR,
MBLNR LIKE MKPF-MBLNR,
END OF TY_MBLNR.
DATA: IT_MBLNR TYPE STANDARD TABLE OF TY_MBLNR WITH HEADER LINE.
data: it_ret like ddshretval occurs 0 with header line.
At selection-screen on value-request for s_mat-low.
Select MBLNR from mkpf into table it_mblnr.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'MBLNR'
PVALKEY = ' '
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = IT_MBLNR
FIELD_TAB =
RETURN_TAB = IT_RET
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF SY-SUBRC = 0.
read table it_ret index 1.
move it_ret-fieldval to S_mat-low.
ENDIF.
Go through the test program.
REPORT Ztest_HELP .
TABLES : MARA.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS : P_MATNR(10) TYPE C.
SELECTION-SCREEN END OF BLOCK B1.
DATA : BEGIN OF ITAB OCCURS 0,
MATNR TYPE MATNR,
END OF ITAB.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.
SELECT MATNR
FROM MARA
INTO TABLE ITAB
UP TO 10 ROWS.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'MATERIAL NUMBER'
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_MATNR'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = ITAB
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
Regards
Anji -
How-To populate SELECT LIST default value from SQL Query
OK, I've done my homework, and did not find my answer in the Forum, so here it is.
I have a Page that displays fields from a SQL Query. The Page also has below that radiogroups, checkboxes, and Select Lists to allow the user to change values in the fields that are displayed at the top of the Region. I am able to pre-populate the radiogroups and checkboxes by performing a SELECT in the 'Source value or expression' of the Source area of the Page Item.
However, I am unable to do the same for the Select List fields. Their default value ends up being the first value in the LOV ('-- None --' for NULL values). Source Used: Only when current value in session state is null. Source Type: SQL Query. Also, when I first go into the Page when running it, and check the Session State values, they are all null, so I don't understand why the field is not populated by the SQL Query statement as the radiogroups and checkboxes are.
Any suggestions??? I've tried all sorts of combinations.Thank you for the suggestion.
I had considered that, but cannot do so, because we are using Oracle Application Express more for development than for data containment.
We have all our data in an Oracle 10.g DB which is separate from the OAEX server, and the OAEX app will reference that data via VIEWs and DB LINKs. We are doing so primarily as an added data security layer, where the data is housed separate from the app, in case the Web site is ever compromised. The data that can be viewed is restricted to a subset of the actual data that is available.
Since the data is on a separate server, (I assume) we will not be able to set the source type to Database column, because (I asume) that is dependent upon the data being housed by the OAEX server.
That still leaves me with having to populate the field with a SELECT statement from the Oracle DB. This unfortuneately is almost a show-stopper for me because of down-stream processing data requirements. Have not been able to come up with contingencies yet. -
Adapter file receiver - file with fix length record
Hi everybody,
In the file adapter receiver, I want to create a fixed length record file .
Each record need to have the same size.
How is it possible, because I have a file which contains variable legnth depending of the lenght of message?
exemple:
<mess>
<row>1234567</row>
<row>123456789A</row>
</mess>
give the file
1234567<CR>
123456789A<CR>
<CR> means carriage return
and I want a file like
1234567 <CR>
123456789A<CR>
with the same lenth of record (10 in the example).
Can anyone help me, ,please?
Kind regards.
E. KoralewskiHi Eric,
Create a value user defined function with one input argument a and name it is inputpad. Then add the following code:
Imports: java.*;
while (a.length()<Integer.parseInt("10"))
a= a +" " ;
return String;
Here I am assuming your fixed length for the field is 10. If it is more or less then change the number. Now in your mapping do all your logic and then in the final add this like:
input ---> your logic --> inputpad udf --> target.
Regards,
---Satish
Maybe you are looking for
-
New phone need to add to apple account to share music
my son got an att motorola phone how do i add it to the family itunes account to share
-
Assessment tool (free/opon source) or any tool that i can buy?
hi, Does anyone know about the tool(free/open source) that can help us assess a current SharePoint environment without even logging into the server OR we should put together a series of PowerShell scripts to e
-
Metadata replication popup when installing BI content in 7.4
When I select an object to install with grouping "Data Flow Before", I am constantly presented with the attached window, which I either have to cancel or accept, during the object collection process. This occurs multiple times (up to 20, 30, or more)
-
I just burned a video file to my dest top using Pre Ele 1. The dvd burner said the file was to big for a dvd. The video is only 1 hour long. What made the file so big.
-
Adding delete row icon to report
We have a custom report that I would like to add the delete row icon to. Is this possible? Thanks in advance. Eric