Split the value using comma as delimiter and then pass each value to query to get the description
Hi,
As i am new to crystal reports, I need help in getting one field.
In my report i am using 2 tables:
one is like :
code_id
code_desc
1
aaa
2
bbb
3
ccc
4
ddd
and the another is :
reason_ind
1
2,3,4
2,3
1,2,3,4
3,4
In this report i have a column : Reason_desc.
Here i have to show code_desc for those values of reason_ind matches with code_id in the above table.
Ex:
reason_ind
reason_desc
1
aaa
2,3,4
bbb,ccc,ddd
2,3
bbb,ccc
Let me know if you need further clarifications.
Thanks in advance.
Regards,
Swathi.
Hi Swathi,
Here's how you can do this at the report level:
1) Create a Main report pointing to the second table from that screenshot.
2) Drag and drop the Reason_ind column on the Details Section
3) Insert a Subreport pointing to the First table and place it on the Details Section
4) Right-click the Subreport > Select Change Subreport Links > Move the Reason_Ind field to the pane on the right > Uncheck the option 'Select data in Subreport based on field'
5) Get inside the Subreport and go to Report > Selection Formulas > Record and use this code:
ToText({Code_Id},0,"") IN Split({@Pm-Reason_Ind},",")
6) In the Subreport, create a Group on the Code_Desc field
7) Suppress the Report Header, Group Header, Details and Group Footer sections
8) Create a Formula with this code and place it on the Group Header 1 section:
whileprintingrecords;
stringvar s := s + {Code_Desc} + ", ";
9) Create one more formula and place this on the Report Footer section:
whileprintingrecords;
stringvar s;
Left(s,len(s)-2);
Hope this helps.
-Abhilash
Similar Messages
-
When I go to log onto iCloud using my Windows 7 and it asks for my login information, I get the error saying my Apple ID is valid but not an iCloud account. How do I get an iCloud account?
I don't have any apple products personally, this is for work to use Photo Stream so when Superintendents & Project Managers take pictures of their construction site, I am able to have those images immediately.
Thank youYou can not create an iCloud account using a PC, you will need an Apple product. Once the account exists you can logon to it from a PC.
-
Recently moved and installed ATT DLS - I use their wireless router and connectted my airport express - Now I'm getting the Blue ? on some images - and at times - videos don't load. I've increased / deleted Cache. Suggestions? Misconfig? Could it be possible my configuration from MacBook to router isn't correct?
Thanks!JG,
Thanks for the info.
Couple of questions. I found an apple support document on this topic that opened with this line:
"AirPort Express and all AirPort Extreme base stations can use WDS. Earlier AirPort base stations can't."
If the TC is an airport extreme base station, why can't this work to extend the network? I think I misunderstand. Here is the full article:
http://support.apple.com/kb/HT2044?viewlocale=en_US
If I buy a new airport extreme, set it to wireless-n only as my main router, am I correct that my existing time capsule could be used as a bridge if plugged in upstairs?
Final question (and that should do it), could I take this old airport express, plug it in upstairs using the ethernet connection, and just create a separate wireless network to use with a different name?
I'd like to keep one network if possible but just kicking around short term solutions.
Thanks again. -
My hard drive died last week, and I needed to install a new one. Previously, I was able to save a .doc with text and inserted photo to .pdf and then to .jpg. Now I can get the .pdf but can't determine what to do to convert to .jpg. Does anyone know ?
Rather than do that, which means starting over from scratch, losing all your edits, organisation and so on, why not simply use iPhoto Library Manager to revert the Library to the older version? Easier, less destructive.
The instructions on that are here
If you really want to start over: you can access the Originals folder simply by going to your Pictures Folder and finding the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed. -
I installed Aperture from the App Store, it was working ok, then suf=ddenly it wont load, I get the "Aperture encountered problem" message, have updated all OSX and Aperture but I still cant get it to work, any ideas ?
I installed Aperture from the App Store, it was working ok, then suf=ddenly it wont load, I get the "Aperture encountered problem" message, have updated all OSX and Aperture but I still cant get it to work, any ideas ?
-
I want to buy a $10.99 Album and I only have a $10.00 gift card. So a friend of mine offered to use his/her email and password. If I use his/her email and password on my laptop, would the album go to my iTunes still?
In order to play songs with iTunes on your computer that were downloaded with another iTunes account, your computer must be authorized with that iTunes account with iTunes.
-
How do I close Apps on iPhone 4 Version 7? Previous versions entailed holding down the App until a cross appeared then it could be closed.
Double-tap the home button and then swipe UP on the app preview window...not the icon but the preview window above the icon.
-
It is an older computer purchased in 2003. What would be the newest version of Firefox that a mac mosX could run?
Firefox 4 requires at least OS X 10.5 and an Intel Mac.
If you have OS X 10.3.9 or earlier, the last version of Firefox that works on that version is Firefox 2.0.0.20 available from https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/2.0.0.20/mac/en-US/
If you have OS X 10.4 or 10.5, there is a third party version of Firefox 4 that runs on OS X 10.4/10.5 and PPC Macs, for details see http://www.floodgap.com/software/tenfourfox
For OS X 10.4 or 10.5, if you prefer, you can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html -
When I try to synch my iPhone 4 with iTunes - both at the latest code levels - the synch goes normally until the last stage where I get the message Finishing sync. It nevers completes. Eventually it times out and states that the iPhone is not responding. On the phone the sync icon has gone away so the iPhone thinks that it is done.
More information. During the synch process this last time it moved through the first 5 steps fine. At some point during the "Waiting for items to copy" the iPhone stopped showing the sync icon.
-
Windows shuts down my itunes evrytime I try to open it because of an error. I have unistalled and re-installed several times with the same results. HELP???
what's the error specifically
or does it say itunes has encountered a problem and needs to close because if that's the case then try these steps
-download and install quicktime at the apple website
or
http://support.apple.com/kb/TS1717 -
Splitting string separated by commas into words and assigning numerical values
Project details :
I have a project where a description field is being looked at and based on the values (multiple words) I have to do a vlookup from another spreadsheet to get the dates from the appropriate date fields.
I have created a user defined function to extract keywords from a list from a table. It extracts words from the string separated by comma delimiter.
I am thinking of assigning values something like this: cooler = 1, compressor = 2, frame = 2, change of order = b etc.
So if there is a “cooler, compressor, frame, change of order” in the cell, then it should read as: b12 (unique values). Based on the values, I can do a vlookup on the dates. I tried sumproduct in conjuction with search function but did not
work. Tried split function but did not quite work.
Any help regarding this is greatly appreciated. Thank you, regards
keywords
engine, compressor, frame, cooler =Keywords(Wordlist,A2) is the function I am calling
frame, cooler
engine, cooler, change order
coolerHi,
You're asking this question in the wrong forum, this is a PowerShell forum.
The Excel VBA forum is this way:
http://social.msdn.microsoft.com/Forums/en-us/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
Side note to whoever voted up the OP - why??
Don't retire TechNet! -
(Don't give up yet - 12,950+ strong and growing) -
How to Splilit The String Into Single Column using Comma As Delimiter ?
How to Splilit The String Into Single Column using Comma As Delimiter ?
using Functionrefer my thread ,code is also available see if that helps you
error while executing the sp ORA-21779: duration not active -
I have been using itunes all day and then it wanted me to install a newer version. When I did it said I can't because it's missing mdsvr80 or something so i downloaded that now it has another error. How do I get itunes back the way it was or to work?
See this User Tip by turingtest2
https://discussions.apple.com/docs/DOC-6562 -
I am using a Photoshop cs2, and I wonder if it is possible to keep the settings of the guidelines when closing an image, with the actual document ? It would be nice to have the guidelines locked down, I find it than when opening the same or another image, the guidelines are not locked, it is annoying to have to lock them down again. and it would actually be nice, to ba able to give specific directions when placing the guidelines. Thanks
Then why are the guides unlocked when I reopen a document that I saved with the guides locked ?
Thanks. -
my macbook wont start the screen turn blue and stay like that for hrs. It only work when i use safe mode, i try to use disk utilities to fix it but the disk utilities keep saying error and a bunch of other stuff. I dont the cds the comp came with, help. i've tried the command s command p command v but nothing i've tried to the safe mode then a quick restart but nothing
disk utility give me this:
Process: Disk Utility [371]
Path: /Applications/Utilities/Disk Utility.app/Contents/MacOS/Disk Utility
Identifier: com.apple.DiskUtility
Version: 11.5.2 (298.4)
Build Info: DiskUtility-2980400~60
Code Type: X86-64 (Native)
Parent Process: launchd [86]
Date/Time: 2013-11-05 03:29:41.247 -0500
OS Version: Mac OS X 10.6.8 (10K549)
Report Version: 6
Interval Since Last Report: 9522 sec
Crashes Since Last Report: 29
Per-App Interval Since Last Report: 981 sec
Per-App Crashes Since Last Report: 25
Anonymous UUID: F6B8E263-76C8-4C7D-AA58-48134BF4BA78
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000020
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x0000000100c62fbc _read_images + 312
1 libobjc.A.dylib 0x0000000100c79721 map_images_nolock + 1266
2 libobjc.A.dylib 0x0000000100c62761 map_images + 115
3 dyld 0x00007fff5fc039c5 dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) + 853
4 dyld 0x00007fff5fc0c849 ImageLoader::link(ImageLoader::LinkContext const&, bool, bool, ImageLoader::RPathChain const&) + 201
5 dyld 0x00007fff5fc04d54 dyld::link(ImageLoader*, bool, ImageLoader::RPathChain const&) + 118
6 dyld 0x00007fff5fc08f7c dlopen + 490
7 libSystem.B.dylib 0x0000000100a14e40 dlopen + 61
8 com.apple.CoreFoundation 0x0000000100d78ef7 _CFBundleDlfcnLoadBundle + 231
9 com.apple.CoreFoundation 0x0000000100d77e97 _CFBundleLoadExecutableAndReturnError + 1191
10 com.apple.Foundation 0x0000000101008355 _NSBundleLoadCode + 638
11 com.apple.Foundation 0x0000000101007c78 -[NSBundle loadAndReturnError:] + 742
12 com.apple.Foundation 0x000000010101960c -[NSBundle principalClass] + 38
13 com.apple.framework.DUSupport 0x0000000100082080 -[DUModuleManager(_private) findDUModules:] + 405
14 com.apple.framework.DUSupport 0x0000000100081ed9 -[DUModuleManager orderedModuleListOfModules] + 40
15 com.apple.DiskUtility 0x0000000100006082 0x100000000 + 24706
16 com.apple.DiskUtility 0x0000000100005f59 0x100000000 + 24409
17 com.apple.AppKit 0x0000000101444625 -[NSWindowController _windowDidLoad] + 538
18 com.apple.AppKit 0x00000001013e1f77 -[NSWindowController window] + 112
19 com.apple.AppKit 0x00000001015f61d9 -[NSWindowController showWindow:] + 47
20 com.apple.AppKit 0x00000001015c7c5c -[NSDocument showWindows] + 98
21 com.apple.AppKit 0x00000001015c64bb -[NSDocumentController openUntitledDocumentAndDisplay:error:] + 340
22 com.apple.AppKit 0x00000001014f7b44 -[NSDocumentController(NSInternal) _openUntitled] + 111
23 com.apple.AppKit 0x00000001014f79ab -[NSApplication _doOpenUntitled] + 257
24 com.apple.AppKit 0x00000001014f733b -[NSApplication(NSAppleEventHandling) _handleAEOpen:] + 185
25 com.apple.AppKit 0x00000001014f6fd9 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 77
26 com.apple.Foundation 0x0000000100ffd0d6 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 360
27 com.apple.Foundation 0x0000000100ffcf06 _NSAppleEventManagerGenericHandler + 114
28 com.apple.AE 0x0000000104d7332b aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 162
29 com.apple.AE 0x0000000104d73224 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 32
30 com.apple.AE 0x0000000104d7312b aeProcessAppleEvent + 210
31 com.apple.HIToolbox 0x00000001028a0619 AEProcessAppleEvent + 48
32 com.apple.AppKit 0x00000001013fc095 _DPSNextEvent + 1191
33 com.apple.AppKit 0x00000001013fb801 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
34 com.apple.AppKit 0x00000001013c168f -[NSApplication run] + 395
35 com.apple.AppKit 0x00000001013ba3b0 NSApplicationMain + 364
36 com.apple.DiskUtility 0x0000000100002009 0x100000000 + 8201
37 com.apple.DiskUtility 0x0000000100001db8 0x100000000 + 7608
Thread 1: Dispatch queue: com.apple.libdispatch-manager
0 libSystem.B.dylib 0x0000000100a27c0a kevent + 10
1 libSystem.B.dylib 0x0000000100a29add _dispatch_mgr_invoke + 154
2 libSystem.B.dylib 0x0000000100a297b4 _dispatch_queue_invoke + 185
3 libSystem.B.dylib 0x0000000100a292de _dispatch_worker_thread2 + 252
4 libSystem.B.dylib 0x0000000100a28c08 _pthread_wqthread + 353
5 libSystem.B.dylib 0x0000000100a28aa5 start_wqthread + 13
AND MORE TOO MUCH TO COPY N PASTE HELP PLEASE!!!!!Reset the PRAM
Reinstall the operating system from the dvd (you will not loose your data)
Maybe you are looking for
-
Playing a QT file within a finder window: not in Leopard?
Does Leopard not have the feature of playing a QT file (audio, movie) from within the file list? In Tiger if you selected such a file (in pane view mode), a QT player would appear in the next pane (preview / info) where you could play it there withou
-
I downloaded mozilla firefox today and now I get the error 0x80070002 all the time, and I cannot use system restore because of it. How do I fix that so that my computer works right again. I was restoring because after I d/l your mozilla today, I lost
-
Business Area postings in Tax line items
Hi Experts, As we know that Business Area is not updated in the tax line items, In one our company code we have done BA adjustment through F.5D and F.5E in 2007, after that there are thousands of line items in the system without business areas, now m
-
I purchased two songs on i-tune and when I attempt to down load them, I get an error,"you do not have enough access privilege for this operation.?????
-
Regarding terminating events in workflows
Hi, I know that terminating events are used with asynchronous methods. Can anyone tell me, why do we need to do so???? Thanks and Regards, Ravi Varma