Steve Dyke

Ranch Hand
+ Follow
since Nov 16, 2004
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Steve Dyke

Carey Brown wrote:Any reason why 'lastShippingAddress' is not the same type as 'vendorAdd1', i.e. 'String'?

Sorry, but on my initial code I did not list all of the Vendor properties.

The Vendor records are pulled into my application from a remote data source as a list of Vendor objects.
There is a property for Vendor Code, Vendor Name, Street Address 1, Street Address 2, City, State, Zip, etc. This all represents the Vendor default data.
Therefor the Vendor address is made up of several properties.
Some times we will ship to an alternate address, maybe several times. Instead of our Purchasing agent retyping this alternate address every time I save the LastShipedAddress into a remote data file with a field that links back to the original Vendor record.
So both a remote Vendor record has the same structure as a LastShippedAddress record.
When a Vendor record is selected the Purchasing agent can leave as default address of chose the alternate LastShippedAddress.
15 hours ago

Carey Brown wrote:

I am sorry I can't describe this more precisely.

17 hours ago

Carey Brown wrote:You have confusing variable names for lastShippingAddress, one place it's of type LastShippingAddress and the other it's Vendor. Fix that first.

Not sure what to do to fix this.
The LastShippingAddress Object has a property of Vendor()
Vendor has a property of LastShippingAddress
18 hours ago

Liutauras Vilda wrote:

Steve Dyke wrote:This creates an infinite loop

Do you have an idea why would that happen?

Yes I understand why it is looping.
I am just curious is there a way to do this without having to set private Vendor lastShippingAddress = new Vendor(); to null
I am trying to move away from setting any object properties to null.
18 hours ago
This is my vendor object. As shown one of the properties is LastShippingAddress.

This creates an infinite loop unless I change  public Vendor lastShippingAddress = new VendorV8(); to public VendorV8 lastShippingAddress = null;
Is there another way to do this without setting to null?
18 hours ago
Like most of my issues that take the most of my time to figure out, this one took about 5 hours and the help from this forum group.
The first time I tried the code a blank file was created with my merge file name.
The code failed but I did not realize the blank file had been created.
So every attempt I made thereafter, changing code to test, gave me the Access Denied message.
I was attacking the wrong source. After I removed the blank file, everything started working as expected.
3 months ago

Tim Moores wrote:Are you using a current SMB implementation like

Using jcifs-2.1.35.
I use this for my entire application with no issues.
This is just the first time I am attempting to use the merge utility.
3 months ago

Tim Holloway wrote:Most likely cause is that one (or more) of your URLs didn't form the way you thought it would and I'd add some log messages to see what you're actually getting.

This is what the System.out.println is showing:
FAIReportToJasper: pdffilePathMerged: smb://sgai-fs02.corp.zodiac.lan/qmsattachments$/QMSAttachments/Temp/FAIReportMerged_4248917.pdf

My scenario is I write three pdf files to a particular directory. Then I want to merge them into one pdf file.
This is all done on the same share. The three files are written just fine and accessible using HTTP.
I also use the same cifsContext parameter for all the smb access.

So I am trying to understand why I can write the initial three files to the share but not the merged file.

3 months ago
In my following code I get "FAIReportToJasper: jcifs.smb.SmbException: Access is denied."
On this line of code: out = new BufferedOutputStream(new SmbFileOutputStream( new SmbFile(pdffilePathMerged, cifsContext() )));

3 months ago
I want to get properties from a class that has been assigned to a Session Attribute in Javascript.
The following code will return undefined for both hospitaliteminput and hospitalitemDescription

My server code:

My JS Code:
4 months ago
After doing some more research I think I have something that works.
I am adding a data-* attribute to option tag that holds the index value I need.

Bear Bibeault wrote:That makes no sense to me.

This part of the code works perfect and has for several years.
Its the new code I need to add where I need the option value that is not working for me.
This is the HTML of the Select List:

<select class="faiEditListOptions_Tool select2-hidden-accessible"
data-select2-id="20" tabindex="-1" aria-hidden="true">
<option value''="" data-select2-id="22">Select a Tool</option>
<option value'4'="" data-select2-id="28">154151 - GLOBAL DIGITAL WEIGHT SCALES</option>
<option value'1'="" data-select2-id="29">316029 - ZEISS CMM2</option>
<option value'1581443536088'="" data-select2-id="30">104225 - (A16)1/4-28 UNF-3B STI</option>
<option value'2'="" data-select2-id="31">274072 - 6in. DIGITAL CALIPERS</option>
<option value'3'="" data-select2-id="32">234043 - STARRETT UNI BEVEL PROTRACTOR</option>

The .faiEditListOptions_Tool is a select list I add to the container using ajax.
In the code below I need to get the option value.
However, the alerts I have below only show the text portion of the selected option.

I am attempting to make the title of a div container dynamic based on specific value.
Using the following script when I hover over the container if the value == 2 I get "First" otherwise I get "class".