Need help with output one field horizontally please
I know I have seen some ideas and threads about this, but it is not really what I need. I have a report in CR XI that seems to be on the right path. The problem I am having is one field that needs to be in details could provide multiple results (products and services) which duplicates all the records. Some customers I'll have 3 lines, the next 9 ... depending on how many P&S they have.
What I have done is moved all fields from the details section to group1 which so far seems fine and left my P&S field in details.
The output is normal:
prod1
prod2
prod3
prod4
etc.....
What I need is this: prod1, prod2, prod3, prod4, etc.
Any ideas greatly appreciated.
In the group header add a formula
WhilePrintingRecords;
Global StringVar ProductList;
ProductList := '';
in the details
WhilePrintingRecords;
Global StringVar ProductList;
If ProductList = '' then
ProductList :=
else
ProductList := ProductList & ', ' & ; ''
In the group footer
WhilePrintingRecords;
Global StringVar ProductList;
ProductList
Edited by: Terry Mergl on Apr 20, 2010 9:15 PM
What you have should do it. Is there an issue? Please explain in detail, giving sample data, current results, and expected results.
Carl
Similar Messages
-
Subquery results need help with output
Requirements:
There is request to dump every days data from one table into text file.
Tables:INSPECTION_RESULTS
NJAS
Primary Key: RES_SYS_NO
Parent table: INSPECTION_RESULTS
Child table: NJAS
Purpose:
1. obtain output results for the MIN and MAX RES_SYS_NO from INSPECTION_RESULTS table for yesterdays date.
2. Create comma delimited file for following columns using above table data output.
Script thus far:
SELECT NJA_RES_SYS_NO||','||NJA_TEST_REC_NO||','||NJA_LIC_ST_ID||','||NJA_ETS_ID||','||NJA_SW_VER||','||NJA_TECH_ID||','||NJA_VIN||','||NJA_LIC_NO||','
||NJA_LIC_JUR||','||NJA_LIC_SRC||','||NJA_MODEL_YR||','||NJA_MAKE||','||NJA_MODEL||','||NJA_VHCL_TYPE||','||NJA_BODY_STYLE||','||NJA_CERT_CLASS||','||
NJA_GVWR||','||NJA_ASM_ETW||','||NJA_ETW_SRC||','||NJA_NO_OF_CYL||','||NJA_ENG_SIZE||','||NJA_TRANS_TYPE||','||NJA_DUAL_EXH||','||NJA_FUEL_CD||','
|| NJA_VID_SYS_NO||','|| NJA_VRT_REC_NO||','|| NJA_ARMSTDS_REC_NO||','|| NJA_RSN_F_N_TESTABLE||','|| NJA_DYNO_TESTABLE||','||
NJA_CURR_ODO_RDNG||','|| NJA_PREV_ODO_RDNG||','|| NJA_PREV_TEST_DT||','|| NJA_TEST_TYPE||','||
NJA_TEST_START_DT||','|| NJA_TEST_END_TIME||','|| NJA_EMISS_TEST_TYPE||','|| NJA_TEST_SEQ_NO||','
||NJA_LOW_MILE_EXEMP||','||NJA_TIRE_DRY||','|| NJA_REL_HUMID||','|| NJA_AMB_TEMP||','||NJA_BAR_PRESS||','|| NJA_HCF||','||
NJA_GAS_CAP_ADAP_AVL||','|| NJA_GAS_CAP_REPL||','|| NJA_OVERALL_GAS_CAP_RES
FROM NJAS
WHERE NJA_RES_SYS_NO IN (SELECT MIN(NJA_RES_SYS_NO) FROM INSPECTION_RESULTS WHERE NJA_RES_SYS_NO IN
(SELECT MAX(NJA_RES_SYS_NO) FROM INSPECTION_RESULTS, (SELECT SYSDATE-1 FROM DUAL))
It works but not sure if I am getting accurate results. Can anyone help me fine tune this subquery script? Thanks!
ScottDuplicate post
See my answer in your other posting here Re: need help with script -
Need help with Business One Implementation Consultant Certification
Hello,
I need help preparing for the B1 certification. I have taken the test once already and failed. I found it very tricky with multiple correct answers for each question.
I have gone thru the eLearning several times now. And this week I am taking the instructor led training. I have also purchased and studied the Ebook. I have a good grasp of the product, but I feel that this is not enough to help prepare for the test.
I want to know if there are any other resources I could use to help prepare for the test. Are there any practice exams
Any and all help is appreciated
Thank you!
John
jseftonATsophlogic.comHi John,
I found the e-learning good , but a bit limited, so I branched out to these & passed quite well :
- documentation links on the 2007 landing page:
Channel Partner Portal -> Solutions -> SAP Business One -> Hot Topics -> 2007
- ETS:
Channel Partner Portal -> Solutions -> SAP Business One -> Support -> Training & Knowledge
- DRC:
Channel Partner Portal -> Solutions -> SAP Business One -> Support -> Documentation resource centre
Hope it helps & good luck!
All the best,
kerstin -
Need help with Business One Certification
Hello,
I need help preparing for the B1 certification. I have taken the test once already and failed. I found it very tricky with multiple correct answers for each question.
I have gone thru the eLearning several times now. And this week I am taking the instructor led training. I have also purchased and studied the Ebook. I have a good grasp of the product, but I feel that this is not enough to help prepare for the test.
I want to know if there are any other resources I could use to help prepare for the test. Are there any practice exams
Any and all help is appreciated
Thank you!
John
jseftonATsophlogic.comHi John,
when I was studying for the 2007 certfication I found the info in the DRC & the ETSs very good.
Channel Partner Portal -> Solutions -> SAP Business One -> Solution Overview -> Additional Resources -> Documentation Resource Centre
There was also a lot of info on the Landing pages:
Channel Partner Portal -> Solutions -> SAP Business One -> Hot Topics-> SAP Business One 2007 information centre -> lots of links to individual landing pages, pdfs etc.
Good Luck!
All the best,
Kerstin -
Need help with videos!!! Please
i need help! i have a 30G ipod video and my videos are being weird. They used to play on my ipod but now there is no picture or sound. it plays on itunes too so i dont understand. Also, my purchased music plays on itunes but skips past them on my ipod-they used to play on my ipod. PLEASE help me!
Welcome to Apple Discussions!
For Videos:
So what are they doing? Are the videos showing up under "Videos" on the iPod? What happens when you try to play them? Have you tried these?
Resetting iPod
Restore the iPod
For Purchased Music Skipping:
Have you played the songs in iTunes for a few seconds? This will authorize them. Now sync your iPod. Do they play?
If not, make sure everything is up to date on your computer and iPod..
iTunes
iPod Updater
Updating iPod's Software
If that doesn't work, in iTunes, go to advanced-->deauthorize computer. Now play the songs in iTunes. It will ask for your account information (from the iTunes Music Store). Enter that. Now play a few purchased songs for a few seconds. Sync your iPod. Do the songs work now?
If they don't, try this...
Deauthorize the computer. (Go to advanced-->deauthorize computer in iTunes)
Create a new user in the system. (Start-->control panel-->user accounts-->create a new account)
Download the free song of the week in the new user account. (First, log out of the current user and log in to the new user account. Then open iTunes and download the free song)
Play the song in that username to authorize it.
Restore the iPod in the New User account, sync just the Free song of the Week and see if it plays on the iPod.
If it plays fine on the iPod when syncing with this user name (after you followed the above instructions), it would indicate a bad iTunes Library File. Post back for instructions on how to fix that.
Now, if it still won't work (you followed the above instructions with the new user account) and the iPod still won't play the songs, then post back.
btabz -
Really need help with this one!!
hi all im posting here in the hope that some one can show me some light at the end of the tunnel as to my bb problem as its starting to get depressing now!
long story short ive had bt bb for 4 weeks now and im paying for 8mg as thats the fastest my area can provide but my transfer speed is locked at 2mg maximum. countless phone calls later they said its a throughput issue and they will put a request in to reset my profile and everything will be fine. as i thought it didnt work. lots of phone calls later they said i had to wait 10 days after the request is put in for my speed to increase. waited 12 days and still nothing! more phone calls later they eventually sent an engineer round who said himself he cant see why my downloads are locked at 2 mg when after his own tests he said the line should be giving me at the very least a stable 6.5mg so he proceeded to put a request in of his own to a bt computer thats codenamed "rambo" to increase the speed to my house. he said i should see results after 4 hrs but in some rare cases its taken 72 hrs to kick in. so i ended up waiting 4 days and still **bleep** all. im so so sick of bt and all the **bleep** they are feeding me as they keep telling me every single time they say there gonna fix it that this time it will 100% fix my problem and it never does. really feel im being ripped off cos im paying for the top package in my area and im not getting anything anywhere near what i should be. can anyone please help with my problem it would be very much apreciated.
thanks for reading all this peepsalso heres the speed test results
FAQ
Test1 comprises of Best Effort Test: -provides background information.
Download Speed
1840 Kbps
0 Kbps
2000 Kbps
Max Achievable Speed
Download speedachieved during the test was - 1840 Kbps
For your connection, the acceptable range of speeds is 400-2000 Kbps.
Additional Information:
Your DSL Connection Rate :8128 Kbps(DOWN-STREAM), 448 Kbps(UP-STREAM)
IP Profile for your line is - 2000 Kbps
If you wish to discuss these results please contact your ISP.
If you are experiencing problems with specific applications, servers or websites please contact your ISP for assistance.
whats really getting to me now is bt keep admitting to me my acheivable speed should actually be in the region of 6.5 mg and my profile shouldnt be set to 2000kbps so if they know the problem themselves why cant they fix it -
Idiot needs help with hanging mac book pro please
can anyone please help me
i have a 13 inch 2013 macbook pro but since yesterday every 30/40 seconds if im trying the spinner circle thing comes up and even now I'm trping faster than my mac can keep up
iv installed nothing recently
im really stuck where to go from here
really sorry if I'm vague but I'm not a computer genius
if all fails then i have to take it back to apple
thanks for any helpEtreCheck version: 2.1.5 (108)
Report generated 3 January 2015 17:53:58 GMT
Click the [Support] links for help with non-Apple products.
Click the [Details] links for more information about that line.
Click the [Adware] links for help removing adware.
Hardware Information: ℹ️
MacBook Pro (13-inch, Mid 2012) (Verified)
MacBook Pro - model: MacBookPro9,2
1 2.9 GHz Intel Core i7 CPU: 2-core
8 GB RAM Upgradeable
BANK 0/DIMM0
4 GB DDR3 1600 MHz ok
BANK 1/DIMM0
4 GB DDR3 1600 MHz ok
Bluetooth: Good - Handoff/Airdrop2 supported
Wireless: en1: 802.11 a/b/g/n
Video Information: ℹ️
Intel HD Graphics 4000
Color LCD 1280 x 800
System Software: ℹ️
OS X 10.10.1 (14B25) - Uptime: 2:36:51
Disk Information: ℹ️
TOSHIBA MK7559GSXF disk0 : (750.16 GB)
EFI (disk0s1) <not mounted> : 210 MB
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
Macintosh HD (disk1) / : 748.93 GB (635.73 GB free)
Encrypted AES-XTS Unlocked
Core Storage: disk0s2 749.30 GB Online
MATSHITADVD-R UJ-8A8 disk2 : (329.8 MB)
disk2s1 (disk2s1) <not mounted> : 287 MB
disk2s1s1 (disk2s1s1) <not mounted> : 32 KB
Untitled Disc (disk2s1s2) /Volumes/Untitled Disc : 286 MB (0 B free)
USB Information: ℹ️
Western Digital External HDD 160.04 GB
WD USB 2 (disk3s1) /Volumes/WD USB 2 : 160.04 GB (64.46 GB free)
Apple Inc. FaceTime HD Camera (Built-in)
Apple Inc. Apple Internal Keyboard / Trackpad
Apple Computer, Inc. IR Receiver
Apple Inc. BRCM20702 Hub
Apple Inc. Bluetooth USB Host Controller
Thunderbolt Information: ℹ️
Apple Inc. thunderbolt_bus
Gatekeeper: ℹ️
Mac App Store and identified developers
Launch Agents: ℹ️
[loaded] com.divx.dms.agent.plist [Support]
[loaded] com.divx.update.agent.plist [Support]
[invalid?] com.oracle.java.Java-Updater.plist [Support]
Launch Daemons: ℹ️
[loaded] com.adobe.fpsaud.plist [Support]
[loaded] com.microsoft.office.licensing.helper.plist [Support]
[invalid?] com.oracle.java.Helper-Tool.plist [Support]
[loaded] com.tunabellysoftware.TGFanHelper.plist [Support]
User Launch Agents: ℹ️
[loaded] com.adobe.ARM.[...].plist [Support]
[loaded] com.divx.agent.postinstall.plist [Support]
[loaded] com.google.keystone.agent.plist [Support]
User Login Items: ℹ️
iTunesHelper Application (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
Google Drive Application (/Applications/Google Drive.app)
Safari Application (/Applications/Safari.app)
Internet Plug-ins: ℹ️
Flip4Mac WMV Plugin: Version: 3.0.0.126 - SDK 10.8 [Support]
FlashPlayer-10.6: Version: 16.0.0.235 - SDK 10.6 [Support]
Default Browser: Version: 600 - SDK 10.10
AdobePDFViewerNPAPI: Version: 11.0.10 - SDK 10.6 [Support]
AdobePDFViewer: Version: 11.0.10 - SDK 10.6 [Support]
DivXBrowserPlugin: Version: 2.2 [Support]
Flash Player: Version: 16.0.0.235 - SDK 10.6 [Support]
OVSHelper: Version: 1.1 [Support]
QuickTime Plugin: Version: 7.7.3
SharePointBrowserPlugin: Version: 14.1.0 [Support]
JavaAppletPlugin: Version: 15.0.0 - SDK 10.10 Check version
Safari Extensions: ℹ️
DivX Plus Web Player HTML5 <video> [Installed]
3rd Party Preference Panes: ℹ️
Flash Player [Support]
Flip4Mac WMV [Support]
Perian [Support]
Time Machine: ℹ️
Time Machine not configured!
Top Processes by CPU: ℹ️
19% Finder
2% WindowServer
0% AppleSpell
0% DesktopServicesHelper
0% mds_stores
Top Processes by Memory: ℹ️
429 MB iPhoto
198 MB Finder
180 MB iTunes
144 MB com.apple.WebKit.WebContent
112 MB mds_stores
Virtual Memory Information: ℹ️
1.97 GB Free RAM
4.26 GB Active RAM
1.32 GB Inactive RAM
1.03 GB Wired RAM
3.49 GB Page-ins
0 B Page-outs
Diagnostics Information: ℹ️
Jan 3, 2015, 03:18:42 PM Self test - passed
Jan 1, 2015, 02:04:03 PM /Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_2015-01-01-140403_[ redacted].cpu_resource.diag [Details] -
ok. I started out with HDV footage. Imported that edited it native HD into final cut 5, didn't downconvert. Now I am trying to output the finished work onto a dv camera through firewire. At first i nested the HDV sequence into a NTSC sequence, but the video wouldn't go through to the camera, only audio. I thought it was a connection problem, but then i played some DV footage and it went to the camera fine. So then i exported the DV sequence as a quicktime movie in NTSC form, but that really cropped the 16:9 footage and made it unwatchable. How can i take the 16:9 HDV footage, and letterbox it so that it fits inside a 4:3 frame without cutting off any of the original frame, and then export that to a DV camera? Let me know if you need more info, please help this is due tomorrow!! ahhhhh!
When you Export using QuickTime Conversion, to DV Stream, you get an option of what the aspect ratio should be. Select 16:9 and the DV stream will be what you're looking for. Opening that in FCP and sending it to the camera should work out well.
-
Another Videora Post- I just need help with this one problem, please!
I am guessing that the best way to convert your videos to an iPod compatible format is Videora. It works lovely, except for one glitch. I notice that the audio is noticeably off when I play the video. Any solution on how to fix this? I would really appreciate it if anyone helped me out on this
Windows XPIt is on both, I am thinking.. I tried it with a movie avi file, and it always comes out off.
-
Thank you for taking a look ill post my code and then my problem
import java.util.Scanner;
public class intrest
public static void main( String[] args )
Scanner input = new Scanner( System.in );
System.out.print("Deposit:");
double Value =input.nextInt();
double Rate = 0;
if (Value >250000 || Value <10000)
System.out.print("Error: minimum deposit 10,000 and Maximum deposit 250000");
else if (Value <25000)
Rate = 2.76;
else if (Value <50000)
Rate = 3.16;
else
Rate = 3.20;
double Interest = (Value / 100 * Rate);
System.out.println ("Interest:" +Interest) ;
System.out.println ("Rate: " +Rate) ;
}my goal for this program is to get the interest rate if the value is between 10k and 250k, if its any other value it should bring up an error however when i do input a number out of that range it gives me the error but it also displayes the interest rate and the interest gained although it does not work it out (both stay at 0 which is good),
i want it to only show the error if the first statement is true "{code}if (Value >250000 || Value <10000){code}" ive tried using "Else If" but its still showing me the interest rate and interest gained, can anyone help would really appreciate it
thank you very muchDo a if condition check....if you dont want to use exit...below is the modified code
import java.util.Scanner;
public class test
public static void main( String[] args )
Scanner input = new Scanner( System.in );
System.out.print("\n Deposit:");
double Value =input.nextInt();
double Rate = 0;
if (Value >250000 || Value <10000)
System.out.print("\nError: minimum deposit 10,000 and Maximum deposit 250000");
else if (Value <25000)
Rate = 2.76;
else if (Value <50000)
Rate = 3.16;
else
Rate = 3.20;
double Interest = (Value / 100 * Rate);
if ((Interest != 0) || (Rate !=0))
System.out.println ("\n\n Interest:" +Interest +"\n\n Rate :" +Rate);
} -
Please I really need help with this one.
Ok I have this problem where I hook my ipod up and it works fine connects and is recognized. However, when i start trying to move music to it or transfer information using it like a jump drive it suddenly disconnects. At this point it is no longer recognized by my computer unless I restart my computer. In device manager it shows up as an unknown device and when i check the status of it, it says no device drivers installed for this device. What could be the problem here?
http://docs.info.apple.com/article.html?artnum=93499
-
Need help with Dynamic Excel File Name please.
I am try to output an excel file with dynamic date.
Here what I done.
I am using SQL 2012.
Create Execute SQL Task Connect Type: Excel
Create Data Flow Task set to DelayValidation: True
Create OLE DB Sourc
Create Data Converstion
Excel Destination
Excel Connection, Expression, select ExcelFilePath
@[User::sXLFilePath] + @[User::sFileName] + RIGHT("0" + (DT_WSTR, 2) DATEPART("DD", GETDATE()), 2)+ RIGHT("0" + (DT_WSTR, 2) DATEPART("MM", GETDATE()), 2) + RIGHT((DT_WSTR,
4) DATEPART("YYYY", GETDATE()), 2) +".csv"
C:\ExcelOutPut\SOX_CAM_SQL_Report_010215.xls
What I try to accomplish is output the file with each day append to it, date must be DDMMYY.
I google it and found many samples, tested it, and none of them is work for me.
Any suggestions or some examples to share is greatly appreciate.
I am new to SSIS. I found one poster have similar issue and inside the posted below, there was one suggestion to create variable and connection string but how do I bind that variable to Excel Connection manger.
Please help.
Thank you so much in advance.
Ex: SOX_CAM_SQL_Report _020215.csv
SOX_CAM_SQL_Report _030215.csv
--Similar issue:
https://social.msdn.microsoft.com/Forums/en-US/bda433aa-c8f8-47c9-9e56-efd20b8354ac/creating-a-dynamic-excel-file?forum=sqlintegrationservices
Suggestion in the above posted but where can bind this to Excel Connection Manger.
Please help provide step by step. Thanks.
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\temp\\" + "ExcelTarget" + (DT_WSTR,4)DATEPART("yyyy",GETDATE()) +
".xls" + ";Extended Properties=\"EXCEL 8.0;HDR=YES\";"
And yes, as you were intimating, the delay validation on the dataflow should be set.Hi NguyenBL,
According to your description, you created ssis package to export data from database to excel, when the package runs, you want to create new excel and name the file with time stamp. If that is the case, we can achieve the goal by following steps:
Create a script task used to create excel files.
Create a data flow task to export data from database to excel.
Add OLE DB source to data flow task.
Add Excel Destination to data flow task.
Create connection manager for OLE DB and Excel.
Click Excel Connection Manager, in Properties window, click (…) button next to Expressions, then set ExcelFilePath with expression like below:
"C:\\ETL Lab\\CreateNewExcel\\ExportData_"+REPLACE((DT_STR, 20, 1252)(DT_DBTIMESTAMP)@[System::StartTime], ":", "")+".xls"
For detail information, please refer to the document:
https://sqljourney.wordpress.com/2013/01/12/ssis-create-new-excel-file-dynamically-to-export-data/
If you have any more questions, please feel free to ask.
Thanks,
Wendy Fu
Wendy Fu
TechNet Community Support -
Need help with output type EDI for ERS
All,
I want to be able to run and ERS settlement and have the invoices created sent via EDI/XML to the supplier. I have several questions on the set up.
1) I have output type ERS6 which is defined as ERS EDI. I assume because it does not start with Z* this is SAP standard, so I shouldn't have to modify any of this.
2) I've added my supplier to this output type.
3) I assume I need to create a partner profile for this supplier? If so can someone tell me the message type to use?
Is there any set up I'm missing in this process? I've executed ERS but do not get an idoc and I'm fairly certain it's because I haven't done the partner profile set-up.
Thanks for your help.
SandraHi,
You don't have to modify thise setup unless you have any customized requirement.
You are missing partner profile setup.Carry out the setup and run MRRL tcode to create the idocs
Enter the following values using tcode WE20.
Field Value
Message type GSVERF
Partner type LI (vendor)
Partner function LF (vendor)
Port SUBSYSTEM ( Port to your middleware)
Output mode such as Collect IDocs
Basic type GSVERF01
Application MR
Output type ERS6 or the type you have defined
Regards,
Karuna -
I need help with some simple code! Please read!
hi everyone.
I'm having problems with a piece of code, and i'd be extremely greatful if somebody could give me a hand with it. I'm totally new to java and have to make a program for my university degree, but i'm finding it extremely difficult, mainly due to my total lack of apptitude for this type of thing. I know this is easy stuff, but the books I have are no use so any help would be greatly appreciated.
I have to write a program which uses two class files. I want one with the code to produce a simple button, and one to invoke it several times at different locations. I decided to write the program as one class file at first, and thought i'd be able to split it up at later. The program works fine when it is one class file. My book said that to split the two classes up, all i needed to do was change the second class to public, although this seems to not work at all. I'm at my wits end on this, and if anyone could correct my code I'd be eternally greatful.
Here is the first class... (sorry about the lack of indentation)
>>>>>>>>>>
import java.awt.*;
import java.applet.Applet;
public class Phone extends Applet {
private Image image;
public void init() {
setLayout(null);
image = getImage(getDocumentBase(), "phone.jpg");}
public void paint (Graphics g) {
g.drawImage(image, 0, 0, 700, 530, this);
PhoneButton myButton;
myButton = new PhoneButton(20,20);
>>>>>>>
This is the second class....
>>>>>>>
public class PhoneButton {
private Button butt;
public PhoneButton(int a, int b, int c){
setLayout(null);
butt = new Button();
butt.setBounds(a,b,20,20);
add(butt);
>>>>>>>>
My compiler generates errors relating to Button, but i can't do anything to please it.
Also, could anyone give me some pointers on how to add a different number or symbol to each button. That is what I added int c for, but i couldn't get it to work.
Cheers in advance.
Michael MorganI found that there are 5 error in your code.
1. You should import the "java.awt" package to the PhoneButton.java
2. The PhoneButton is not a kind of Component. You cannot not add it to the Phone class
3. the myButton = new PhoneButton(20, 20) does not provide enough parameters to create PhoneButton
4. You cannot add a Button to a PhoneButton. Becaue the PhoneButton is not a kind of Container
Fixed code:
import java.awt.*;
public class PhoneButton extends Button {
public PhoneButton(int a, int b, int c){
setBounds(a, b, 20, 20);
setLabel(String.valueOf(c));
===========================================
import java.awt.*;
import java.applet.Applet;
public class Phone extends Applet {
private Image image;
public void init() {
setLayout(null);
image = getImage(getDocumentBase(), "phone.jpg");}
public void paint (Graphics g) {
g.drawImage(image, 0, 0, 700, 530, this);
PhoneButton myButton;
myButton = new PhoneButton(20,20, 1);
======================
Visual Paradigm for UML - Full Features UML CASE tool
http://www.visual-paradigm.com/ -
Need help with date and time calculations please
Hello there.. Im stuck, and im hoping someone can help..
Working on a list to manage and track PTO. User completes PTO request form,
Fields
Name
Start Date (with time)
End Date (with time)
Total Number of Days/hours requested: (calculation)
Full Day: (Yes/No)
ok business need
user has the ability to request a certain number of hours as opposed to a full day.
After searching around on google. I found this calculation to help me figure out how many BUSINESS days being requested.
=IF(ISERROR(DATEDIF([Start Date],[End Date],"d")),"",(DATEDIF([Start Date],[End Date],"d"))+1-INT(DATEDIF([Start Date],[End Date],"d")/7)*2-IF((WEEKDAY([End Date])-WEEKDAY([Start Date]))<0,2,0)-IF(OR(AND(WEEKDAY([End
Date])=7,WEEKDAY([Start Date])=7),AND(WEEKDAY([End Date])=1,WEEKDAY([Start Date])=1)),1,0)-IF(AND(WEEKDAY([Start Date])=1,(WEEKDAY([End Date])-WEEKDAY([Start Date]))>0),1,0)-IF(AND(NOT(WEEKDAY([Start Date])=7),WEEKDAY([End Date])=7),1,0))
This works great as long as its a [Full Day]="YES", displays results in column labeled Number of days
now if [Full Day]="No", displays results in column labeled Number of Hours
BUT this is my issue (well part of it) it calcuate the correct number of hours.. but puts a "1" in "Number of Days" why.. dates have not changed.. I think Its something with the above calculation but I could be way off.
the end result is I need number of days to concat with number of hours
i.e 1 full day 4 hours 1.4
0 full day 5 hours 0.5
1 full day 0 hours 1.0
so that the total can be deducted via workflow.. from the remaining balance in a tracker. (seperate list)
Any angels out there??Posnera-
Try changing time zones and see if the travel itinerary times change.
Fred
Maybe you are looking for
-
Cannot install OSX Mavericks on macbook air disk
I am unable to intall Mavericks due to an unknown error. I have tried restarting, using disk utility to perform a repair, but no change. I cannot find any information on why this error is occuring or how to solve it. The macbook air is the latest ver
-
I bought a $15 app GTA Vice City a while ago and I just started using it and it doesn't work. I checked all the requirements and my laptop meets all of them. I also have contacted Rockstar Games and they didn't help. Can I get my money back? Its frus
-
ITunes unknown error -50 when ripping CDs
I have had trouble lately ripping CDs I have bought and get the message unknown error (-50)....
-
Hi guys, I need a component which acts as a chat screen allowing me to append messages. Each chat message may be a different colour. I also need to set the font of the pane via my look and feel. This font is not included in html. First I tried using
-
How to implement web service client timeout
I'm trying to implement a web service client using JAX-RPC specification and the client is generated by clientgen utility. We are using weblogic8.1(sp5). How do I control the connection timeout and data transmission timeout? I have tried: BindingInfo