Multiple fields from a rowset into 1 text field
Is there anyway to take multiple rows from a rowset. And append them together in one text field?
example
rowsetloc/county = 33
rowsetloc/permit = 214
then in my text box on my form have 33-214.
I'm using BC4J to develop my applications.
null
John,
You can do this at several BC4J "levels"; I would suggest modifying your view to contain this attribute.
Modify the SELECT statement of your view to contain something like
"SELECT
TheTable.COUNTY,
TheTable.PERMIT
TheTable.COUNTY | | '-' | | TheTable.PERMIT AS SPECIALNUMBER
FROM THETABLE TheTable"
So, you are basically creating an attribute by concating two columns from the database.
Then, you might be able to remove the other attributes, County and Permit. You must provide some logic to provide editability and validation of this new attribute, SpecialNumber. This could be a bit of work...
Joe
Similar Messages
-
Fetching of multiple files from Application Server into SAP Program
Hi All,
I have a issue related <b>Fetching of multiple files from Application Server into SAP Program</b>.
Actual issue is as below.
In the <b>selection screen</b> of <b>my program</b> i will give <b>Application Server Path</b> as :
<b>/PW/DATA/SAP/D1S/PP/DOWN/eppi0720*</b>
Then the based on above input it should pick up all the files that are matching <b>eppi0720*</b> criteria.
Suppose if i am having <b>5</b> files with above scenario, i have to fetch all those <b>5</b> files at a time and place in my SAP Program.
All those 5 file's data should come into SAP at a time.
Can anybody tell me how can we solve above issue.
If any body has come across same issue please provide me with solution.
Thanks in advance.
Thanks & Regards,
Rayeez.If you want to get around the authorization check, you can do something like this.
report zrich_0001 .
parameters: p_path type epsf-epsdirnam
default '/usr/sap/TST/SYS/global'.
parameters: p_file type epsf-epsfilnam default 'CO*'.
start-of-selection.
perform get_file_list.
* FORM get_file_list *
form get_file_list.
types: name_of_dir(1024) type c,
name_of_file(260) type c,
name_of_path(1285) type c.
data: begin of file_list occurs 100,
dirname type name_of_dir, " name of directory. (possibly
" truncated.)
name type name_of_file, " name of entry. (possibly
" truncated.)
type(10) type c, " type of entry.
len(8) type p, " length in bytes.
owner(8) type c, " owner of the entry.
mtime(6) type p, " last modification date, seconds since 1970
mode(9) type c, " like "rwx-r-x--x": protection mode.
useable(1) type c,
subrc(4) type c,
errno(3) type c,
errmsg(40) type c,
mod_date type d,
mod_time(8) type c, " hh:mm:ss
seen(1) type c,
changed(1) type c,
end of file_list.
data: begin of file,
dirname type name_of_dir, " name of directory. (possibly
" truncated.)
name type name_of_file, " name of entry. (possibly
" truncated.)
type(10) type c, " type of entry.
len(8) type p, " length in bytes.
owner(8) type c, " owner of the entry.
mtime(6) type p, " last modification date, seconds since 1970
mode(9) type c, " like "rwx-r-x--x": protection mode.
useable(1) type c,
subrc(4) type c,
errno(3) type c,
errmsg(40) type c,
mod_date type d,
mod_time(8) type c, " hh:mm:ss
seen(1) type c,
changed(1) type c,
end of file.
call 'C_DIR_READ_FINISH' " just to be sure
id 'ERRNO' field file_list-errno
id 'ERRMSG' field file_list-errmsg.
call 'C_DIR_READ_START' id 'DIR' field p_path
id 'FILE' field p_file
id 'ERRNO' field file-errno
id 'ERRMSG' field file-errmsg.
if sy-subrc <> 0.
sy-subrc = 4.
exit.
endif.
* Read the file list and add to internal table.
do.
clear file.
call 'C_DIR_READ_NEXT'
id 'TYPE' field file-type
id 'NAME' field file-name
id 'LEN' field file-len
id 'OWNER' field file-owner
id 'MTIME' field file-mtime
id 'MODE' field file-mode
id 'ERRNO' field file-errno
id 'ERRMSG' field file-errmsg.
if sy-subrc = 1.
exit.
endif.
append file to file_list.
enddo.
* Write out the file list
loop at file_list.
write:/ file_list-name.
endloop.
endform.
Regards,
Rich Heilman -
Scanning multiple pages from print book into computer
How to scan multiple pages from print book into computer? Someone supplied a link to this question, but I got stuck at step 1: Where is "HP Director software"? In other directions, it says to open the "HP Scan window," but that option is not available to me when I follow the directions. I have an HP 2159m computer, HP Photosmart Plus all-in-one, Windows 7, and use Firefox, if that's any help.
TIAI have a similar problem:
I am using an HP Officejet 6310xi via its TWAIN interface. Regardless of which application invokes TWAIN (whether Irfanview, Thumbs Plus, or something else), the scanner dialog closes after transferring each scanned image. To scan the next page requires re-starting the scanner, beginning with a whole new preview and re-entering all my scan settings. This is only an issue with the HP scanner, not with my Cannon CanoScan LIDE 100, Visioneer OneTouch 8920, or any other scanner, each of whose scanner dialogs stay open for scan after scan. Can anyone help me make the HP scanner dialog stay open for multiple pages?
Note: Based on a suggestion on another site I set my scan preferences to include "Prompt for Additional Scans from Glass" as follows, but it did not help.
I am experienced at scanning, but I find it extremely frustrating that the HP scan dialog closes, forgetting its settings, after each page.
If it helps others, I gladly share my article, "Freedom from Paper--At Last" here
http://www.richpasco.org/paperless.html -
How to store the data coming from network analyser into a text or excel file
Hii everyone
I'm using Agilent 8719ET network analyser and wish to store the data coming from netowrk analyser into a text file/ excel file.
Presently I'm able to get the data on Labview graph using GPIB . Can anyone suggest how to go ahead after collect data sub vi. How can the data be stored into a file apart from showing on the graph?
Attached is the vi for kind consideration...
Looking for help
Regards
Rohit
Attachments:
Agilent 87XX Series Exceed Max Meas.vi 43 KBFirst let me say that your code really looks pretty good. The data handling could be made more efficient by calculating the number of datapoints that are going to be in the completed dataset and preallocating the entire array -- but depending upon your answer to my questions, the logic in the lower shift register may be going away - so we won't worry about that right now.
The thing I need to know before addressing the data storage question is: Each time you call "Collect and Display Data.vi", how many element are in the array? Are you reading single data points, or a group of data? (BTW: if the answer to that question is obvious based on the way the other VIs are setup, I don't have the drivers so I can't tell what the setup values are.) Second, how fast does the loop iterate? Are we talking msec per loop?, seconds? fortnights?
The issues here are two-fold: how much data? and how fast is it coming? The answer to these will tell you how to save the data.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
Query: how to avoid multiple POs from being combined into delivery
Hi all,
We are working on an enhancement.
The requirement is:
We need to avoid multiple POs from being combined into one delivery.
Any pointers in this regard would be highly appreciated.
regards
GurpreetHi Murali,
I think your suggestion should solve Gurpreets problem.
I have a query here.
In the copy controls VLTA, defines between sales doc to dlivery doc.
Here we want to maintain copy control between purchasing doc to delivery doc.
How do we achive this?
Also in my view we should write a new combination requirement.
Please check if combination requirement 51 can be used?
Regards
Abhishek -
FWD: Re: Retrieving multiple rows from a database into morethan
There are two ways to do this that I cn think of right off the bat.
One is to create a class of objects that can receive the entire row, and
give it methods that will return each of the individual objects that you are
looking for when called. If you use INTO :ARRAY, you get the advantage of
being able to pass the array anywhere in your system for the 'split up'
processing.
Two is to do basically the same thing, but instead doing the 'split up'
during a for loop. This will appear to slow down your query, however, as
extra processing will be occuring in terms of memory allocation and copying.
I'm sure there other approaches. This was simply what came to mind at
midnight, after a long day :-).
At 01:33 AM 6/4/96 +0000, you wrote:
Does anyone know of a way to retrieve multiple rows from a single table in an
RDB database into more than 1 object, using a single SQL call?
I have a single table that I wish to use some fields to populate one object
and some others to populate another.
The FOR clause only allows one object to be specified.
The INTO :ARRAY clause also seems to only allow one object to be specified.
I would appreciate any help.
Regads,
Steve Isaac
Hydro Electric Commission
Hobart TAS 7001
Australia
[email protected]
James Urquhart Voice: (510)869-3400
[email protected] Fax: (612)921-8243
Forte Consultingwow, that was pleasant, the usual format goes:
Newb: I have a problem, fix it for me
Forum: Here's a link explaning the concept you obviously don't grasp
Newb: No, fix it FOR me
Forum: I'll fix you!
Newb: WAAAAH!
Forum: BAN! -
How do I extract multiple tracks from a CD into a single file in Audition CS6?
I use Audition to edit my Pastor's messages. The message CD is made with five minute tracks. I want to extract the tracks from the CD into a single file for editing and altering the track lengths. I have done this before in Audition CS6, but I haven't been able to find instructions for it. I only found a note stating this is available in AuditionCC.
I have discovered an answer to my problem. The way to bring multiple tracks into Audition CS6 from a CD is to use the FILE / OPEN APPEND / TO NEW command. This brings the separate tracks into a single file in Audition CD6. Thanks to everyone who commented.
-
We require them to enter their own text into the field. The form was created in LiveCycle Designer and is accessed by users in Reader. Thanks
You can't prevent someone from pasting, but you can use a script to check if more than one character was pasted at a time, and prevent it if it's true. This would be a reasonable alternative it seems, but you should post this question in the LiveCycle Designer forum if you need help with the script.
-
How to get the field texts from abap dictionary into screen Text fields
Hi SapAll.
here i have got to modify one zscreen by adding 1 more field,when i added one field in teh screen by just writng the code in program as SELECT-OPTIONS ilart FOR CAUFVD-ILART.
but iam unable to get the field text for the text field from teh table CAUFVD.
CAN ANY BODY HELP ME IN THIS.
regards.
varmaHi Varma,
Even if you want to personalise the Text also you can do without checking the DICTREF checkbox. Dirctly you can give the text in the Text elements by using the Menu GOTO -> Text Elemetns -> Selection Texts.
Regards
Thiru -
Multiple values from database on a single text item
i am trying to do the following
on a single text item in a form
(under form property pallete->records->number of items displayed is 5) run a triger "when-new-block-instance" with the following pl/sql statement
declare
menu_item VARCHAR2(35);
begin
select label into menu_item
from menu_options;
end;
however, once i run the form it gives me
WHEN-NEW-BLOCK-INSTANCE trigger raised unhandeled exception ORA-01422
however, if in the pl/sql statement contains only
begin
execute querry;
end;
then it works fine
The problem i beleive is the fact that the first querry retreives multiple values or recordset instead of A record.
How can i go arond this and allow the form to list all the values in this form. Eventually i will need to add conditional SQL statments and that is why just execute querry will not work.
Also, is there a way to dynamically assign a number to "number of records shown" property?
All help is very much appreciated!
nullHi, Marko
I teach Forms, and I usually find a bad idea to use SQL statements directly (in particular when you can "make" Forms to do what you want).
Inside PL/SQL, a SELECT..INTO statement is supposed to select a single row, otherwise an error occurs.
EXECUTE_QUERY works.
If by "conditional SQL statements" you mean restricted (filtered) queries, you don't need to write SQL to do this.
You can set the DEFAULT_WHERE block property to a different value before using EXECUTE_QUERY, like:
SET_BLOCK_PROPERTY('your_block', DEFAULT_WHERE, 'where menu_id > 100');
And the answer to your second question is no, you cannot dynamically change the number of records a block is displaying.
You can limit the number of records your block queries from the database table using Maximum Records Fetched block property (available in Forms 6 and above, not sure about Forms 5). However, this will only work as expected if you set Query All Records to Yes.
Hope this helps,
Pedro -
Access 2010 - How to display data from a table into a text box upon combo box selection?
Hi
I have a a table with 5 columns: month, year, USD, SGD, BAHT.
I created a form with a combo box for selection of the month and year, and I would like to set adjacent text boxes to show USD, SGD, BAHT information. How can i go about doing that?
From the Q&A here, most of them uses the function similar to this "=[Combo0].[Column](1)" to show the data in the text box, but this would require the combo box to list a whole bunch of details if i were to add in more currency values to the
table. Is it possible to not show this information in the combo box, but still populate data in the textboxes base on a selection on only the "month" and "year" in the combo box.Hi,
According to your description, my understanding is that you want to show only the month/year in the combo box, we can choose the date, and it will display the value of USD/SGD/BAHT based on the month/year.
If it is, I recommend you try the steps:
Create a form based on your data source table>Add the combo box>combo box wizard>Find a record on my form based on the value I selected my combo box>Add mouth and year to selected fields
http://office.microsoft.com/en-us/access-help/create-a-list-of-choices-by-using-a-list-box-or-combo-box-HA010113052.aspx
If I misunderstand something, please let me know. We may upload some screenshots or a sample through OneDrive.
Regards,
George Zhao
TechNet Community Support -
Writing information from a StringBuffer into a text file in KM
Hello All,
Is there a way to write content such as a text file into the KM.
The only way I can see at this point is:
1. create a resource
2. transfer stringBuffer into an inputStream
3. Update the resource with the inputStream
This feels awkward and I have not tried it yet. Basically I want to write reports into a KM directory.
Points awarded to helpful answers. Thanks!
CorycreateResource always takes InputStreams. Why is that a problem? Just use string.toBytes(encoding) and ByteArrayInputStream to obtain a stream for that.
Just be sure that you're consistent in the character encodings you use when obtaining the byte array from the string (UTF-8 recommended) and when creating the Content object.
Best regards, Julian -
Display multiple feild from search help into screen feild
Dear Expert,
I create a search help which have 2 parameters.
The 1st parameter is as like as ztable field.
but 2nd parameter is not a data base field. It display only the value from value table.
Now I want to use it on a ztable when insert data from zreport.
I also take a text field to display the 2nd parameter which is not in DDIC.
how can I display 2nd parameter on the screen text field ?
pls help me.
Thanks
rayhannot proper answer
-
Batch uploading multiple projects from Aperture 3 into sets on Flickr
I'm a new Aperture user (ex iPhoto) and imported all my photo's into Aperture. Like many of you here I sort my projects into folders locally in format year-month-date - title.
Now I've imported all these folders (around 450) at once and each local folder is nicely imported as a seperate project. So far so good.
In the past I've started syncing all these folders to Flickr sets through the Flickrs uploadr (manually creating each folder, tagging etc). Aperture has Flickr syncing build in which is great, but it seems like I can only sync one project at a time. When I select multiple projects the flicks icon turns 'unavailable'. Does anyone now is this can be done?
And secondly is there a way to format the title of each created set (through Apple Script which I don't now anything about?) or is it perhaps built into Aperture?
Thnx for the help!Oh, baby! This bad boy flies!! Here's what to expect:
I had 40,000 images in Aperture 3 and it was dog slow at everything. I installed 3.1 update today. It took 5 minutes to update the database and then behaved marginally better than before at ASIC library navigation. I was disappointed.
Then I QUIT the app. It took a couple of hours to "update files for sharing" with a counter that went to 110,000 images. So it must have updated every thumbnail and variation of preview. Turned it back on , and BAM. Came up fully in seconds. Paused for 10 seconds ten everything was lickrty split. For the first time ever, I can use the Projects view with all 791 projects and scroll quickly. I even put it in photos modevand whipped thru all 49,000 images!
Haven't done anybprocessing yet, but i'm liking it!!
Jim -
How to restrict user to select date from the calendar into a text item
Hi All,
I am using oracle 10g.IN a form i am having a block 'client_block' in that i am having a text_item ' entry_date' which is a datebase item and i have set enabled false in property palette and i created an image item on the same form and i have an calendar icon on it .In when_image_pressed trigger for image item i have written this code
SET_ITEM_PROPERTY('CLIENT_BLOCK.ENTRY_DATE',ENABLED,PROPERTY_TRUE);
DATE_LOV.Get_Date(sysdate,'CLIENT_BLOCK.ENTRY_DATE');
This is working perfectly but user can enter or delete date into the text_item through keyboard i want to restrict that they can only select date from calendar.
I have tried setting item property enabled false in triggers but it is not working.
Can someone help me what trigger i have to use and how?.
Thanks
SriHi,
This is working perfectly but user can enter or delete date into the text_item >>>through keyboard i want to restrict that they can only select date from calendarSet Insert allowed to 'NO' in property pallete of item ENTRY_DATE.
In ON-ERROR Trigger::
BEGIN
DECLARE
err_code CONSTANT NUMBER := error_code;
err_type CONSTANT VARCHAR2(3) := error_type;
BEGIN
IF (err_type = 'FRM'
AND err_code IN (40200)) THEN
Message('Updates Not allowed, Please Select Your Date from Calendar');
Message(' ');
ELSE
NULL;
END IF;
END;
END;
Thanks,
Bhujendra
Maybe you are looking for
-
Outbound Order Confirmation - Output control for incomplete sales orders
Hi EDI Folks, I have a simple question. I want to send EDI 855 for only the completed sales orders. Whenever inbound sales order is processed and if the order is incomplete. I don't want to send the order confirmation for the order at that point of t
-
When I try to enter my customer number to log into my online banking website, an error message reads: This form has been re-submitted. Re-enter your customer number and submit only once. When I called the bank to find out if they could help they said
-
I uninstalled Flash Builder 4.7 using the uninstall app. I'd like to re-install the app, but Creative Cloud says it's up-to-date, even though it does not exist anymore on my computer. How can I re-dowload it?
-
iMessage worked fine on my Macbook until about two weeks ago. I can use iMessage for gMail, but my iCloud account is inactive and I get the error message "An error occurred during activation. Try again." when I try to log in with any apple ID. It w
-
I cannot get Messages App to send out messages
I'm running Yosemite and the Messages app won't send out messages. Trying Again also fails. I did a clean reinstall and now messages can come in but still cannot send.