[Reactive Multiple File Upload] How to save multiple upload images & show images in table Record
multiple-file-upload-reactive
Reactive icon
Forge component by José Pedro Proença
Application Type
Reactive

Hello,

I'm practicing to save upload image files in Detail Screen and then want to show upload file in table with file names where can update in table again.When I click each file name, I'd like to show like pop up image with this file.

I achieved file uploading with file name but couldn't save also in Detail form and Table.

I created client action for image save file(SavefileImage)and reused this action in SaveDetail handler.

I've tried with couple hours but not yet achieve.I will share this link.

May I receive check my oml?

Thanks & Kind Regards,

Hayasaka

MultipleImageUpload.oml

Solution

Hello Hayasaka,

Please find attached the updated OML. I have modified the save action to store all the images uploaded through screen and same will be displayed on the employeeinfodetail screen. 

Review it and let me know, if you need any other help.

Thanks & Kind Regards,

Sachin

MultipleImageUploadSachin.oml

Hi

Sachin Waghmare,



I am implementing multiple file uploads, In that, I got the following error message:


Internal Error

An error occurred in task 'Loading eSpace with key '6aeebf04-487a-49bf-9185-891584b5167f'':
Object not found: /AnonymousStructures.m+b3Wf5PWE6PPk4kiUFd6Q (relativeTo: null)

Details : System.InvalidOperationException: Object not found: /AnonymousStructures.m+b3Wf5PWE6PPk4kiUFd6Q (relativeTo: null)

   at OutSystems.HubEdition.Compiler.CompoundKeyResolver.GetObject(CompoundKey key, AbstractObject relativeTo)
   at OutSystems.HubEdition.Compiler.Expressions.AbstractObjectExpression.get__expressionType()
   at OutSystems.HubEdition.Compiler.Expressions.AbstractObjectExpression.AfterLoad()
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LoadObjectExpression(AbstractObject parent, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LoadExpression(AbstractObject parent, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.Argument.LoadChildren(ESpaceReader reader)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.InnerLoadChildren[Type](AbstractObject parent, CollectionIndex collectionIndex, ICompilerCollection`1 collection)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LoadChildren[Type](AbstractObject parent, ICompilerSequence`1& collection, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.InnerLoadChildren[Type](AbstractObject parent, CollectionIndex collectionIndex, ICompilerCollection`1 collection)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LazyLoadChildren[Type](AbstractObject parent, ICompilerSequence`1& collection, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.AbstractObject.EnsureCacheableCollectionIsLoaded[TType](ICompilerSequence`1& collection, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.AbstractFlow.get_Nodes()
   at OutSystems.HubEdition.Compiler.Flows.AbstractActionFlow.LoadAssertComments()
   at OutSystems.HubEdition.Compiler.Flows.AbstractActionFlow.AfterLoad()
   at OutSystems.RuntimeCommon.CollectionsExtensions.Apply[Type](IEnumerable`1 collection, Action`1 action)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LoadChildren[Type](AbstractObject parent, ICompilerSequence`1& collection, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.NRNodes.AbstractWebInteractiveContentNode.LoadChildren(ESpaceReader reader)
   at OutSystems.HubEdition.Compiler.NRNodes.WebScreen.LoadChildren(ESpaceReader reader)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.InnerLoadChildren[Type](AbstractObject parent, CollectionIndex collectionIndex, ICompilerCollection`1 collection)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LazyLoadChildren[Type](AbstractObject parent, ICompilerSequence`1& collection, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.AbstractObject.EnsureCacheableCollectionIsLoaded[TType](ICompilerSequence`1& collection, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.AbstractFlow.GetChildCollection(CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.NRFlows.WebFlow.GetChildCollection(CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.CompoundKeyResolver.GetObjectResolver.Visit(ChildCompoundKey childCompoundKey)
   at OutSystems.HubEdition.Compiler.CompoundKeyResolver.TryGetObject(CompoundKey key, AbstractObject relativeTo)
   at OutSystems.HubEdition.Compiler.CompoundKeyResolver.GetObject(CompoundKey key, AbstractObject relativeTo)
   at OutSystems.HubEdition.Compiler.CompilationResult.GetCompiledObject(CompoundKey compoundKey)
   at OutSystems.HubEdition.Compiler.CompilationResult.AfterESpaceLoad()
   at OutSystems.HubEdition.Compiler.ESpace..ctor(Oml oml, CompilationContext context, Boolean loadModelOnly)
   at OutSystems.HubEdition.Compiler.Compiler.LoadEspace(CompilationContext context, Oml oml, Boolean allowInvalid)
   at cs#uktgkiic.Execute(cs#uktgkiib input, IMessageBroker messageBroker, IESpace& eSpace)
   at OutSystems.Server.Infrastructure.Tasks.AbstractTask`1.InnerRun(InputType input, IMessageBroker messageBroker, Func`1 executeAction)

Exception Details:
[1] Internal Error: An error occurred in task 'Loading eSpace with key '6aeebf04-487a-49bf-9185-891584b5167f'':
Object not found: /AnonymousStructures.m+b3Wf5PWE6PPk4kiUFd6Q (relativeTo: null)

Details : System.InvalidOperationException: Object not found: /AnonymousStructures.m+b3Wf5PWE6PPk4kiUFd6Q (relativeTo: null)

   at OutSystems.HubEdition.Compiler.CompoundKeyResolver.GetObject(CompoundKey key, AbstractObject relativeTo)
   at OutSystems.HubEdition.Compiler.Expressions.AbstractObjectExpression.get__expressionType()
   at OutSystems.HubEdition.Compiler.Expressions.AbstractObjectExpression.AfterLoad()
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LoadObjectExpression(AbstractObject parent, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LoadExpression(AbstractObject parent, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.Argument.LoadChildren(ESpaceReader reader)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.InnerLoadChildren[Type](AbstractObject parent, CollectionIndex collectionIndex, ICompilerCollection`1 collection)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LoadChildren[Type](AbstractObject parent, ICompilerSequence`1& collection, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.InnerLoadChildren[Type](AbstractObject parent, CollectionIndex collectionIndex, ICompilerCollection`1 collection)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LazyLoadChildren[Type](AbstractObject parent, ICompilerSequence`1& collection, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.AbstractObject.EnsureCacheableCollectionIsLoaded[TType](ICompilerSequence`1& collection, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.AbstractFlow.get_Nodes()
   at OutSystems.HubEdition.Compiler.Flows.AbstractActionFlow.LoadAssertComments()
   at OutSystems.HubEdition.Compiler.Flows.AbstractActionFlow.AfterLoad()
   at OutSystems.RuntimeCommon.CollectionsExtensions.Apply[Type](IEnumerable`1 collection, Action`1 action)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LoadChildren[Type](AbstractObject parent, ICompilerSequence`1& collection, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.NRNodes.AbstractWebInteractiveContentNode.LoadChildren(ESpaceReader reader)
   at OutSystems.HubEdition.Compiler.NRNodes.WebScreen.LoadChildren(ESpaceReader reader)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.InnerLoadChildren[Type](AbstractObject parent, CollectionIndex collectionIndex, ICompilerCollection`1 collection)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LazyLoadChildren[Type](AbstractObject parent, ICompilerSequence`1& collection, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.AbstractObject.EnsureCacheableCollectionIsLoaded[TType](ICompilerSequence`1& collection, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.AbstractFlow.GetChildCollection(CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.NRFlows.WebFlow.GetChildCollection(CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.CompoundKeyResolver.GetObjectResolver.Visit(ChildCompoundKey childCompoundKey)
   at OutSystems.HubEdition.Compiler.CompoundKeyResolver.TryGetObject(CompoundKey key, AbstractObject relativeTo)
   at OutSystems.HubEdition.Compiler.CompoundKeyResolver.GetObject(CompoundKey key, AbstractObject relativeTo)
   at OutSystems.HubEdition.Compiler.CompilationResult.GetCompiledObject(CompoundKey compoundKey)
   at OutSystems.HubEdition.Compiler.CompilationResult.AfterESpaceLoad()
   at OutSystems.HubEdition.Compiler.ESpace..ctor(Oml oml, CompilationContext context, Boolean loadModelOnly)
   at OutSystems.HubEdition.Compiler.Compiler.LoadEspace(CompilationContext context, Oml oml, Boolean allowInvalid)
   at cs#uktgkiic.Execute(cs#uktgkiib input, IMessageBroker messageBroker, IESpace& eSpace)
   at OutSystems.Server.Infrastructure.Tasks.AbstractTask`1.InnerRun(InputType input, IMessageBroker messageBroker, Func`1 executeAction)
at OutSystems.Server.Infrastructure.Tasks.AbstractTask`1.InnerRun(InputType input, IMessageBroker messageBroker, Func`1 executeAction)
   at OutSystems.Server.Infrastructure.Tasks.AbstractTask`2.Run(InputType input, IMessageBroker messageBroker, OutputType& result)
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
[2] System.InvalidOperationException: Object not found: /AnonymousStructures.m+b3Wf5PWE6PPk4kiUFd6Q (relativeTo: null)

   at OutSystems.HubEdition.Compiler.CompoundKeyResolver.GetObject(CompoundKey key, AbstractObject relativeTo)
   at OutSystems.HubEdition.Compiler.Expressions.AbstractObjectExpression.get__expressionType()
   at OutSystems.HubEdition.Compiler.Expressions.AbstractObjectExpression.AfterLoad()
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LoadObjectExpression(AbstractObject parent, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LoadExpression(AbstractObject parent, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.Argument.LoadChildren(ESpaceReader reader)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.InnerLoadChildren[Type](AbstractObject parent, CollectionIndex collectionIndex, ICompilerCollection`1 collection)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LoadChildren[Type](AbstractObject parent, ICompilerSequence`1& collection, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.InnerLoadChildren[Type](AbstractObject parent, CollectionIndex collectionIndex, ICompilerCollection`1 collection)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LazyLoadChildren[Type](AbstractObject parent, ICompilerSequence`1& collection, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.AbstractObject.EnsureCacheableCollectionIsLoaded[TType](ICompilerSequence`1& collection, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.AbstractFlow.get_Nodes()
   at OutSystems.HubEdition.Compiler.Flows.AbstractActionFlow.LoadAssertComments()
   at OutSystems.HubEdition.Compiler.Flows.AbstractActionFlow.AfterLoad()
   at OutSystems.RuntimeCommon.CollectionsExtensions.Apply[Type](IEnumerable`1 collection, Action`1 action)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LoadChildren[Type](AbstractObject parent, ICompilerSequence`1& collection, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.NRNodes.AbstractWebInteractiveContentNode.LoadChildren(ESpaceReader reader)
   at OutSystems.HubEdition.Compiler.NRNodes.WebScreen.LoadChildren(ESpaceReader reader)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.InnerLoadChildren[Type](AbstractObject parent, CollectionIndex collectionIndex, ICompilerCollection`1 collection)
   at OutSystems.HubEdition.Compiler.Serialization.ESpaceReader.LazyLoadChildren[Type](AbstractObject parent, ICompilerSequence`1& collection, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.AbstractObject.EnsureCacheableCollectionIsLoaded[TType](ICompilerSequence`1& collection, CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.AbstractFlow.GetChildCollection(CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.NRFlows.WebFlow.GetChildCollection(CollectionIndex collectionIndex)
   at OutSystems.HubEdition.Compiler.CompoundKeyResolver.GetObjectResolver.Visit(ChildCompoundKey childCompoundKey)
   at OutSystems.HubEdition.Compiler.CompoundKeyResolver.TryGetObject(CompoundKey key, AbstractObject relativeTo)
   at OutSystems.HubEdition.Compiler.CompoundKeyResolver.GetObject(CompoundKey key, AbstractObject relativeTo)
   at OutSystems.HubEdition.Compiler.CompilationResult.GetCompiledObject(CompoundKey compoundKey)
   at OutSystems.HubEdition.Compiler.CompilationResult.AfterESpaceLoad()
   at OutSystems.HubEdition.Compiler.ESpace..ctor(Oml oml, CompilationContext context, Boolean loadModelOnly)
   at OutSystems.HubEdition.Compiler.Compiler.LoadEspace(CompilationContext context, Oml oml, Boolean allowInvalid)
   at cs#uktgkiic.Execute(cs#uktgkiib input, IMessageBroker messageBroker, IESpace& eSpace)
   at OutSystems.Server.Infrastructure.Tasks.AbstractTask`1.InnerRun(InputType input, IMessageBroker messageBroker, Func`1 executeAction)


How to resolve this issue? also attching .oml below.

Thanks,
Shriyash

MultipleFileUplaod.oml

Hello Shriyash,

I don't see that this error is related to this component. However, I will look into this error and try to resolve for you.

Thanks & Kind Regards,

Sachin


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.